1.调用代码
String url = "http://localhost:8080/services/";
String method = "12";
String type = "0101";
String xml = "212";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(url));
call.setOperationName(method);
call.addParameter("Funcode", org.apache.axis.encoding.XMLType.XSD_STRING, );
call.addParameter("xml", org.apache.axis.encoding.XMLType.XSD_STRING, );
call.setUseSOAPAction(true);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
String res = (String) call.invoke(new Object[]{type, xml});
2.eclipse自动生成客户端
1. 打开Eclipse(非My Eclipse),新建一Java工程;
2. 新建完Java工程,再在这工程里新建一Web Service Client;
3. 输入Web Service服务器提供的wsdl地址,点击next;

4. 选择生成客户端代码存放的包;


















