Simple Axis Client

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});

你可能感兴趣的:(apache,.net,xml,SOAP)