从传统的ASP页面调用REST Web服务 [英] Calling REST web services from a classic asp page

查看:340
本文介绍了从传统的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

这篇关于从传统的ASP页面调用REST Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆