Axis1.4 client



package com.bumblebee.axisClient;
import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
public class AxisClientTest {
 public static void main(String[] args) {
     try {
             String endpoint = "http://192.168.1.52:8085/CCSS/webservice/XunfeiWebService";
             String namespaceURI = "XunfeiWebService";
             String localPart = "closeCourt";
             Service service = new Service();
             Call call = (Call) service.createCall();
             call.setTargetEndpointAddress(new java.net.URL(endpoint));
             call.setOperationName(new QName(namespaceURI, localPart));
             String strReturnByGetAllPq = (String) call.invoke(
                 new Object[] { "10", "ah", 0, "notes" });
             System.out.println(strReturnByGetAllPq);
         } catch (Exception e) {
            e.printStackTrace();
         }
     }
}​


赠人玫瑰 手留余香
JuheWeather
杂项
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论