Note that there are some explanatory texts on larger screens.

plurals
  1. POSending a SOAP Call
    primarykey
    data
    text
    <p>I'm learning how to send and receive a SOAP call. I have the required parameters available with me like username , password and the URL of the WSDL/WebService.I lso know a sample SOAP reply that I'm expecting which is as follows:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;SOAP-ENV:Body&gt; &lt;ns1:infoLookupResponse xmlns:ns1="urn:vtsPhoneNumberLookup"&gt; &lt;phoneNumber xsi:type="xsd:string"&gt;4444444444&lt;/phoneNumber&gt; &lt;Type xsi:type="xsd:string"&gt;Landline&lt;/Type&gt; &lt;OCN xsi:type="xsd:string"&gt;2222&lt;/OCN&gt; &lt;OVERALLOCN xsi:type="xsd:string"&gt;2103&lt;/OVERALLOCN&gt; &lt;COMPANY xsi:type="xsd:string"&gt;ABC Inc&lt;/COMPANY&gt; &lt;DBA xsi:type="xsd:string"&gt;ABC Inc&lt;/DBA&gt; &lt;CommonName xsi:type="xsd:string"&gt;ABC&lt;/CommonName&gt; &lt;HOLDINGCOMPANY xsi:type="xsd:string"&gt;ABC Communications Inc&lt;/HOLDINGCOMPANY&gt; &lt;MANAGEMENT xsi:type="xsd:string"&gt;&lt;/MANAGEMENT&gt; &lt;SMS xsi:type="xsd:string"&gt;&lt;/SMS&gt; &lt;/ns1:infoLookupResponse&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; </code></pre> <p>I have gone through online stuff and based on my understanding, in order to send the SOAP request, I need to have a raw XML of the same format that I'm expecting ( as mentioned above). The condition in my case is that a user will be submitting a phone number using an HTML Page and that will be sent as a SOAP request expecting the aforementioned reply from the server.</p> <p>In the above case, a user would have submitted 4444444444 as a phone number. So,I understand that I need to create raw XML type of phoneNumber and my questions is, do I need to create raw XML for Type,OCN,OVERALLOCN,COMPANY,DBA,CommonName,HOLDINGCOMPANY,MANAGEMENT and SMS as well?</p> <p>Please let me know if there is anything wrong with what I have understood so far. Also, let me know if you would like me to paste some specific part of WSDL which will help you in answering/understanding my question.</p>
    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.
    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