RPCServiceClient 里有个 invokeBlocking 可以很简单的发送复杂对象。
但由于现在对JAR包的限制 只能使用 ServiceClient 来传送。
查看API 发现 ServiceClient 只有个 sendReceive 方法 但里面的传输参数 只能是 OMElement ? OMElement 如何封装对象?
可用JAR包
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.ws.commons.om.OMElement;
有什么方法 在 不改变现有JAR包的情况下 来发送复杂对象 给 WEBSERVICE