Friday, June 25, 2010

Calling web service from browser

If you want to access a simple web service via the browser address line you have to add the following to the web.config to enable httpget.


        <add name="HttpGet"/>
        <add name="HttpPost"/>


Then you can do this;

    <WebMethod()> _
    Public Function GetTime(ByVal pText As String) As String
        Return pText & " " & Now.ToString
    End Function


No comments: