jar列表:
1.axis-1.3.2.jar
2.commons-discovery-0.2.jar
3.commons-logging-1.0.4.jar
4.jaxen-1.1.jar
5.jbossall-client-4.0.5.jar
6.jstl-1.1.2.jar
package com.*.webservice.service.impl;
import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
public class test {
public static void main(String[] args) {
// SIG UI组件的信任库文件位于 RM9000安装路径/pms/conf/control/ 下,命名为server.keystore
try {
// 信任库
System.setProperty("javax.net.ssl.trustStore", "e:/server.keystore");
String endpoint = "https://IP:8443/*/services/userWsService";
Call call = (Call) (new Service()).createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName(endpoint, "addUser"));
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.addParameter("arg0", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
String returnValue = (String) call.invoke(new Object[] { "aaaaaaaa" });
System.out.print(returnValue);
} catch (Exception e) {
System.out.print(e);
}
}
}
1.axis-1.3.2.jar
2.commons-discovery-0.2.jar
3.commons-logging-1.0.4.jar
4.jaxen-1.1.jar
5.jbossall-client-4.0.5.jar
6.jstl-1.1.2.jar
package com.*.webservice.service.impl;
import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
public class test {
public static void main(String[] args) {
// SIG UI组件的信任库文件位于 RM9000安装路径/pms/conf/control/ 下,命名为server.keystore
try {
// 信任库
System.setProperty("javax.net.ssl.trustStore", "e:/server.keystore");
String endpoint = "https://IP:8443/*/services/userWsService";
Call call = (Call) (new Service()).createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName(endpoint, "addUser"));
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.addParameter("arg0", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
String returnValue = (String) call.invoke(new Object[] { "aaaaaaaa" });
System.out.print(returnValue);
} catch (Exception e) {
System.out.print(e);
}
}
}