SOAP problem for a long time

From: Date: Mon, 03 Mar 2003 10:08:45 +0000
Subject: SOAP problem for a long time
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14057@lists.php.net to get a copy of this message
Hi there, Sorry to send this message here, i dunno if there is another better place to send but this is the one i have for now, and i'm with quite urgency about this problem. Some time back, while playing with pear::soap i had a problem, i was having the message envelope twice, it seem's that PHP get's the post data and double's it or something, at that time i paied no attention, as i thought it could be about my custom compiler php version. now i'm using latest RH PHP rpm (php-4.2.2-8.0.7) and i still have the same problem. i set up a little test with server.php and client.php from PEAR/SOAP/examples and here is the output of the print_r(): soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => SOAP-ENV:Parser [message] => XML error on line 6: junk after document element [userinfo] => <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 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/" xmlns:ns4="urn:SOAP_Example_Server" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns4:echoStringSimple><inputString xsi:type="xsd:string">this is a test string</inputString></ns4:echoStringSimple></SOAP-ENV:Body></SOAP-ENV:Envelope><?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 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/" xmlns:ns4="urn:SOAP_Example_Server" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns4:echoStringSimple><inputString xsi:type="xsd:string">this is a test string</inputString></ns4:echoStringSimple></SOAP-ENV:Body></SOAP-ENV:Envelope> [callback] => ) As you can see the SOAP message is doubled, i tried everything and the $_POST array comes always with the message doubled. I had also the same problem way back, when i was trying to submit a form when the submit button had no name like: <input type="hidden" name="abc" value="p"> <input type="submit" value="ok"> with the form above i had a $_POST['abc'] = 'pabc=p' but when i add the name to the submit button it all went fine. I'm sure that this can be a php.ini problem, but i'm tired sick of trying everything i can't find an answer. thx in advance. Rui Barreiros

« previous php.pear.dev (#14057) next »