Problems with PEAR::SOAP
| From: | Marcos Lois Bermúdez | Date: | Wed, 12 Mar 2003 15:42:14 +0000 |
| Subject: | Problems with PEAR::SOAP | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-465@lists.php.net to get a copy of this message | ||
I try the server.php client.php example that comer with PEAR::SOAP, and get a error:
soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => HTTP [message] =>
Warning: Cannot modify header information - headers already sent by (output started at /webs/beta.iqc-services.com/PEAR/Mail/mimePart.php:698) in /webs/beta.iqc-services.com/PEAR/SOAP/Server.php on line 200
Warning: Cannot modify header information - headers already sent by (output started at /webs/beta.iqc-services.com/PEAR/Mail/mimePart.php:698) in /webs/beta.iqc-services.com/PEAR/SOAP/Server.php on line 209
Warning: Cannot modify header information - headers already sent by (output started at /webs/beta.iqc-services.com/PEAR/Mail/mimePart.php:698) in /webs/beta.iqc-services.com/PEAR/SOAP/Server.php on line 209
Warning: Cannot modify header information - headers already sent by (output started at /webs/beta.iqc-services.com/PEAR/Mail/mimePart.php:698) in /webs/beta.iqc-services.com/PEAR/SOAP/Server.php on line 209
.....
This seems to be, becouse i recibe before the header ae sent:
Notice: Undefined index: content-type in /webs/beta.iqc-services.com/PEAR/SOAP/Server.php on line 161
...
server.php code:
...
157 // if this is not a POST with Content-Type text/xml, try to return a WSDL file
158 if (!$this->fault && !$test && ($_SERVER['REQUEST_METHOD'] != 'POST' ||
159 strncmp($headers['content-type'],'text/xml',8) != 0)) {
160 // this is not possibly a valid soap request, try to return a WSDL file
161 $this->_raiseSoapFault("Invalid SOAP request, must be POST with content-type: text/xml, got: {$headers['content-type']}",'','','Server');
162 }
...
this notice arrives becouse in SOAP/Base.php are a error_reporting(E_ALL).
Any body have the same trouble?
Regards.
-----------------------------------------------
Marcos Lois Bermúdez
marcos.lois@iqc-services.com
IQC - Services
Avda. Garcia Barbón, 90 / 4ºB
36201 Vigo (Pontevedra)
Tel: +34 986.884.244
Fax: +34 986.415.074
http://www.iqc-services.com
-----------------------------------------------