RightNow Soap API using JaxB - "FAILS"
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.2Code 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>
0