依赖
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.4</version>
</dependency>
util
public static String callComplaintSystem(String requestXML, String rest_uri, String nameSpace, String operationName) throws Exception {
String result = "";
org.apache.axis.client.Service service = new org.apache.axis.client.Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new URL(rest_uri));
call.setOperationName(new QName(nameSpace, operationName));
call.addParameter("arg0", XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.setReturnType(XMLType.XSD_STRING);
result = call.invoke(new Object[] { requestXML }).toString();
return result;
}