你如何通过代理/防火墙添加Web引用? [英] How do you add a web reference through a proxy/firewall?

查看:177
本文介绍了你如何通过代理/防火墙添加Web引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在防火墙在工作的时刻后面,我测试的东西,我已经部署到我的网站,并在工作代理似乎是有点堵吧。

I'm behind a firewall at work at the moment and I was testing something that I had deployed to my website, and the work proxy seems to be blocking it somewhat.

基本上我收到的消息:

操作无效由于对象的当前状态

Operation is not valid due to the current state of the object

我知道了下来给我的代理interferring,但我看不到任何高级设置或任何东西,我可以设置要经过我的代理去我的服务。

I've got it down to my proxy interferring, but I can't see any advanced settings or anything I can set up to go through my proxy to get to my service.

我做了一个快速谷歌为它,但没有喜悦。

I did a quick google for it, but no joy.

任何人都找到了一个快速的方法来解决它?

Anyone found a quick way to get around it?

推荐答案

编辑,我忘了写这部分的回答:你可能需要将Web引用URL添加到安全列表的代理。我不知道代理正在使用或者如果你有控制权,但是这应该解决您的问题。如果您没有权限更改代理服务器,后来我把一个快速的变通下方。

Edit, I forgot to write this part in the answer: You may need to add the web reference url to the safe list for your proxy. I am not sure what proxy you are using or if you have control of it, but this should solve your problem. If you don't have access to change the proxy, then I put a quick work around right below.

下面是一个简单的变通,只要使用浏览器浏览到WSDL。抓住XML并将其保存为您的计算机上的.wsdl文件,你想生成的客户端。然后使用 Wsdl.exe用生成客户端将其指向您保存WSDL文件的路径。

Here's a quick work around, just use the browser to navigate to the WSDL. Grab the xml and save it as a .wsdl file on your computer you would like to generate the client on. Then use the wsdl.exe to generate the client pointing it to the path you saved the wsdl file.

这篇关于你如何通过代理/防火墙添加Web引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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