logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: nuSOAP / UTF-8 and mbstring: msg#00036

Subject: Re: nuSOAP / UTF-8 and mbstring
I suggest you start by using a recent version of NuSOAP.  You can download 
release version 0.6.7 from 
http://sourceforge.net/project/showfiles.php?group_id=57663.  Alternatively, 
you can get the current working version from CVS at 
http://cvs.sourceforge.net/viewcvs.py/nusoap/.

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 ----- 
From: "Mark Scott" <mark.scott@xxxxxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, January 20, 2005 7:02 AM
Subject: [Nusoap-general] nuSOAP / UTF-8 and mbstring


I'm having issues implementing a nusoap server which will have to handle 
UTF-8 messages.

The code I will be using the nusoap server with requires that mbstring 
extension is present and function overloading '6' is active. This upsets 
nusoap, which appears to get the content length of the request or response 
wrong (I'm not sure which) if any multibyte characters exist.

The error given is "XML error parsing SOAP payload on line 8: unclosed token"

Here is an extract from the server debug output:

soap_parser: inside buildVal() for addMessage(pos 2) of type struct
soap_parser: XML error parsing SOAP payload on line 1: unclosed token
soap_parser: XML payload:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
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:si="http://soapinterop.org/xsd"; xmlns:nu="urn:CsukFoo" 
xmlns:typens="urn:Csuk"><SOAP-ENV:Body><nu:addMessage 
xmlns:nu="urn:CsukFoo"><message 
xsi:type="xsd:string">£</message></nu:addMessage></SOAP-ENV:Body></SOAP-ENV:Envelope


Note that the final '>' is missing from </SOAP-ENV:Envelope>. Adding more 
UTF-8 encoded pound signs '£' makes more characters disappear from the end 
of the payload.

Has anyone else had problems or success with using nusoap in combination 
with mbstring str* function overloading?


-- 
Mark Scott
CSUK Solutions Technical Team
Tel: +44 (0)845 6444 185
Email: mark.scott@xxxxxxxxxxxxxxxxxx


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>