- package com.futuresoftware.oaagent;
- import org.apache.axis.client.Call;
- import org.apache.axis.client.Service;
- public class AxisClient {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- try {
- String status = "2";
- String endpoint = "http://192.168.2.113:9080/sso/services/UUMInterface";
- String operation = "getUserList";
- Service service = new Service();
- Call call = (Call) service.createCall();
- call.setTargetEndpointAddress(new java.net.URL(endpoint));
- call.setOperationName(operation);
- String xml = (String) call.invoke(new Object[] { status });
- System.out.println(xml);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
axis 客户端代码
最新推荐文章于 2021-03-18 11:13:57 发布