Find solution

How to call a web service using HttpWebRequest?

Check our answers to ‘How to call a web service using HttpWebRequest?’ - we found 88 replies and comments relevant to this matter. The best answers are submitted by users of Stack Overflow, Quora and Yahoo! Answers.

Best solution

  • How to call a web method on a web service using HTTPWebRequest?

    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("") ' 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...


    In order to invoke a SOAP web service you will need to POST a XML request in a SOAP envelope. That's...

    Mark as irrelevant Undo

Other solutions