Calling REST web services from a classic asp page
Here are a few articles describing how to call a web service from a class ASP page:
- Integrating ASP.NET XML Web Services with 'Classic' ASP Applications
- Consuming XML Web Services in Classic ASP
- Consuming a WSDL Webservice from ASP
@KP
You should actually use MSXML2.ServerXMLHTTP
from ASP/server side applications. XMLHTTP
should only be used client side because it uses WinInet which is not supported for use in server/service apps.
See http://support.microsoft.com/kb/290761, questions 3, 4 & 5 and
http://support.microsoft.com/kb/238425/.
This is quite important, otherwise you'll experience your web app hanging and all sorts of strange nonsense going on.
You could use a combination of JQuery with JSON calls to consume REST services from the client
or
if you need to interact with the REST services from the ASP layer you can use
MSXML2.ServerXMLHTTP
like:
Set HttpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")
HttpReq.open "GET", "Rest_URI", False
HttpReq.send