【从本人QQ空间迁移】axis2调用cxf出错问题解决

     1、org.apache.axis2.AxisFault: Fault occurred while processing.
           主要是由于传递参数不正确导致
     2、org.dom4j.DocumentException: Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
          传递的xml文件格式不正确
    3、org.apache.axis2.AxisFault: Unmarshalling Error: unexpected element (uri:"", local:"arg1"). Expected elements are <{}arg0> 
         原因一,传递参数类型不正确,传入字符串,服务器端为数组字符串;
         原因二,传递参数没问题,cxf服务器端,加了@WebParam注解,axis2调用就会报此错误。

猜你喜欢

转载自blog.csdn.net/wzh474420999/article/details/79634436