下载元数据时出现WCF错误 [英] WCF error while downloading metadata

查看:94
本文介绍了下载元数据时出现WCF错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



下载元数据时出现以下错误.

元数据包含无法解析的引用:'http://localhost/IVF- Service/SLDWB.svc?wsdl'.
WSDL文档包含无法解析的链接.
下载"http://localhost/IVF-Service/SLDWB.svc?xsd = xsd0"时出错.
基础连接已关闭:连接意外关闭.
元数据包含无法解析的引用:'http://localhost/IVF-Service/SLDWB.svc'.
元数据包含一个无法解析的引用:'http://localhost/IVF-Service/SLDWB.svc'.
如果在当前解决方案中定义了服务,请尝试构建解决方案并再次添加服务引用.


我检查配置文件.没关系...我在服务行为中将HttpGetEnabled设置为true,并且mexHttpBinding也已初始化.

请问您能帮帮我吗? >

Hi,  
  I am getting following error while downloading metadata.

Metadata contains a reference that cannot be resolved: 'http://localhost/IVF-Service/SLDWB.svc?wsdl'.
The WSDL document contains links that could not be resolved.
There was an error downloading 'http://localhost/IVF-Service/SLDWB.svc?xsd=xsd0'.
The underlying connection was closed: The connection was closed unexpectedly.
Metadata contains a reference that cannot be resolved: 'http://localhost/IVF-Service/SLDWB.svc'.
Metadata contains a reference that cannot be resolved: 'http://localhost/IVF-Service/SLDWB.svc'.
If the service is defined in the current solution, try building the solution and adding the service reference again.


I check the configuration file. It is ok...I set HttpGetEnabled = true in service behavior and mexHttpBinding also initialized.

Can you please help me???





推荐答案

我不是100%肯定,但是AFIK到要包含的XSD架构的链接中不能有'-'.您需要致电服务http://localhost/IVFService/....或将WSDL移到没有问题的地址.

Nicholas Allen在这里发布了有关WSDL和名称空间的博客,例如: http://blogs.msdn.com/drnick/archive/2007/08/06/custom-namespaces.aspx






I'm not 100% certain but AFIK you can't have a '-' in the links to XSD schemas that are to get included. You Need to call yout service http://localhost/IVFService/.... or move the WSDL to an address where that isn't an issue.

Nicholas Allen has blogged about WSDL and namespaces and such here: http://blogs.msdn.com/drnick/archive/2007/08/06/custom-namespaces.aspx







这篇关于下载元数据时出现WCF错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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