R
Ryan Champlin
We have a parameter to a webmethod that is defined as a
string. We expect to pass XML in this string. What we've
found out is that the .Net web serivce seems to expect the
string to be in an htmlencoded format. By this I mean all
the characters such as "<", ">", "=" etc.. need to be
escaped such as < and > etc.. Why is it that .Net
seems to expect this? I'm assuming this is part of the
spec. somewhere that strings need to be encoded (I'm
guessing for de-serialization reasons when using a
parser). If anyone can point me to that in a spec
somewhere that would be helpful so I can explain why this
is happening.
Everything works fine when we make sure we pass this
string htmlencoded.
Thanks
Ryan
string. We expect to pass XML in this string. What we've
found out is that the .Net web serivce seems to expect the
string to be in an htmlencoded format. By this I mean all
the characters such as "<", ">", "=" etc.. need to be
escaped such as < and > etc.. Why is it that .Net
seems to expect this? I'm assuming this is part of the
spec. somewhere that strings need to be encoded (I'm
guessing for de-serialization reasons when using a
parser). If anyone can point me to that in a spec
somewhere that would be helpful so I can explain why this
is happening.
Everything works fine when we make sure we pass this
string htmlencoded.
Thanks
Ryan