From: Rene H. <ha...@on...> - 2005-11-18 22:21:17
|
Thanks Scott, now it works... =20 -----Urspr=FCngliche Nachricht----- Von: nus...@li... [mailto:nus...@li...] Im Auftrag von Scott Nichol Gesendet: Freitag, 18. November 2005 23:17 An: nus...@li... Betreff: Re: [Nusoap-general] problem to get content from attachments Actually, here's a simple workaround that I think will hold you for now. Line 236 of nusoapmime.php is $return =3D parent::parseResponse($part->headers, $part->body); Immediately after this, add the line return $return; Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message -----=20 From: "Rene Hanika" <ha...@on...> To: <nus...@li...> Sent: Friday, November 18, 2005 2:24 PM Subject: AW: [Nusoap-general] problem to get content from attachments Hello Scott, these are the HTTP-Headers from response: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.0.3 (build: CVSTag=3DJBoss_4_0_3 date=3D200510042324)/Tomcat-5.5 Content-Type: multipart/related; type=3D"text/xml"; start=3D"<C2E1D4F31CB9692B1271AD291EC2879C>"; boundary=3D"----=3D_Part_74_30327283.1132337487057" Date: Fri, 18 Nov 2005 18:11:27 GMT Connection: close=20 and from the debug: 2005-11-14 19:06:00.267135 soap_transport_http: read line of 17 bytes: HTTP/1.1 200 OK 2005-11-14 19:06:00.267440 soap_transport_http: read line of 27 bytes: Server: Apache-Coyote/1.1 2005-11-14 19:06:00.267607 soap_transport_http: read line of 97 bytes: X-Powered-By: Servlet 2.4; JBoss-4.0.3 (build: CVSTag=3DJBoss_4_0_3 date=3D200510042324)/Tomcat-5.5 2005-11-14 19:06:00.267707 soap_transport_http: read line of 144 bytes: Content-Type: multipart/related; type=3D"text/xml"; start=3D"<C2E1D4F31CB9692B1271AD291EC2879C>"; boundary=3D"----=3D_Part_74_30327283.1132337487057" 2005-11-14 19:06:00.267804 soap_transport_http: read line of 37 bytes: = Date: Fri, 18 Nov 2005 18:11:27 GMT 2005-11-14 19:06:00.267900 soap_transport_http: read line of 19 bytes: Connection: close 2005-11-14 19:06:00.267995 soap_transport_http: read line of 2 bytes:=20 2005-11-14 19:06:00.268187 soap_transport_http: found end of headers = after length 343 2005-11-14 19:06:00.268350 soap_transport_http: want to read content to = EOF 2005-11-14 19:06:00.275027 soap_transport_http: read buffer of 945 bytes 2005-11-14 19:06:00.277777 soap_transport_http: read buffer of 44 bytes 2005-11-14 19:06:00.277889 soap_transport_http: read to EOF 2005-11-14 19:06:00.277997 soap_transport_http: read body of length 989 2005-11-14 19:06:00.278137 soap_transport_http: received a total of 1332 bytes of data from server 2005-11-14 19:06:00.278326 soap_transport_http: closed socket 2005-11-14 19:06:00.278433 soap_transport_http: No Content-Encoding = header 2005-11-14 19:06:00.278527 soap_transport_http: end of send() Thanks, Ren=E9 Hanika -----Urspr=FCngliche Nachricht----- Von: nus...@li... [mailto:nus...@li...] Im Auftrag von Scott Nichol Gesendet: Freitag, 18. November 2005 20:07 An: nus...@li... Betreff: Re: [Nusoap-general] problem to get content from attachments Can you post the HTTP headers that came with the response? The debug = has them, as does $client->response, I think. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message -----=20 From: "Rene Hanika" <ha...@on...> To: <nus...@li...> Sent: Friday, November 18, 2005 12:34 PM Subject: [Nusoap-general] problem to get content from attachments > Hello, >=20 > I use a webservice, which sends a xml-file as attachment. Getting the > content of this file ends with the following error "No root part found = in > multipart/related content". >=20 > I add also the the response from webservice and the debug informations = in > this mail.=20 >=20 > ------=3D_Part_70_23422905.1132334097216 > Content-Type: text/xml; charset=3DUTF-8 > Content-Transfer-Encoding: binary > Content-Id: <749EE038824B864A6C453A612BCB6276> >=20 > <soapenv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > <soapenv:Body> > <soapenv:Action>Crm.searchCustomer</soapenv:Action> > </soapenv:Body> > </soapenv:Envelope> > ------=3D_Part_70_23422905.1132334097216 > Content-Type: text/xml > Content-Transfer-Encoding: binary > Content-Id: <5D43E37AFDA038F778D6CF0BEF96A9EB> >=20 > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <SearchCustomerResponse > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" = noOfResults=3D"1" > xsi:type=3D"SearchCustomerResponse"></SearchCustomerResponse> > ------=3D_Part_70_23422905.1132334097216-- >=20 > Debug > ... > 2005-11-14 18:09:30.369730 soapclientmime: got response, length=3D989 > type=3Dmultipart/related; type=3D"text/xml"; > start=3D"<749EE038824B864A6C453A612BCB6276>"; > boundary=3D"----=3D_Part_70_23422905.1132334097216" > 2005-11-14 18:09:30.369823 soapclientmime: Entering parseResponse() = for > payload of length 989 and type of multipart/related; = type=3D"text/xml"; > start=3D"<749EE038824B864A6C453A612BCB6276>"; > boundary=3D"----=3D_Part_70_23422905.1132334097216" > 2005-11-14 18:09:30.369911 soapclientmime: Decode multipart/related > 2005-11-14 18:09:30.371156 soapclientmime: Have root part of type text/xml; > charset=3DUTF-8 > 2005-11-14 18:09:30.371278 soapclientmime: Entering parseResponse() = for data > of length 284 and type text/xml; charset=3DUTF-8 > 2005-11-14 18:09:30.371371 soapclientmime: Got response encoding: = UTF-8 > 2005-11-14 18:09:30.373626 soapclientmime: Use encoding: UTF-8 when creating > soap_parser > 2005-11-14 18:09:30.373826 soap_parser: No XML declaration > 2005-11-14 18:09:30.373919 soap_parser: Entering soap_parser(), length=3D284, > encoding=3DUTF-8 > 2005-11-14 18:09:30.374654 soap_parser: found root struct Action, pos = 2 > 2005-11-14 18:09:30.374901 soap_parser: parsed successfully, found = root > struct: 2 of name Action > 2005-11-14 18:09:30.375042 soapclientmime: Have root part of type = text/xml > 2005-11-14 18:09:30.375132 soapclientmime: Entering parseResponse() = for data > of length 348 and type text/xml > 2005-11-14 18:09:30.375219 soapclientmime: Use encoding: ISO-8859-1 = when > creating soap_parser > 2005-11-14 18:09:30.375362 soap_parser: Charset from HTTP Content-Type > 'ISO-8859-1' does not match encoding from XML declaration 'UTF-8' > 2005-11-14 18:09:30.375451 soap_parser: Entering soap_parser(), length=3D348, > encoding=3DISO-8859-1 > 2005-11-14 18:09:30.375986 soap_parser: parsed successfully, found = root > struct: of name=20 > 2005-11-14 18:09:30.376149 soapclientmime: Error: No root part found = in > multipart/related content >=20 >=20 >=20 > What can I do to get the content of the xml-file without any errors?=20 > Thanks in advance for your help! >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick > _______________________________________________ > Nusoap-general mailing list > Nus...@li... > https://lists.sourceforge.net/lists/listinfo/nusoap-general >=20 ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id=16845&op=CCk _______________________________________________ Nusoap-general mailing list Nus...@li... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id=16845&op=3Dick _______________________________________________ Nusoap-general mailing list Nus...@li... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id=16845&op=CCk _______________________________________________ Nusoap-general mailing list Nus...@li... https://lists.sourceforge.net/lists/listinfo/nusoap-general |