Hello.
I execute web service request via
webServiceTemplate.sendSourceAndReceiveToResult(so urce, result);
, and I got proper SOAP response looking at the log from "org.springframework.ws.client.MessageTracing" logger.
But when I fetch this response XML from my Result instance, it returns me some other, non-correct XML. I thought it was maybe bug with JDOMesult that I used, so I tried with plan StringResult and I got same XML.
Here is SOAP body part received and logged by org.springframework.ws.client.MessageTracing:
And here is the one obtained from Result instance:Code:<ns1:getSmsDeliveryStatusResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.csapi.org/schema/parlayx/sms/v1_0"> <result soapenc:arrayType="ns1:DeliveryStatusType[1]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <result href="#id0"/> </result> </ns1:getSmsDeliveryStatusResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:DeliveryStatusType" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.csapi.org/schema/parlayx/sms/v1_0"> <destinationAddress href="#id1"/> <deliveryStatus href="#id2"/> </multiRef> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:EndUserIdentifier" xmlns:ns3="http://www.csapi.org/schema/parlayx/common/v1_0" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <value xsi:type="xsd:anyURI">tel:385912392624</value></multiRef> <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:DeliveryStatus" xmlns:ns4="http://www.csapi.org/schema/parlayx/sms/v1_0" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> DeliveryUncertain </multiRef>
Thoughts ?Code:<ns1:getSmsDeliveryStatusResponse xmlns:ns1="http://www.csapi.org/schema/parlayx/sms/v1_0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <result xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenc:arrayType="ns1:DeliveryStatusType[1]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="soapenc:Array"> <result href="#id0"/> </result>
-Vjeran


Reply With Quote