WebMethod returning XMLdataDocument

Discussion in 'ASP .Net Web Services' started by patrick, Feb 11, 2004.

  1. patrick

    patrick Guest

    Hi all,
    I am trying to consume a webservice that receives and returns XmlDataDocument ,
    My problem is that the proxy created by VS.Net (by adding web reference) is changed so that the function receives & returns XmlNode instead of XmlDataDocument

    So when I call the webService i get an Error: "Specified cast is not valid"
    I found document from Microsoft that explains the problem at:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;330600

    How do I call my web service function?
    Thank you!
    patrick

    this is my web service :
    ///////////////////////////////////////////////////////////////////////////////////
    [WebMethod]
    public XmlDataDocument obtainXmlFromServer(XmlDataDocument whatTofind)
    {
    }
    ///////////////////////////////////////////////////////////////////////////////////
    that's how the same function looks like in the proxi class :
    ///////////////////////////////////////////////////////////////////////////////////
    [WebMethod]
    public XmlNode obtainXmlFromServer(XmlNode whatTofind)
    {
    }
    ///////////////////////////////////////////////////////////////////////////////////
    patrick, Feb 11, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    0
    Views:
    674
    Steve
    Feb 29, 2004
  2. =?Utf-8?B?R2VvcmdlIER1cnpp?=

    XmlDataDocument from DataSet with Nested DataRelations

    =?Utf-8?B?R2VvcmdlIER1cnpp?=, May 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,421
    =?Utf-8?B?R2VvcmdlIER1cnpp?=
    May 12, 2004
  3. phl
    Replies:
    1
    Views:
    470
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 2, 2007
  4. prince -=nore=-

    XMLDataDocument on a mobile form?

    prince -=nore=-, Sep 13, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    123
    prince -=nore=-
    Sep 13, 2003
  5. prince -=nore=-

    XMLDataDocument on a mobile form?

    prince -=nore=-, Oct 9, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    111
    prince -=nore=-
    Oct 9, 2003
Loading...

Share This Page