Note that there are some explanatory texts on larger screens.

plurals
  1. POError in deserializing body of reply message for operation
    primarykey
    data
    text
    <p>I ran into a problem when communicating with SOAP Axis web service using Service Reference method with dotNet.</p> <p>It seems when dotNet client deserializing the incoming xml steam, it expects an array, but it actually gets a single object. I thought that there might be an issue with the xml message sent from the web service, but it looks normal.</p> <p>Error message:</p> <pre><code>Cannot assign object of type WebService.MessagingServices_SendMultiSMS_SendSuccess to an object of type WebService.MessagingServices_SendMultiSMS_SendSuccess[]. The error occurred while reading node with id='id1'. </code></pre> <p>SOAP XML message:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;soapenv:Body&gt;&lt;ns1:sendMultiSMSResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://DefaultNamespace"&gt;&lt;sendMultiSMSReturn href="#id0"/&gt;&lt;/ns1:sendMultiSMSResponse&gt;&lt;multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:MessagingServices_SendMultiSMSResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn"&gt;&lt;CallSuccess xsi:type="xsd:boolean"&gt;true&lt;/CallSuccess&gt;&lt;CallErrorMessage xsi:type="xsd:string"&gt;Success&lt;/CallErrorMessage&gt;&lt;SMSCount xsi:type="xsd:int"&gt;2&lt;/SMSCount&gt;&lt;MultiSMSPostedList href="#id1"/&gt;&lt;MultiSMSPostedList href="#id2"/&gt;&lt;/multiRef&gt;&lt;multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:MessagingServices_SendMultiSMS_SendSuccess" xmlns:ns3="urn" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;gRecipientName xsi:type="xsd:string"&gt;Me&lt;/gRecipientName&gt;&lt;gRecipientMSISDNwithCC xsi:type="xsd:string"&gt;xxxxxx1&lt;/gRecipientMSISDNwithCC&gt;&lt;gOutMsgID xsi:type="xsd:int"&gt;314437688&lt;/gOutMsgID&gt;&lt;/multiRef&gt;&lt;multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:MessagingServices_SendMultiSMS_SendSuccess" xmlns:ns4="urn" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;gRecipientName xsi:type="xsd:string"&gt;Me&lt;/gRecipientName&gt;&lt;gRecipientMSISDNwithCC xsi:type="xsd:string"&gt;xxxxxx2&lt;/gRecipientMSISDNwithCC&gt;&lt;gOutMsgID xsi:type="xsd:int"&gt;314437687&lt;/gOutMsgID&gt;&lt;/multiRef&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload