WebMethod returning XMLdataDocument

P

patrick

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)
{
}
///////////////////////////////////////////////////////////////////////////////////
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top