php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47810 SoapClient and Multipart response
Submitted: 2009-03-27 15:37 UTC Modified: -
Votes:45
Avg. Score:4.5 ± 0.8
Reproduced:41 of 41 (100.0%)
Same Version:6 (14.6%)
Same OS:24 (58.5%)
From: opi at gmx dot at Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.9 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: opi at gmx dot at
New email:
PHP Version: OS:

 

 [2009-03-27 15:37 UTC] opi at gmx dot at
Description:
------------
SoapClient doesn't understand Multipart response from Server. Instead the full buffer is sent to the xml function.

Reproduce code:
---------------
No Free Test WebServer available.

Expected result:
----------------
Method to get the Multiparts.

Actual result:
--------------
SoapFault exception: [Client] looks like we got no XML document in ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-13 00:32 UTC] c dot scognamiglio at oltrelinux dot com
Is there a fix for this?

The following throw a "looks like we got no XML document" soap exception:

Dumping request headers:
POST /base2/services/Session HTTP/1.1
Host: hostname.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.5
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:newSession"
Content-Length: 229


Dumping request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://server.ws.basedb.sf.net"><SOAP-ENV:Body><ns1:newSession/></SOAP-ENV:Body></SOAP-ENV:Envelope>

Dumping response headers:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_35C74BDBCF92CD2A431247443662345; type="application/xop+xml"; start="0.urn:uuid:35C74BDBCF92CD2A431247443662346@apache.org"; start-info="text/xml"
Transfer-Encoding: chunked
Date: Mon, 13 Jul 2009 00:07:42 GMT

Dumping response:
--MIMEBoundaryurn_uuid_35C74BDBCF92CD2A431247443662345
Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:35C74BDBCF92CD2A431247443662346@apache.org>

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:newSessionResponse xmlns:ns="http://server.ws.basedb.sf.net"><ns:return>62345fcc30f5b8d4</ns:return></ns:newSessionResponse></soapenv:Body></soapenv:Envelope>
--MIMEBoundaryurn_uuid_35C74BDBCF92CD2A431247443662345--
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC