I'm trying to write a simple ASP.NET web service, written in VB.NET using VS.Net 2003. Here's the code:
Public Function Authenticate_User(ByVal Username As String, ByVal Password As String, ByVal Error_URL As String) As ????????
' Code in here
Now, what I am trying to do is to return some XML BACK through the method that was invoked. So, for example, calling:
ord=xxx will return something like:
<MESSAGE>Message in here</MESSAGE>
However, in the above code, where the WebMethod is declared "AS ?????", I don't know what to use. If I use:
Public Function Authenticate_User(ByVal Username As String, ByVal Password As String, ByVal Error_URL As String) *** AS STRING ***
the resulting XML is not proper, in the sense that you simply get the standard web service XML returned, then my XML, enclosed within the <STRING></STRING> tags.
Is there a way to output normal XML? By using a proper declaration in the <WebMethod()> statement?