the return value wrapped in the string tag is how the web service conforms to
standards.
if you don't want to write a web page, write a DLL with a web reference to
the web service (which generates your client proxy). have your DLL implement
the same methods as the webservice and just pass the results back out. your
DLL can expect a string return type without the xml around it.
this is known as a service gateway pattern, from MS P&P
http://msdn.microsoft.com/library/de...iceGateway.asp
as a tip: if you use an interface to define your members it makes it a
little easier to ensure you are exposing everything from the web service in
the DLL.
cheers.
"Scanner2001" wrote:
I am looking for a way to return the output of a web service as a string
without the xml tags, just the raw data. I am calling the web service from
an html page using a form post method. Specifically, I want to remove the
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.company.com/webservices/">string</string>
And just return the string. I do not want to write a web page wrapper as an
intermediate between the page and service to strip out the xml tags.
Any ideas would be greatly appreciated.
Thanks,
J