Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
RightNow Soap API using JaxB - "FAILS" — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

RightNow Soap API using JaxB - "FAILS"

Accepted answer
edited Jun 8, 2022 12:01PM in General Technical Discussions 2 comments


 We are using Maven JaxB plugin to Create Object classes from the WSDL right now provides. Then we create a request for "QueryObjects" to get a Contact By ID. We are using Spring WS to handle SOAP calls.

Our Soap Request looks like this (as shown in code block)

The request fails with the following error: Data element in the Message is NULL

Any help will be appreciated.




Code Snippet

             <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="">
      <wsse:Security xmlns:wsse="" xmlns:wsu="" soapenv:mustUnderstand="1">
         <wsse:UsernameToken wsu:Id="UsernameToken-FEDAC2CFA2EA93C38814331876582141">
            <wsse:Password Type="">somePassword</wsse:Password>
      <ns7:ClientInfoHeader xmlns:ns7="" mustUnderstand="0">
         <ns7:AppID>GetContact App</ns7:AppID>

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!