请帮助:无法添加参考wcf服务(成功时出错) [英] Plz help : Can't add reference wcf service (Error when Proccess)

查看:113
本文介绍了请帮助:无法添加参考wcf服务(成功时出错)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在http://www.dtduy.com/Service.svc上发布了wcf服务,

 I published a wcf service at here http://www.dtduy.com/Service.svc,

但是当我添加参考服务时,我遇到了问题

But when i add reference service, i have a problem

消息错误是:

该文档已被理解,但无法处理.
-WSDL文档包含无法解析的链接.
--下载'http://www.dtduy时出错. com/Service.svc?xsd = xsd0'.
Â-基础连接已关闭:该连接意外关闭.

The document was understood, but it could not be processed.
  - The WSDL document contains links that could not be resolved.
  - There was an error downloading 'http://www.dtduy.com/Service.svc?xsd=xsd0'.
  - The underlying connection was closed: The connection was closed unexpectedly.

我很想念东西吗???请帮助.

I miss Somethings ???? plz help.

推荐答案

您可以在浏览器中检查WSDL( http://SomeServerName/Service.svc 而不是 http://www.dtduy.com/service.svc .

如果您的服务配置不正确,则WSDL可能包含PC名称而不是公开可见的主机名称.

You can check your WSDL in a browser ( http://www.dtduy.com/Service.svc?wsdl ) and see if there are any references to internal PC names like http://SomeServerName/Service.svc instead of http://www.dtduy.com/service.svc .

If you service is not configured right, it is possible that the WSDL contain PC names rather than publicly visible host names.


这篇关于请帮助:无法添加参考wcf服务(成功时出错)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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