web service issue



hi all
I created a web service with one web method:
<WebMethod()> Public Function RequestPremium(ByVal web_request As
XmlDocument) As XmlDocument

it basically accepts a xmldocument then queries a database and returns
results in a xmldocument
I've confirmed that the code in the web method works, it fails when
the web method tries to return the new xmldocument:
last couple of lines in web method...
o_xmlreturn.Save("C:\temp\WS.xml") ' this works, xmldocument has
data and saves to the web server in c:temp
RequestPremium = o_xmlreturn ' this fails when it returns back to
calling program

my calling program is just a test windows vb.net app. the calling
lines are
ws_webservice = New WebService.POCservice ' web reference
ws_webservice.Credentials = New System.Net.NetworkCredential("user",
"pwd", "domain")
xml_return = ws_WIS_webservice.RequestPremium(xml_send)

can you return a xmldocument in a web service? I passed one and it
worked fine, just won't return it
any help would be appreciated. thanks

.



Relevant Pages

  • Re: web service issue
    ... I created a web service with one web method: ... XmlDocument) As XmlDocument ... I checked the web reference in my calling program in ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: web service issue
    ... I created a web service with one web method: ... XmlDocument) As XmlDocument ... my calling program is just a test windows vb.net app. ...
    (microsoft.public.dotnet.framework.aspnet)
  • web service issue
    ... I created a web service with one web method: ... XmlDocument) As XmlDocument ... my calling program is just a test windows vb.net app. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: XmlDocument Web method returns type XmlNode
    ... > Could be that the client doesn't want the entire xmlDocument. ... > Change the return type to xmlNode ... >>I developed a web method that returns type XmlDocument. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XmlDocument Web method returns type XmlNode
    ... > Could be that the client doesn't want the entire xmlDocument. ... > Change the return type to xmlNode ... >>I developed a web method that returns type XmlDocument. ...
    (microsoft.public.dotnet.general)