Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Consuming a web service in ASP 1

Status
Not open for further replies.

5679

Programmer
Feb 14, 2003
32
AU
Hi,
I have to consume a web service in ASP (not ASP.NET). Can anyone give me sample code please.
 
Hi

One way to do this would be with XMLHTTP.
Code:
Set xml = Server.CreateObject("MSXML2.XMLHTTP")
xml.Open "GET", "[URL unfurl="true"]http://mydomain.com/WebService.asmx/WebMethod?inputparam=value",[/URL] False, Username, Password
xml.Send

Here is the Microsoft Documentation at MSDN...


HTH

Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top