Net的wsdl生成webservice 异常:undefined simple or complex type 'soapenc:Array'
来源:互联网 发布:编程需要什么样的cpu 编辑:程序博客网 时间:2024/06/07 19:29
错误代码如下:
E:\>wsimport -s D:\ttest\src -p com.cn.phone -verbose D:\ttest\Book.asmx.xml
parsing WSDL...
[WARNING] src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component.
line 505 of file:/D:/ttest/Book.asmx.xml#types?schema2
[ERROR] undefined simple or complex type 'soapenc:Array'
line 505 of file:/D:/ttest/Book.asmx.xml
错误原因:
net那边给的wsdl使用的规范过低,生成之后的不认原来的那种规范,使生成代码不适应我们java这边的使用。
更改后:
重新执行:wsimport -s D:\ttest\src -p com.cn.phone -verbose D:\ttest\Book.asmx.xml
成功生成。
注意:在windows下必须以管理员身份形式运行此命令。
阅读全文
0 0
- Net的wsdl生成webservice 异常:undefined simple or complex type 'soapenc:Array'
- Net的wsdl生成webservice 异常:undefined simple or complex type 'soapenc:Array'
- 关于WSDL中soapenc:Array的使用问题
- 关于cxf 连.net 的webservice生成客户端异常( undefined element declaration 's:schema')
- Use Complex Type 'DateTime' for .Net Webservice through KSOAP Lib
- wsdl.exe 生成webservice
- wsdl 生成 webservice 代理类
- webservice用wsdl 生成文件
- 利用wsdl生成webservice client
- ofbiz的webservice接口提供(1)-WSDL的生成
- ofbiz的webservice接口提供(1)-WSDL的生成
- ofbiz的webservice接口提供(1)-WSDL的生成
- ofbiz的webservice接口提供(1)-WSDL的生成
- ofbiz的webservice接口提供(1)-WSDL的生成
- ofbiz的webservice接口提供(1)-WSDL的生成
- ofbiz的webservice接口提供(1)-WSDL的生成
- wsdl文件生成webservice的http和https的问题
- 根据.wsdl文件,自动生成webservice的调用客户端
- UX设计师害怕报告怎么办
- CSS布局
- 在controller和util中调用服务器中的文件总结
- KMP算法理解
- leetcode 241. Different Ways to Add Parentheses
- Net的wsdl生成webservice 异常:undefined simple or complex type 'soapenc:Array'
- 关于ffi安装失败的解决办法
- [JSP] c:forEach 如何输出序号
- 计算机网络01_一些理解
- Eclipse运行项目后在自定义浏览器打开页面
- Unicode 和 UTF-8 有何区别?
- 在unbutu14.04上创建一个应用的快捷方式
- 简单的计数器
- SSH与SSM两大框架之'S'的区别简单比较