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 "quote".</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
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 "quote".</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