String endpoint = "http://127.0.0.1:8080/soap/services/Hello";
String namespace = "http://crea.com";
String method = "forword";
org.apache.axis.client.Service server = new org.apache.axis.client.Service();
org.apache.axis.client.Call call = (org.apache.axis.client.Call) server.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new javax.xml.namespace.QName(namespace, method));
String res = (String) call.invoke(new Object[] {param});
Simple Axis Client
最新推荐文章于 2021-03-18 11:13:57 发布