Ask a Question related to ASP.NET Web Services, Design and Development.
-
Ryan Champlin #1
Passing XML in a string parameter
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
Ryan Champlin Guest
-
Query string and Parameter Passing Problem
Hi In the context of a Master/Detail scenario, I am having trouble figuring out the correct syntax for passing a parameter in a query string in a... -
Passing a parameter in SWF
In the sample application that comes with flash mx, when I click on the simpleconnect and look at parameters it has an Application Directory and if... -
Passing in a parameter
Hello All, I've declared my usercontrol in the normal way (page directive) and to load it I'm doing: <webapp:menu runat="server" />. However, is... -
Passing a Large String as a parameter to a web service
Hello I have a situation where I might pass a large string as a parameter to a webservice. The string size could go upto 100 MB. Is there a... -
Passing Unicode String as Web Method Parameter
All web requests and responses by default under ASP.NET are sent as unicode and are encoded as unicode UTF8. This can be changed in the... -
Ryan Champlin #2
Passing XML in a string parameter
I think I may have found the answer but could someone
verify that i am correct on this. From what I can tell
the SOAP spec. says that a type of string follows the XML
Schema specification for a string type. The string type
for an XML Schema says that this string contain contain
child elements thus the charaters that typically make up
element tags (such as < or >) are not allowed or basically
need to be converted to their escaped equivalent.
Ryanwe've>-----Original Message-----
>
>We have a parameter to a webmethod that is defined as a
>string. We expect to pass XML in this string. Whatthe>found out is that the .Net web serivce seems to expectall>string to be in an htmlencoded format. By this I mean>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
>.
>Ryan Champlin Guest
-
Jan Tielens #3
Re: Passing XML in a string parameter
That's right, otherwise you'd end up with invalid xml.
--
Greetz
Jan Tielens
________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Ryan Champlin" <anonymous@discussions.microsoft.com> wrote in message
news:09c801c3d9e0$19edea70$a501280a@phx.gbl...> I think I may have found the answer but could someone
> verify that i am correct on this. From what I can tell
> the SOAP spec. says that a type of string follows the XML
> Schema specification for a string type. The string type
> for an XML Schema says that this string contain contain
> child elements thus the charaters that typically make up
> element tags (such as < or >) are not allowed or basically
> need to be converted to their escaped equivalent.
>
> Ryan> we've> >-----Original Message-----
> >
> >We have a parameter to a webmethod that is defined as a
> >string. We expect to pass XML in this string. What> the> >found out is that the .Net web serivce seems to expect> all> >string to be in an htmlencoded format. By this I mean> >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
> >.
> >
Jan Tielens Guest



Reply With Quote

