I have a web service with a method that returns a xml document, however, on the client side the result of the call to this method returns a XmlNode. If i look in the Reference.vb or the object browser for the reference the return type is specified there as being an XmlNode.
Although this isn't fatal i'd like the client program to be getting an XmlDocument back. Any ideas or pointers?
Thanks,
Paul.
WEBSERVICE:
Expand|Select|Wrap|Line Numbers
- <WebMethod()> _
- Public Function Calls(ByVal sCallID) As System.Xml.XmlDocument
- Return DoCallHit(sCallID)
- End Function
- ...
- Private Function DoCallHit(ByVal sCallID As String) As XmlDocument
- Dim xDoc As New XmlDocument
- Dim node As XmlNode
- xDoc.Load(System.AppDomain.CurrentDomain.BaseDirectory() & "\App_Data\CallHitCreate.xml")
- ' Reference
- node = xDoc.SelectSingleNode("/SIDREQUEST/FIELD/ID[.='CALLG;CALLID']")
- node.NextSibling.InnerText = sCallID
- Return xDoc
- End Function
Expand|Select|Wrap|Line Numbers
- Public Function Calls(ByVal sCallID As String) As System.Xml.XmlNode