XML Web Service - how to reply with xml?
Righty. I can get the information via xml to my service - but how I reply with xml too?
VB Code:
<WebMethod()> _
Public Function AcceptSMS(ByVal oanumber As String, ByVal danumber As String, ByVal udstring As String) As String
Dim strRetVal As String = ""
strRetVal = "Passed data : <br>"
strRetVal &= oanumber & "<br>"
strRetVal &= danumber & "<br>"
strRetVal &= udstring & "<br>"
Return strRetVal
End Function
That will reply with just text, but I need to format it in proper xml. How do I reply properly...? :afrog:
Re: XML Web Service - how to reply with xml?
Quote:
Originally posted by plenderj
Righty. I can get the information via xml to my service - but how I reply with xml too?
VB Code:
<WebMethod()> _
Public Function AcceptSMS(ByVal oanumber As String, ByVal danumber As String, ByVal udstring As String) As String
Dim strRetVal As String = ""
strRetVal = "Passed data : <br>"
strRetVal &= oanumber & "<br>"
strRetVal &= danumber & "<br>"
strRetVal &= udstring & "<br>"
Return strRetVal
End Function
That will reply with just text, but I need to format it in proper xml. How do I reply properly...? :afrog:
The webservice will take the string, wrap xml around it, and send it back. That is it, unless you want the string itself to contain XML, then you just do the formatting yourself.