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
22
Views
2
Comments
edited Jun 8, 2022 12:01PM in General Technical Discussions 2 comments

Content

 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: org.springframework.ws.soap.client.SoapFaultClientException: Data element in the Message is NULL

Any help will be appreciated.

 

Version

1.2

Code Snippet

             <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soapenv:mustUnderstand="1">
         <wsse:UsernameToken wsu:Id="UsernameToken-FEDAC2CFA2EA93C38814331876582141">
            <wsse:Username>someUserName</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">somePassword</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
      <ns7:ClientInfoHeader xmlns:ns7="urn:wsdl.ws.rightnow.com/v1_2" mustUnderstand="0">
         <ns7:AppID>GetContact App</ns7:AppID>
   

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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