GsoaP/PEAR::SOAP interoperability
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Tue, 27 Apr 2004 01:59:46 +0000 |
| Subject: | GsoaP/PEAR::SOAP interoperability | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1503@lists.php.net to get a copy of this message | ||
I've been trying to get my C++ gsoap client request to work with my PHP
PEAR::SOAP server response.
Has anyone ever tried this and get it to work? Here are the details:
GSOAP request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns4="http://www.phppatterns.com#Test1">
<SOAP-ENV:Body id="_0">
<hello xmlns="http://www.phppatterns.com#Test1">
<param-1>bonnie girl</param-1>
</hello>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PEAR::SOAP response:
HTTP/1.1 200 OK
Date: Tue, 27 Apr 2004 01:50:52 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.1 DAV/1.0.3 mod_ssl/2.8.14
OpenSSL/0.9.6b
X-Powered-By: PHP/4.3.1
Status: 200 OK
Content-Length: 561
Connection: close
Content-Type: text/xml; charset=UTF-8
<?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="http://www.phppatterns.com#Test1"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:helloResponse>
<return xsi:type="xsd:string">Hello bonnie
girl</return></ns4:helloResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Everything looks good except GSOAP doesn't like the <return> tag
according to the following debug message:
Unknown element 'return' (level=3, 1)
IGNORING element 'return'
End element found (level=3) 'return'=''
A more generic question:
Has anyone ever gotten a C++ SOAP client (any SOAP implementation) to
correct communicate with a PHP SOAP Server (Any SOAP implementation)
Thanks in Advance
Norb