A
Andrew
I have a web method like this:
<WebMethod(Description:="Tester")> _
Public Function WTest(ByVal xTest As XmlDocument) As XmlDocument
Return "TEST"
End Function
And When I call the function from VB/ASP.Net 2 I receive the following error:
Unable to cast object of type 'System.Xml.XmlElement' to type
'System.Xml.XmlDocument'.
I call it like this:
Dim cX As New XmlDocument()
Dim cR As String
cR = "<some>xml</some>"
cR.LoadXml(c)
<WebMethod(Description:="Tester")> _
Public Function WTest(ByVal xTest As XmlDocument) As XmlDocument
Return "TEST"
End Function
And When I call the function from VB/ASP.Net 2 I receive the following error:
Unable to cast object of type 'System.Xml.XmlElement' to type
'System.Xml.XmlDocument'.
I call it like this:
Dim cX As New XmlDocument()
Dim cR As String
cR = "<some>xml</some>"
cR.LoadXml(c)