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. Advertisements

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:
    818
    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,603
    =?Utf-8?B?R2VvcmdlIER1cnpp?=
    May 12, 2004
  3. phl
    Replies:
    1
    Views:
    573
    =?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:
    234
    prince -=nore=-
    Sep 13, 2003
  5. Alex

    Returning ArrayList from WebMethod, best practices

    Alex, Jul 16, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    220
  6. Tobias Lekman

    Returning Enumeration or Exception from WebMethod?

    Tobias Lekman, Aug 9, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    260
    Marina
    Aug 11, 2003
  7. WebMethod returning a object in a COM dll

    , Feb 16, 2005, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    170
    Keenan Newton
    Feb 17, 2005
  8. Returning an ArrayList from a WebMethod()

    , Jan 3, 2006, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    262
    Javier G. Lozano
    Jan 17, 2006
Loading...