Talking to SOAP::Lite

From: Date: Sun, 04 Aug 2002 22:33:45 +0000
Subject: Talking to SOAP::Lite
Groups: php.soap 
Request: Send a blank email to php-soap+get-210@lists.php.net to get a copy of this message
Hi, I have been trying to talk to a SOAP::Lite server using php-soap (version: 0.1.2) After commenting line #411 (Can't find response paramater....) in php_http.c, I managed to get a little further. Otherwise, it would bail out with this message: Fatal error: Can't find response parameter "Result" The simple program is: <? $s = new SoapObject('http://urdu.local/SOAP/Urdu2Local.wsdl'); //// DOESN'T WORK... why not? //$var = new SoapVar ( 'Urdu is a great language' , XSD_STRING ); //$res = $s->Translate ( $var ); $res = $s -> Translate ( 'Urdu is a great language' ); var_dump ($s); echo "\n\n\n"; var_dump ($res); ?> <OUTPUT> <<<<CUT>>>> ["__last_response"]=> string(552) " <<<<CUT>>>> <SOAP-ENV:Body><namesp1:TranslateResponse xmlns:namesp1="urn:Urdu::SOAP"><s-gensym3 xsi:type="xsd:string">Urdu aik zabardast zabaan hai</s-gensym3></namesp1:TranslateResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>" } NULL </OUTPUT> WSDL URL: http://apniurdu.com/SOAP/Urdu2.wsdl 'Urdu aik zabardast zabaan hai' is what I am looking for and it is present in that SOAP envelope! How do I access it? $res is NULL. It works absolutely fine with SOAP::Lite (Perl) and Microsoft's SOAP client (VB). Thank you! Faisal Nasim Pakistan

« previous php.soap (#210) next »