从传统的ASP页面调用REST Web服务
我想开始移动我们的应用业务层到REST Web服务的集合。然而,我们大多数的内联网已使用传统的ASP和大多数的,我的工作保持编程经典ASP开发建成。理想的情况下,那么,对于他们从一组独特的网络的API的优势中获益,就必须从传统的ASP页面调用。
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.
感谢大家的时间!
您可以使用jQuery的使用JSON组合调用从客户消费REST服务
You could use a combination of JQuery with JSON calls to consume REST services from the client
或
如果您需要从ASP层REST服务,您可以使用互动
if you need to interact with the REST services from the ASP layer you can use
MSXML2.ServerXMLHTTP
MSXML2.ServerXMLHTTP
这样的:
Set HttpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")
HttpReq.open "GET", "Rest_URI", False
HttpReq.send