Search Wiki:
Resource Page Description
.NET webservices use XML 1.0 in SOAP responses. XML 1.0 does not allow certain characters like vertical tab. This can lead to exceptions when serializing objects as return values for web services.
This SoapExtension allows to clean the XML before the content is sent over the wire. Just register the extension in the web config like this and you are fine:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<system.web>
<webServices>
"<soapExtensionTypes>
<add type="StefanG.SoapExtensions.XmlCleanupSoapExtension, XmlCleanupSoapExtension, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0e15300fe8a7b210"" priority="1"" group="0"" />
</soapExtensionTypes>
...
</webServices>
...
</system.web>
...
</configuration>

More details on the following blog:
http://blogs.technet.com/stefan_gossner/archive/2009/08/26/how-to-deal-with-invalid-characters-in-soap-responses-from-asp-net-web-services.aspx

short update: release 1.1 contains support for hexadecimal numeric encoded characters.


Last edited Aug 26 2009 at 4:06 PM  by StefanGossner, version 2
Updating...
Page view tracker