XML-Bug in PEAR SOAP_Parser ???
| From: | Jan Skopek | Date: | Tue, 02 Mar 2004 09:54:02 +0000 |
| Subject: | XML-Bug in PEAR SOAP_Parser ??? | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1397@lists.php.net to get a copy of this message | ||
Hi folks,
think i found a strange bug in class SOAP_Parser of the PEAR-Soap-package.
Im using SOAP 0.8RC3with PHP 4.3.4 on a Windows XP machine.
The soap-client wants the server performimg method getCart() and is sending
this message to server:
<?xml version="1.0" encoding="ISO-8859-1"?>
<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="php://webuser:webpass@localhost:8080/WebShop/SESSION/lafkzytkxa40
445
43792d31/mycart"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:getcart/>
</SOAP-ENV:Body>
When the Soap-parser on the Server is going through the XML it reports an
error
"XML error on line 12 col 16 byte 510 no element found".
The problem seems to be the number of caracters of the methodname: getcart
has 7 caracters.
If i use another methodname e.g. getCartT (8 caracters) or getCar (6
caracters) then parser doesnt report an error!!!!!
<?xml version="1.0" encoding="ISO-8859-1"?>
<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="php://webuser:webpass@localhost:8080/WebShop/SESSION/lafkzytkxa40
445
43792d31/mycart"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:getcartt/>
</SOAP-ENV:Body>
or
<?xml version="1.0" encoding="ISO-8859-1"?>
<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="php://webuser:webpass@localhost:8080/WebShop/SESSION/lafkzytkxa40
445
43792d31/mycart"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:getcar/>
</SOAP-ENV:Body>
doesnt produce an error!!!
Maybe there is a bug in xml-functions of PHP?!?
Please can anyone help me?
greets
Jan Skopek