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:41
Avg. Score:4.5 ± 0.8
Reproduced:37 of 37 (100.0%)
Same Version:6 (16.2%)
Same OS:23 (62.2%)
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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
14 - 4 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 19:01:26 2019 UTC