Unmarshalling Error: unexpected element 错误的解决
来源:互联网 发布:迅数据恢复软件注册码 编辑:程序博客网 时间:2024/05/19 02:42
使用ksoap2连接cxf 的webservice时,
如果不带参数可以正常返回,带参数则报如下异常:
org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://webservice.abc.com/", local:"arg0"). Expected elements are <{}arg1>,<{}arg0>
解决方法
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = rpc;
envelope.dotNet = true;//改成false
envelope.setOutputSoapObject(rpc);
问题解决
- Unmarshalling Error: unexpected element 错误的解决
- Unmarshalling Error: unexpected element 错误的解决
- Unmarshalling Error: unexpected element 错误的解决
- Unmarshalling Error: unexpected element
- 使用NodeJS的SOAP包时报"Unmarshalling Error: unexpected element错的问题
- shihangbo-delphi7调用java-cxf-webservices出错 'Unmarshalling Error: unexpected element
- Webservice调用服务端 Unmarshalling Error: unexpected element (Xxx). Expected elements are Xxx
- webserver报XFireFault: Unmarshalling Error: unexpected element (uri:"http://server.iflytek.com/", loc
- Unmarshalling Error: 意外的元素的问题的解决
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- unmarshalling error
- PHP 中 syntax error, unexpected $end 错误的一种原因及解决
- PHP syntax error, unexpected $end 错误的一种原因及解决
- linux下解决bash: syntax error near unexpected token `(' 的错误
- JAXB 的 UnmarshalException unexpected element 错误原因与解决方法
- 解决shell错误:syntax error: unexpected end of file
- scripts/config/mconf: Syntax error: “(” unexpected错误解决
- org.apache.cxf.interceptor.Fault: Unmarshalling Error错误解决方案
- asp.net的session的七点认知
- PetShop4.0学习
- Linux上三个主要文件系统(EXT2、EXT3和ReiserFS)介绍
- Java开发的程序之运行一个。
- VB中调用vc++ DLL文件中的函数问题
- Unmarshalling Error: unexpected element 错误的解决
- java数据结构之插入排序(直接插入排序、折半插入排序、希尔排序)
- C/C++/C#面试题精选(1)
- Java JCE加密用法
- C#的多线程和异步的区别
- Mac 终端命令
- Oracle学习文档,适合初学者哦!
- 带参数的ASP页面实现锚点(#)定位的方法
- 我的10个开发原则