I have a asmx service. I am trying to send special characters in the soap request something like "&,$,>,<" and I get a error saying "The remote server returned an error: (400) Bad Request." it does even reach the service. the service has serializable classes
generated from the xsd to convert the xml to C# objects. So how can I make my soap request which is xml to accept special characters at the server ?
Beta
Member
12 Points
8 Posts
Passing special characters in XML.
Jan 10, 2013 05:03 PM|LINK
I have a asmx service. I am trying to send special characters in the soap request something like "&,$,>,<" and I get a error saying "The remote server returned an error: (400) Bad Request." it does even reach the service. the service has serializable classes generated from the xsd to convert the xml to C# objects. So how can I make my soap request which is xml to accept special characters at the server ?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Passing special characters in XML.
Jan 12, 2013 03:17 AM|LINK
Hi,
You cannot use some special characters such as ">","<",……this will be reguarded as a part of symbols for xml contents.
You have to use something like ≶ >
Reguards!