axis2调用webservice

 调用方法

1、传递单个参数

1
Object[] objs = invokeMethod("http://localhost:8080/axis2/services/MobileWs", "getArrayTest", "http://ws.apache.org/axis2", new Object[] {"zhangsan"}, new Class[]{String.class});

 2、传递数组

1
Object[] objs = invokeMethod("http://localhost:8080/axis2/services/MobileWs", "getArrayTest", "http://ws.apache.org/axis2", new Object[] {new String[]{"zhangsan","lisi"}}, new Class[]{String.class});

axis2调用webservice

上一篇:学习笔记 VB.NET 特殊字符


下一篇:相对熵(KL散度)