Ask a Question related to ASP.NET Web Services, Design and Development.
-
patrick #1
WebMethod returning XMLdataDocument
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:
[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;330600[/url]
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 Guest
-
WebMethod returning a object in a COM dll
Hi All I have writen a web method(C#) which is to return an Serializable object declared in a COM dll. The project compiles & but I am not... -
referencing an XmlDataDocument in my web form
If I create a new xmlDoc from a DataSet (derived from SQL data) such as: Dim myDataSet As DataSet = New DataSet ' code here to populate the... -
Returning Enumeration or Exception from WebMethod?
Hi, I am trying to raise an exception from within a WebMethod in my web service. Is this possible at all? If so, how do you do it? If this is... -
Returning ArrayList from WebMethod, best practices
I want to return an ArrayList of items each item is a Hashtable representing a database row returned from calling a SPROC. Whenever the web service... -
Problem returning ArrayList from WebMethod
I get this in my WebApp when i call a webmethod on a webservice that returns an ArrayList of 34 items: HttpUnhandledException



Reply With Quote

