Rest – Calling REST web services from a classic asp page

asp-classicrestweb services

I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work keep programming in Classic ASP. Ideally, then, for them to benefit from the advantages of a unique set of web APIs, it would have to be called from Classic ASP pages.

I haven't the slightest idea how to do that.

Best Answer

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
Related Topic