Hello,
As a practice exercise, I've published a (very simple) web service,
http://www.myshoptour.com/WebServices/HelloWorldMST.asmx
The test page works great, but I am having problems consuming it in my website. My code is as follows:
Try
Dim wsProd As New wsHelloWorldMSTprod.HelloWorldMSTSoapClient()
wsProd.Open()
Select Case rblSelectHelloWorldType.SelectedIndex
Case 0
strOut = wsProd.HelloWorld1()
Case 1
strOut = wsProd.HelloWorld2()
Case Else
End Select
wsProd.Close()
Catch ex As Exception
End Try
The line with the "new" seems to be the problem. It does nothing. Seems like it does not return. I am unable to trace into it.
Can someone please tell me what I am doing wrong (and show me the correct code)?
Thanks in advance. And sorry if this is in the wrong category - it has been a while since I've posted here. I'm getting back into web development after a much needed break!
What I have tried:
The first time I published it, I was able to consume it fine. Then I made a simple change to the web service and published it again. Since then, consuming it in my website does not work.