解决WSDL.EXE不能解析外部Import的XSD的问题
2024-10-19 12:40:34
今天碰到一个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
http://www.cnblogs.com/axisoft/archive/2010/10/26/1861220.html
最新文章
- [连载]《C#通讯(串口和网络)框架的设计与实现》- 0.前言
- No row with the given identifier exists:
- SQL Server的Execute As与连接池结合使用的测试
- Linux 学习001
- UITableViewdataSourse的协议所有方法
- 【Toolkit】关闭Closeable的简单工具类
- Nginx、LVS及HAProxy负载均衡软件的优缺点详解
- This configuration file was broken by system-config-keyboard
- Android系统五大布局详解Layout
- 文档onload处理程序
- Visual Studio 有哪些好用的插件?
- Go 语言类型转换
- web基础要点记录
- Spark jdbc postgresql数据库连接和写入操作源码解读
- IIS 域名 带参数 设置重定向
- [leetcode.com]算法题目 - Remove Duplicates from Sorted List
- Springboot读取自定义配置文件的几种方法
- TDD 与 BDD 仅仅是语言描述上的区别么?
- 【机器学习】主成分分析PCA(Principal components analysis)
- thinkphp图像的裁剪、缩放、加水印