为wsdl文件创建服务引用时出错 [英] Error creating a Service Reference for wsdl file

查看:623
本文介绍了为wsdl文件创建服务引用时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Team,





我在visual studio中通过添加服务引用选项添加了wsdl文件但是没有成功添加和显示如果我构建项目,则会出现错误。





错误1 Reference.svcmap:无法为服务引用'ServiceReference1'生成代码。验证导出期间生成的某些XML模式时出错:未声明类型java:java.util:List。无法导入wsdl:portType详细信息:运行WSDL导入扩展时抛出异常:System.ServiceModel.Description.XmlSerializerMessageContractImporter错误:缺少数据类型java:java.util:List。 XPath到错误源://wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:portType [@ name ='Service']无法导入wsdl:binding详细信息:导入wsdl:binding依赖的wsdl:portType时出错。 XPath到wsdl:portType://wsdl:definitionf [@targetNamespace ='http://schemas.ge.com/money/rsf/vcs']/wsdl:portType [@ name ='Service'] XPath到错误源: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:binding[@name='ServiceSoapBinding']无法导入wsdl:port详细信息:出现错误导入wsdl:port依赖的wsdl:binding。 XPath to wsdl:binding://wsdl:definitionf [:@ targetNamespace ='http://schemas.ge.com/money/rsf/vcs']/wsdl:binding[@name='ServiceSoapBinding'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:service[@name='Service']/wsdl:port[@name='ServiceSoap ] App_WebReferences / ServiceReference1 /







我也尝试通过做一些步骤来解决问题以下链接但无法修复。请解决此问题。



Hello Team ,


I added wsdl file through add service reference option in visual studio but It is not successfully added and displaying error if I build project Which is following.


Error 1 Reference.svcmap: Failed to generate code for the service reference 'ServiceReference1'. There was an error verifying some XML Schemas generated during export: Type 'java:java.util:List' is not declared. Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter Error: The datatype 'java:java.util:List' is missing. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:portType[@name='Service'] Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:portType[@name='Service'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:binding[@name='ServiceSoapBinding'] Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:binding[@name='ServiceSoapBinding'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:service[@name='Service']/wsdl:port[@name='ServiceSoap'] App_WebReferences/ServiceReference1/



I also tried to resolved issue by doing some steps is described in following link but unable to fix it . please resolve this issue.

http://stackoverflow.com/questions/11112960/visual-studio-2012-error-reference-svcmap-throwing-error[^]
http://stackoverflow.com/questions/3977560/service-reference-error-failed-to-generate-code-for-the-service-reference[^]

.

推荐答案

这篇关于为wsdl文件创建服务引用时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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