Announcement Announcement Module
Collapse
No announcement yet.
WebServcTemplate produces non-correct result XML from valid response Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • WebServcTemplate produces non-correct result XML from valid response

    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:

    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>
    And here is the one obtained from Result instance:

    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>
    Thoughts ?

    -Vjeran

  • #2
    Arjen always talked how bad and deprecated (in SOAP 1.2) are rpc/encoding WSDLs, and my SOAP traffic examples are exactly from this kind of web service.
    Can it be that because of this "unsupporting" reason I don't receive complete payload in my Result instances?

    BTW. I tried with both 1.0.3 and 1.5m1

    Comment

    Working...
    X