Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to fix php soapclient null value
    text
    copied!<p>i can get the data if i use soap-ui but i need to use php soapclient and it doesnt get data.</p> <p>The output on soap-ui</p> <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://webservice.bc/Interaction"&gt; &lt;SOAP-ENV:Body&gt; &lt;ns1:QueryInteractionResponse&gt; &lt;productWarningArray&gt; &lt;ProductWarning&gt; &lt;Product&gt; &lt;id&gt;10008&lt;/id&gt; &lt;/Product&gt; &lt;Color&gt; &lt;id&gt;4&lt;/id&gt; &lt;/Color&gt; &lt;Value&gt;Besinler, asetilsalisilik asitin emilimini yavaşlatır. Hızlı analjezi gerekliyse besinlerle birlikte verilmemelidir. Uzun süreli asetilsalisilik asit kullanımında, besinler, mide mukozasını korumaya yardımcı olur.&lt;/Value&gt; &lt;/ProductWarning&gt; &lt;ProductWarning&gt; &lt;Product&gt; &lt;id&gt;10008&lt;/id&gt; &lt;/Product&gt; &lt;Color&gt; &lt;id&gt;4&lt;/id&gt; &lt;/Color&gt; &lt;Value&gt;Besinler, psödoefedrinin emilimini yavaşlatır.&lt;/Value&gt; &lt;/ProductWarning&gt; &lt;ProductWarning&gt; &lt;Product&gt; &lt;id&gt;2322&lt;/id&gt; &lt;/Product&gt; &lt;Color&gt; &lt;id&gt;1&lt;/id&gt; &lt;/Color&gt; &lt;Value&gt;Besinler sildenafil absorbsiyonunu geciktirir.&lt;/Value&gt; &lt;/ProductWarning&gt; &lt;/productWarningArray&gt; &lt;/ns1:QueryInteractionResponse&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; </code></pre> <p>here is true one...</p> <pre><code>&lt;Value&gt;Besinler, asetilsalisilik asitin emilimini yavaşlatır. Hızlı analjezi gerekliyse besinlerle birlikte verilmemelidir. Uzun süreli asetilsalisilik asit kullanımında, besinler, mide mukozasını korumaya yardımcı olur.&lt;/Value&gt; </code></pre> <p>but when i use php soapclient</p> <pre><code>$client = new SoapClient("http://webservice.bc/web.wsdl", array( 'exceptions'=&gt;true, 'cache_wsdl'=&gt;WSDL_CACHE_NONE, 'compression' =&gt; SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 5, 'features' =&gt; SOAP_SINGLE_ELEMENT_ARRAYS, 'encoding'=&gt;' utf-8' // 'features' =&gt; SOAP_SINGLE_ELEMENT_ARRAYS )); $result = $client-&gt;QueryInteraction($requestData); echo "&lt;pre&gt;"; print_r($result); </code></pre> <p>it didnt get the value...</p> <pre><code>Array ( [productWarningArray] =&gt; stdClass Object ( [ProductWarning] =&gt; Array ( [0] =&gt; stdClass Object ( [Product] =&gt; stdClass Object ( [id] =&gt; 10008 ) [Color] =&gt; stdClass Object ( [id] =&gt; 4 ) [Value] =&gt; stdClass Object ( ) ) [1] =&gt; stdClass Object ( [Product] =&gt; stdClass Object ( [id] =&gt; 10008 ) [Color] =&gt; stdClass Object ( [id] =&gt; 4 ) [Value] =&gt; stdClass Object ( ) ) [2] =&gt; stdClass Object ( [Product] =&gt; stdClass Object ( [id] =&gt; 2322 ) [Color] =&gt; stdClass Object ( [id] =&gt; 1 ) [Value] =&gt; stdClass Object ( ) ) ) ) ) </code></pre> <p>its null...</p> <pre><code>[Value] =&gt; stdClass Object ( ) </code></pre> <p>how can i fix the problem?</p> <p>thank you...</p>
 

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