Last post Feb 24, 2012 09:08 AM by Steven Cheng - MSFT
Feb 20, 2012 05:18 PM|knbinoj|LINK
I got the following error when I consume a web service using a proxy object created by wsdl tool.
' ', hexadecimal value 0x19, is an invalid character
The result consist of a large string and it consist of html tags. The string is html encoded.
How do I solve this?
Thanks in advance
Binoj k n
Feb 22, 2012 07:26 AM|Otomii Lu - MSFT|LINK
According to your description ,I cannot target the problem.
It would be appreciated if you can provide me more information.
Feb 24, 2012 09:08 AM|Steven Cheng - MSFT|LINK
This does be a common issue when directly using string as parameter for transfer xml or html markup string in webservice or WCF service operations.
As in the thread mentioned by Otomii, if you do want to figure out the root cause(the certain character), you can first get a repro(certain string parameter samples that can always cause the issue). Then, use binary search to locate the exact chars that cause
Or alternatively, we can consider some other approaches to avoid this issue. For example, if the HTML you transfer is of xHTML format, you can consider using .NET XElement or XmlElement type to transfer the data. That's the safe way to transfer xml markup data
in webservice operations