SOAPException messages converted contain wrong characters in SP1

G

Guest

Since we have installed the .net Framework 1.1 Service Pack 1 we are having a
big problem with the text encoding of our SOAPExceptions. When a
SOAPException is raised characters like quotes (") or german Umlaute (ä, ö,
ü) are converted to incorrect characters in the SOAP response.
F.e. if you have the following implemented in a web service method:

string errMsg = "Here is a \"quote\".";
throw new SoapException( errMsg,new XmlQualifiedName("Server.Problem"));

The following SOAP response is created:

HTTP/1.1 500 Internal Server Error.
Server: Microsoft-IIS/5.1
Date: Fri, 03 Dec 2004 13:02:23 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 431

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>Server.Problem</faultcode>
<faultstring>Here is a &quot;quote&quot;.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>

Uninstalling SP1 is not an option because we can't afford to reinstall the
..net Framework on every customers server, which is the only way to get rid of
that service pack.

Thanks for any help!
Dany
 
G

Guest

I think it works correctly since \" is a special character. &quot;
represents \" character!

Bye
 
G

Guest

A quote (") in the XML document (utf-8) should be correctly a quote and not
the characters """. This correctly worked before SP1. We have uninstalled
(reinstalled .net Framework without SP1 on 1 server) and there it's working
correctly again. If you have a Soap Client and display the error message you
can see what I mean. You can also just have a look at the SOAP response in an
XML editor and see that the characters are wrong.

Dany
 
G

Guest

It seems that this newsgroup clients converts the & q u o t ; to a quote so
my last post should say:
.... correctly a quote (") and not the characters & q u o t ; .
The same is also the case for all german "Umlaute" like ä, ö, etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,838
Latest member
KandiceChi

Latest Threads

Top