1、RPC方式,不生成客户端代码
RPCServiceClient serviceClient = new RPCServiceClient();
EndpointReference targetEPR = new EndpointReference(WS_WSDL_URL);
Options options = serviceClient.getOptions();
options.setTo(targetEPR);
QName opQName = new QName(WS_TARGET_NAMESPACE, WS_METHOD_NAME);
Object[] parameter = new Object[]{ xml };
Class[] returnType = new Class[]{ String.class };
Object[] ret = serviceClient.invokeBlocking(opQName , parameter, returnType);
String resp = (String) ret[0];
method_name 的确定,如图: