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,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top