在http WCF通信 [英] WCF communication on Http

查看:146
本文介绍了在http WCF通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WCF服务时内部访问工作正常。 WCF的链接

I have a WCF service which works fine when accessed internally. The WCF link is .

我要求我们的组织网络团队到此WCF暴露于外部世界,因为公共网站将访问此WCF。我给网络团队DNS作为在其WCF托管服务器的somewebsite.com和IP地址。

I requested the network team at our organization to expose this WCF to outside world since public websites will access this WCF. I gave the network team DNS as somewebsite.com and IP address of the server on which WCF is hosted.

从网络团队得到确认(他们使用瞻博网络),他们已经做了必要的设置,使WCF提供给外面的世界我测试了它为外部用户。之后

After getting the confirmation from Network team (they use Juniper network ) that they have made the required settings to make the WCF available to outside world I tested it as an external user.

如果我输入 http://somewebsite.com/LookUp.svc 地址栏上,我得到HTTP 404找不到网页错误。但是如果我使用HTTPS取代HTTP作为然后我看到了WCF的信息。为了进一步测试它,我添加了一个简单的HTML文件到网站的根目录,作为开
http://somewebsite.com/test.html 。使用HTTP时的test.html不开。然而,我使用HTTPS作为然后test.html的页面显示为外部用户。

If I type in http://somewebsite.com/LookUp.svc on address bar I get http 404 page not found error. However if I replace http with httpS as then I see the WCF information. To further test it , I added a simple html file to the root of the website and opened as http://somewebsite.com/test.html. The Test.html does not open when http is used. However it I use httpS as then Test.html page is displayed to outside users.

在WCF托管到Windows 2008 R2和通过端口80进行通信,我还增加了站点somewebsite.com与结合型HTTP和端口80。

The WCF is hosted to windows 2008 R2 and is communicating over port 80 and I have also added the site binding as somewebsite.com with Type as Http and port as 80.

任何想法,为什么WCF caanot通过http accseed?我希望它通过HTTP才能访问?在WCF使用basicHttpBinding的

Any idea why WCF caanot be accseed over http ?. I want it to be accessed over http only ?. The WCF uses basicHttpBinding

在设定错误的服务器上WCF托管?
任何建议是极大的AP preciated ..

Is the setting wrong on server on which WCF is hosted ? Any suggestion is greatly appreciated..

推荐答案

如果服务之前曾通过HTTP网络家伙打开防火墙之前,我会建议他们只启用HTTPS流量防火墙。

If the service worked before over http before your network guys opened the firewalls I would suggest that they have only enabled the firewall for https traffic.

听起来像是一个防火墙/路由问题我...

Sounds like a firewall/routing problem to me...

心连心

这篇关于在http WCF通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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