日期:2014-05-17  浏览次数:20785 次

Axis2奇怪错误,求大虾们解答
我用Axis2生成客户端的时候出现了这样的错误,弄了两天都没有解决,请各位朋友帮忙看看,错误如下:

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement r1_Code
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.example.www.yeepayinterface.YeepayInterfaceStub.fromOM(YeepayInterfaceStub.java:26414)
at org.example.www.yeepayinterface.YeepayInterfaceStub.RegistMerchant(YeepayInterfaceStub.java:1612)
at org.feirui.test.Test.main(Test.java:34)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement r1_Code
at org.example.www.yeepayinterface.YeepayInterfaceStub$RegistMerchantResponse$Factory.parse(YeepayInterfaceStub.java:11434)
at org.example.www.yeepayinterface.YeepayInterfaceStub.fromOM(YeepayInterfaceStub.java:26366)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement r1_Code
at org.example.www.yeepayinterface.YeepayInterfaceStub$RegistMerchantResponse$Factory.parse(YeepayInterfaceStub.java:11325)
... 3 more


------解决方案--------------------
请参考如下:
http://blog.163.com/gaoyutong122@126/blog/static/344697322010892850834/
------解决方案--------------------
看下wsdl