从调用HTTP Web服务到https [英] Calling a web service from http to https

查看:281
本文介绍了从调用HTTP Web服务到https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的方案...

Here is my scenario...

我的工作就是HTTP服务器上://在传统的ASP

I'm working on a server that is http:// in Classic ASP

该公司购买的验证信息的Web服务,该Web服务是的https://xxx.svc等

The company purchased a web service that verifies information, this web service is https://xxx.svc?etc

我能做些什么来调用这个服务?我试过AJAX使用jQuery,我已经试过XmlHTT prequest和XDR,我只是出出主意。我遇到了同样的错误,每次..拒绝访问,当我把我的对象上开放。我听说过同一个域策略和跨站脚本执行了一些东西,但现在2012年。有什么办法做到这一点?

What can I do to call this service? I've tried AJAX with jQuery, I've tried XmlHTTPRequest and XDR, and I'm just about out of ideas. I'm running into the same error every time.."Access Denied" when I call "open" on my object. I've heard a few things about Same Domain policies and Cross Site Scripting, but it's 2012 now. Is there any way to accomplish this?

推荐答案

您正在运行到跨域问题。

You are running into cross domain issues.

设置一个通过 ServerXMLHTTP的对象的Web服务通信的服务器端页面。了解更多关于这个这里

Setup a server side page that communicates with the webservice through the ServerXMLHttp object. Read more about this here.

然后,您可以处理请求的服务器端或使用JavaScript来使一个AJAX请求到服务器端页面。由于这将是在同一个域,你会不会遇到跨域问题。

You could then process the request server side or make use of JavaScript to make an AJAX request to your server side page. Since it will be on the same domain, you will not run into cross domain issues.

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

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