解决WSDL.EXE不能解析外部Import的XSD的问题
2010-10-26 10:29
176 查看
今天碰到一个WSDL,比较奇怪,它是用Java生成的。
<types>
<xsd:schema>
<xsd:import namespace="http://dms.sfc.hk" schemaLocation="sfc.xsd" />
</xsd:schema>
</types>
WSDL有两个文件,一个是sfc.wsdl,另一个是sfc.xsd。
在命令行执行:wsdl.exe sfc.wsdl报错:
Error: Unable to import binding 'SfcServicePortBinding' from namespace 'http://d
ms.sfc.hk'.
- Unable to import operation 'createFolder'.
- The element 'http://dms.sfc.hk:createFolder' is missing.
解决方法如下:
1。将xsd文件中<xs:schema>节点内的内容copy到wsdl文件的<types><xsd:schema>中。
2。在wsdl.exe后面,添加所有外部引用的xsd。如:wsdl.exe sfc.wsdl sfc.xsd /out:sfc.cs
<types>
<xsd:schema>
<xsd:import namespace="http://dms.sfc.hk" schemaLocation="sfc.xsd" />
</xsd:schema>
</types>
WSDL有两个文件,一个是sfc.wsdl,另一个是sfc.xsd。
在命令行执行:wsdl.exe sfc.wsdl报错:
Error: Unable to import binding 'SfcServicePortBinding' from namespace 'http://d
ms.sfc.hk'.
- Unable to import operation 'createFolder'.
- The element 'http://dms.sfc.hk:createFolder' is missing.
解决方法如下:
1。将xsd文件中<xs:schema>节点内的内容copy到wsdl文件的<types><xsd:schema>中。
2。在wsdl.exe后面,添加所有外部引用的xsd。如:wsdl.exe sfc.wsdl sfc.xsd /out:sfc.cs
相关文章推荐
- 解决WSDL.EXE不能解析外部Import的XSD的问题
- Cocos2d-X3.0bate_关于一些“无法解析的外部符号”的配置问题解决方法
- 关于解决pyinstaller2.1将.py打包成exe文件在中文目录下不能执行的问题
- struts.xml中的default-action-ref解决不能解析网址问题
- CentOS7上解决tomcat不能被外部浏览访问的问题?
- 问题解决 错误 LNK2001 无法解析的外部符号 "public: __cdecl CvANN_MLP_TrainParams::~CvA
- 解决SourceInsight不能解析标准C函数问题
- CentOS7上解决tomcat不能被外部浏览访问的问题?
- 解决ajax方法内部不能给方法外部变量赋值的问题
- windows2003系统的iis不能下载exe文件问题的解决
- 解决: gsrvr.exe错误,内存不能为读,地图白屏,I/O错误 问题。(转载)
- 【转】关于Android4.0 emulator-arm.exe-应用程序错误,内存不能为"read"问题解决方法
- “无法解析外部符号 __security_cookie”问题解决
- 解决QT开发的exe软件不能运行问题
- HtmlUnit解析document时js不能拿到body对象问题解决
- 分布式一致性解决分布式一致性问题用二阶段提交一个没有高可用组件的数据库不能依靠外部软件来实现高可用
- 解决ajax方法内部不能给外部变量赋值的问题
- 解决max解析记录与cname不能共存的问题
- 解决expect下命令不能解析通配符*的问题