🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.xml.soap
Article #1

Character encoding in SOAP-message

#1
From: berryv
Date: Mon, 02 Apr 2007 08:06
42 lines
2834 bytes
Hi all,

We have a soap webservice built with Delphi 6.
The service has a funcion with three string-paramaters, one of which
is used to pass xml-data.

The service gets called by another party who uses Uniface to call our
webservice.
They get the following error when special character are used (like
"ë"):
"<SOAP-ENV:faultstring>An invalid character was found in text
content."

When I call the service with a testtool built with D6, I can use such
characters and no problem occurs.

So, the call doesn't get past the soap-middelware.

Here's an axample of a call, wich, when called from my machine gives
no error:

<?xml version='1.0' encoding='ISO-8859-1'?>
<SOAP-ENV:Envelope 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/'>
<SOAP-ENV:Body SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/
encoding/'>
<NS1:echoAdvies xmlns:NS1='urn:adviesIntf-Iadvies'>
<username xsi:type='xsd:string'>test</username>
<password xsi:type='xsd:string'>test</password>
<query xsi:type='xsd:string'>&lt;?xml version=&quot;1.0&quot;
encoding=&quot;ISO-8859-1&quot;?&gt;&lt;vraag xmlns:xsi=&quot;http://
www.w3.org/2001/XMLSchema-instance&quot;
xsi:noNamespaceSchemaLocation=&quot;c:\\source\\test\\xml\
\query.xsd&quot;&gt; &lt;Special character: ë&gt;BRN&lt;/bron&gt;&lt;/
vraag&gt;</query>
</NS1:echoAdvies>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Any ideas?
Technical Details
Message-ID: <1175501188.146830.74710@p77g2000hsh.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10aac8,2d705d9391d4c101,start
X-Google-Thread: 114096,2d705d9391d4c101,start
X-Google-Attributes: gid10aac8,gid114096,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail
From: berryv@gmail.com
Newsgroups: microsoft.public.xml.soap,borland.public.delphi.webservices.soap
Subject: Character encoding in SOAP-message
Date: 2 Apr 2007 01:06:28 -0700
Organization: http://groups.google.com
Lines: 43
Message-ID: <1175501188.146830.74710@p77g2000hsh.googlegroups.com>
NNTP-Posting-Host: 62.177.228.218
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1175501189 23140 127.0.0.1 (2 Apr 2007 08:06:29 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 2 Apr 2007 08:06:29 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 ROVDC01
Complaints-To: groups-abuse@google.com
Injection-Info: p77g2000hsh.googlegroups.com; posting-host=62.177.228.218;
   posting-account=n7UcZAwAAADZHiilI6sOw3Rm2FzYG0cY