Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I read SOAP message response?
    primarykey
    data
    text
    <p>In the past I've always used class proxy to communicate with WebService.</p> <p>Now I want to use SOAP message. I developed a .ddl that do this, and all goes fine.</p> <p>My question is: Is there any standard (method-code-framework class) that can read and parse the SOAP message response?</p> <p>Here is an example. I send SOAP message to delete all records.<br> I get the following response: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;soapenv:Body&gt; &lt;ns:removeAllVODResponse xmlns:ns="http://ws.cms.guardian"&gt; &lt;ns:return xsi:type="ax21:Result" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax21="http://dto.ws.cms.guardian/xsd"&gt; &lt;ax21:message&gt;REMOVED ALL&lt;/ax21:message&gt; &lt;ax21:type&gt;SUCCESS&lt;/ax21:type&gt; &lt;/ns:return&gt; &lt;/ns:removeAllVODResponse&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>How can parse the 2 element message/type to this class:</p> <pre><code>public partial class Result { private string messageField; private string typeField; /// &lt;remarks/&gt; [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public string message { get { return this.messageField; } set { this.messageField = value; } } /// &lt;remarks/&gt; [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public string type { get { return this.typeField; } set { this.typeField = value; } } } </code></pre>
    singulars
    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.
 

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