Soapclient Returns Null Data

I have a problem about soapclient.

i tried to get datas by soup-ui application on ubuntu. this is output on soap-ui




<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://webservice.bc/Interaction">

   <SOAP-ENV:Body>

      <ns1:QueryInteractionResponse>

         <productWarningArray>

            <ProductWarning>

               <Product>

                  <id>10008</id>

               </Product>

               <Color>

                  <id>4</id>

               </Color>

               <Value>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.</Value>

            </ProductWarning>

            <ProductWarning>

               <Product>

                  <id>10008</id>

               </Product>

               <Color>

                  <id>4</id>

               </Color>

               <Value>Besinler, psödoefedrinin emilimini yavaşlatır.</Value>

            </ProductWarning>

            <ProductWarning>

               <Product>

                  <id>2322</id>

               </Product>

               <Color>

                  <id>1</id>

               </Color>

               <Value>Besinler sildenafil absorbsiyonunu geciktirir.</Value>

            </ProductWarning>

         </productWarningArray>

      </ns1:QueryInteractionResponse>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>



But it returns null value when i tried with php soapclient.


$client = new SoapClient("http://webservice.bc/web.wsdl", array(

                        'exceptions'=>true,

                        'cache_wsdl'=>WSDL_CACHE_NONE,

                        'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 5,

                        'features' => SOAP_SINGLE_ELEMENT_ARRAYS,

                        'encoding'=>' utf-8'

                    //  'features' => SOAP_SINGLE_ELEMENT_ARRAYS


                ));

                $result = $client->QueryInteraction($requestData);

                echo "<pre>";

                print_r($result);

output


Array

(

    [productWarningArray] => stdClass Object

        (

            [ProductWarning] => Array

                (

                    [0] => stdClass Object

                        (

                            [Product] => stdClass Object

                                (

                                    [id] => 10008

                                )


                            [Color] => stdClass Object

                                (

                                    [id] => 4

                                )


                            [Value] => stdClass Object

                                (

                                )


                        )


                    [1] => stdClass Object

                        (

                            [Product] => stdClass Object

                                (

                                    [id] => 10008

                                )


                            [Color] => stdClass Object

                                (

                                    [id] => 4

                                )


                            [Value] => stdClass Object

                                (

                                )


                        )


                    [2] => stdClass Object

                        (

                            [Product] => stdClass Object

                                (

                                    [id] => 2322

                                )


                            [Color] => stdClass Object

                                (

                                    [id] => 1

                                )


                            [Value] => stdClass Object

                                (

                                )


                        )


                )


        )


)

difference between soap-ui and soapclient.

soap-ui


<Value>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.</Value

soapclient


[Value] => stdClass Object

                            (

                            )

so how can i fix the null data?

thank you.

Were you able to resolve this problem? I am having a similar issue.

I would start with logging the raw request and response via SoapClient.__getLastResponse(). Just remember to enable trace when creating Soap Client.