Re: XmlDocument Web method returns type XmlNode

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: John Bailo (jabailo_at_earthlink.net)
Date: 10/25/04


Date: Mon, 25 Oct 2004 13:26:08 -0700

James Flynn wrote:
> Could be that the client doesn't want the entire xmlDocument.
> Change the return type to xmlNode
>
> Then, take your existing xmlDocument and add the following to be returned:
> xmlDocument.SelectSingleNode(XPath Expression Goes Here)

Yes, I can read it via workarounds.

It just disturbs me that an explicitly typed complex return type
XmlDocument is translated to a completely different type when creating
the web reference in the client (!)

>
>
>
> "John Bailo" wrote:
>
>
>>I developed a web method that returns type XmlDocument.
>>
>>But a client calling the web method will only accept the return value as
>>datatype XmlNode.
>>
>>Why?
>>
>>
>>--
>>http://antimeme.texeme.com
>>

-- 
http://antimeme.texeme.com


Relevant Pages

  • 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.framework.aspnet.webservices)
  • 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)
  • 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)
  • 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.framework.aspnet.webservices)