Re: Problem with PEAR::SOAP
| From: | Stephan Wentz | Date: | Tue, 15 Jun 2004 10:45:56 +0000 |
| Subject: | Re: Problem with PEAR::SOAP | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13159@lists.php.net to get a copy of this message | ||
Ah, i think i found the problem.
Sending this to SOAP-Maintainers, too.
The server responds with THIS string, not the one stated in my previous message:
<snip>
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Tue, 15 Jun 2004 10:43:55 GMT
Server: Microsoft-IIS/6.0
COMMERCE-SERVER-SOFTWARE: Microsoft Commerce Server 2002, Enterprise Edition
X-AspNet-Version: 1.1.4322
COMMERCE-SERVER-SOFTWARE: Microsoft Commerce Server 2002, Enterprise Edition
Set-Cookie: Commerce2002_TestPersistentCookie=TestCookie; expires=Wed, 16-Jun-2004 10:43:55 GMT; path=/
Set-Cookie: Commerce2002_TestSessionCookie=TestCookie; path=/
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 450
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><StoreOnlyRequiredUserDataResponse xmlns="https://cs-pre.panasonic.isc4u.de/wsexternal/userservice"><StoreOnlyRequiredUserDataResult>2</StoreOnlyRequiredUserDataResult></StoreOnlyRequiredUserDataResponse></soap:Body></soap:Envelope>
</snip>
It has two HTTP/1.1-Headers, and i think only the first is getting parsed. Maybe there is a redirect or something going on?
Is there a way to implement this?
Bye, Stephan
Stephan Wentz wrote:
Hi all! I'm having a Problem with a Soap-Response returned from a Server. It seems like PEAR::SOAP is trying to parse the Response from the server _with_ the headers! I put a debug-output of $xml in PEAR::SOAP's Parser.php->SOAP_Parser, and it contained the following: <snip> HTTP/1.1 200 OK Date: Tue, 15 Jun 2004 10:27:21 GMT Server: Microsoft-IIS/6.0 COMMERCE-SERVER-SOFTWARE: Microsoft Commerce Server 2002, Enterprise Edition X-AspNet-Version: 1.1.4322 COMMERCE-SERVER-SOFTWARE: Microsoft Commerce Server 2002, Enterprise Edition Set-Cookie: Commerce2002_TestPersistentCookie=TestCookie; expires=Wed, 16-Jun-2004 10:27:21 GMT; path=/ Set-Cookie: Commerce2002_TestSessionCookie=TestCookie; path=/ Cache-Control: private, max-age=0 Content-Type: text/xml; charset=utf-8 Content-Length: 450 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><StoreOnlyRequiredUserDataResponse xmlns="https://cs-pre.panasonic.isc4u.de/wsexternal/userservice"><StoreOnlyRequiredUserDataResult>2</StoreOnlyRequiredUserDataResult></StoreOnlyRequiredUserDataResponse></soap:Body></soap:Envelope> </snip> As you can see the headers are also in the variable, and i don't think that this is right... what could be going wrong here? Bye, Stephan WentzMit freundlichen Gruessen Stephan Wentz