Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 24, 2012 08:08 AM by Steven Cheng - MSFT
Feb 20, 2012 04:18 PM|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 06:26 AM|LINK
According to your description ,I cannot target the problem.
It would be appreciated if you can provide me more information.
Feb 24, 2012 08:08 AM|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