Unmarshalling Error: unexpected element 错误的解决
生活随笔
收集整理的這篇文章主要介紹了
Unmarshalling Error: unexpected element 错误的解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
使用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 错误的解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Web Service属性介绍
- 下一篇: 2016年6月TIOBE编程语言排行榜: