Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to send hashed data in SOAP request body?
    primarykey
    data
    text
    <p>I want to imitate following request using Zend_Soap_Client.</p> <pre><code>&lt;SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;SOAP-ENV:Header&gt; &lt;h3:__MethodSignature xsi:type="SOAP-ENC:methodSignature" xmlns:h3="http://schemas.microsoft.com/clr/soap/messageProperties" SOAP-ENC:root="1" xmlns:a2="http://schemas.microsoft.com/clr/ns/System.Collections"&gt;xsd:string a2:Hashtable&lt;/h3:__MethodSignature&gt; &lt;/SOAP-ENV:Header&gt; &lt;SOAP-ENV:Body&gt; &lt;i4:ReturnDataSet id="ref-1" xmlns:i4="http://schemas.microsoft.com/clr/nsassem/Interface.IRptSchedule/Interface"&gt; &lt;sProc id="ref-5"&gt;BU&lt;/sProc&gt; &lt;ht href="#ref-6"/&gt; &lt;/i4:ReturnDataSet&gt;&lt;br/&gt; &lt;a2:Hashtable id="ref-6" xmlns:a2="http://schemas.microsoft.com/clr/ns/System.Collections"&gt; &lt;LoadFactor&gt;0.72&lt;/LoadFactor&gt; &lt;Version&gt;1&lt;/Version&gt; &lt;Comparer xsi:null="1"/&gt; &lt;HashCodeProvider xsi:null="1"/&gt; &lt;HashSize&gt;11&lt;/HashSize&gt; &lt;Keys href="#ref-7"/&gt; &lt;Values href="#ref-8"/&gt; &lt;/a2:Hashtable&gt; &lt;SOAP-ENC:Array id="ref-7" SOAP-ENC:arrayType="xsd:anyType[1]"&gt; &lt;item id="ref-9" xsi:type="SOAP-ENC:string"&gt;@AppName&lt;/item&gt; &lt;/SOAP-ENC:Array&gt;&lt;br/&gt; &lt;SOAP-ENC:Array id="ref-8" SOAP-ENC:arrayType="xsd:anyType[1]"&gt; &lt;item id="ref-10" xsi:type="SOAP-ENC:string"&gt;AAGENT&lt;/item&gt; &lt;/SOAP-ENC:Array&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; </code></pre> <p>It seems somehow I've to send hashed <strong>"ref-7"</strong> and <strong>"ref-8"</strong> array embedded inside body? How can I do this?</p> <p>Function <strong>ReturnDataSet</strong> takes two parameters, how can I send additional <strong>"ref-7"</strong> and <strong>"ref-8"</strong> array data?</p> <pre><code>$client = new SoapClient($wsdl_url, array('soap_version' =&gt; SOAP_1_1)); $result = $client-&gt;ReturnDataset("BU", $ht); </code></pre> <p>I don't know how to set <strong>$ht</strong>, so that hashed data is sent as different body entry.</p> <p>Thanks.</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.
 

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