今天碰到一个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

最新文章

  1. [连载]《C#通讯(串口和网络)框架的设计与实现》- 0.前言
  2. No row with the given identifier exists:
  3. SQL Server的Execute As与连接池结合使用的测试
  4. Linux 学习001
  5. UITableViewdataSourse的协议所有方法
  6. 【Toolkit】关闭Closeable的简单工具类
  7. Nginx、LVS及HAProxy负载均衡软件的优缺点详解
  8. This configuration file was broken by system-config-keyboard
  9. Android系统五大布局详解Layout
  10. 文档onload处理程序
  11. Visual Studio 有哪些好用的插件?
  12. Go 语言类型转换
  13. web基础要点记录
  14. Spark jdbc postgresql数据库连接和写入操作源码解读
  15. IIS 域名 带参数 设置重定向
  16. [leetcode.com]算法题目 - Remove Duplicates from Sorted List
  17. Springboot读取自定义配置文件的几种方法
  18. TDD 与 BDD 仅仅是语言描述上的区别么?
  19. 【机器学习】主成分分析PCA(Principal components analysis)
  20. thinkphp图像的裁剪、缩放、加水印

热门文章

  1. 线段树+Dfs序【CF620E】New Year Tree
  2. BSGS与二次剩余
  3. [SRM570]TheTiles
  4. jeeplus中两个项目redis冲突问题
  5. angular2学习资源汇总
  6. Java杂谈6——Java安全模型
  7. WPF附加属性的Set函数不调用的问题
  8. 扩展gridview轻松实现冻结行和列
  9. Nginx实现图片防盗链(referer指令)
  10. ubuntu16.04 登录密码破解方法