When using an HTTPWebRequest object to call a web service, and supply the wsdl parameter, I get the description page ok.
Dim req As Net.HttpWebRequest
Dim resp As Net.HttpWebResponse
Dim sr As IO.StreamReader
Dim text As String
req = Net.WebRequest.Create("http://www.mysite.com/DS.asmx?wsdl") ' works '
resp = req.GetResponse
sr = New IO.StreamReader(resp.GetResponseStream)
text = sr.ReadToEnd
However, when I attempt to call one of the methods using the reference showing as the soapAction, I get (404) Not Found.
req = Net.WebRequest.Create("http://mysite.com/DS/StaffList") ' fails '
Is there a difference in the way a method should be called that I'm missing? Am I misinterpreting the structure of the address?
Note: The service works fine if I set a standard WebReference in the Visual Studio project and call the method on the WebService object, so the service itself is available and working.