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
the error.
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
knbinoj
Member
7 Points
85 Posts
When call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character is po...
Feb 20, 2012 04:18 PM|LINK
Hi all,
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
webservice
Otomii Lu - ...
Contributor
3065 Points
490 Posts
Microsoft
Re: When call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character i...
Feb 22, 2012 06:26 AM|LINK
Hi,
According to your description ,I cannot target the problem.
Similar Link:
http://forums.asp.net/t/1275972.aspx
It would be appreciated if you can provide me more information.
Steven Cheng...
Contributor
4199 Points
548 Posts
Microsoft
Moderator
Re: When call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character i...
Feb 24, 2012 08:08 AM|LINK
Hi Binoj,
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 the error.
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
webservice
Feedback to us
Microsoft One Code Framework