Let's say you want your .Net 2.0 web service to return a simple string without any wrapping element (except the necessary minimum). Like this for example:
If you will use the default service template:
You'll get a string wrapped with an element "HelloWorldResult":
So how to return a raw unwrapped text? Just add the "return" attribute in this way:
0 comments:
Post a Comment