.NET Web服务的WSDL中的URL不正确的问题 [英] Issue with Incorrect URLs in the WSDL of a .NET Web Service

查看:154
本文介绍了.NET Web服务的WSDL中的URL不正确的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在客户端的服务器上安装了一个ASP.NET网站。该站点有一个Web服务,其中包含一些由Flash对象调用以显示新闻源的Web方法。如果你浏览他们的网站(例如:www.domain.com),除闪光灯外一切正常。

We have installed an ASP.NET web site on a client's server. This site has a web service with a couple of web methods that are called by a Flash object in order to display a news feed. If you browse to their site (ex: www.domain.com), everything's working fine except the flash.

问题是,当我们浏览.asmx时,标题显示主机是其网络内部的子域(internal.domain.com)。显然,当从网络外部浏览时,这并不能解析为任何公共IP。这会导致Flash失败,因为flash对象嵌入在页面上,因此正在运行客户端。

The issue is that when we browse to the .asmx, the header shows that the Host is a subdomain internal to their network (internal.domain.com). Obviously this doesn't resolve to any public IP when browsing from outside of their network. This causes the Flash to fail since the flash object is embedded on a page and is therefore running client side.

我检查了有问题的服务器上的计算机名称,它甚至不匹配internal.domain.com - 它是完全不同的东西。从哪里获取这些信息。它不是来自IIS,因为我们没有设置主机头,并且站点的IP设置为(全部未分配)。

I checked the computer name on the server in question, and it doesn't even match "internal.domain.com" - it is something completely different. Where is it getting this information from. It is not coming from IIS, since we have no host headers set up, and the IP for the site is set to (all unassigned).

我们要么强迫要针对特定​​主机运行的Web服务,或者我们需要更改服务器上的某些内容,以便将其解析为有效的面向公众的主机名。非常感谢任何和所有帮助!!!!

We either need to force the web service to run against a specific host, or we need to change something on the server so that it resolves to a valid public-facing host name. Any and all help is greatly appreciated!!!!

推荐答案

解决方案是为www.domain.com添加主机头

The solution is to add a host header for www.domain.com

此处有更多详情

这篇关于.NET Web服务的WSDL中的URL不正确的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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