mule 调用axis提供的服务

import org.mule.api.MuleException;
import org.mule.api.MuleMessage;
import org.mule.module.client.MuleClient;

public class Client {
//测试axis里发布的LoginService服务
public static void main(String[] args) throws MuleException {
MuleClient client = new MuleClient();

String url = "axis:http://localhost:8080/axis/services/LoginService?method=login";

     MuleMessage message = client.send(url, new Object[]{"test","8888888"}, null);
     
     Object obj = message.getPayload();
     System.out.println(obj.getClass().getName());
     System.out.println(String.valueOf(obj));
   
    client.dispose();
}
}

你可能感兴趣的:(mule 调用axis提供的服务)