String endpoint = "http://211.156.198.50/services/LoginSystem?wsdl";
Service service = new Service();
String result = "no result!";
Object[] object = new Object[1];
object[0] = xxdz;//Object是用来存储方法的参数
Call call;
try{
call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));// 远程调用路径
call.setOperationName("convertAddress2LongLatGPS");// 调用的方法名
// 设置参数名:
call.addParameter("xxdz", // 参数名
XMLType.XSD_STRING,// 参数类型:String
ParameterMode.IN);// 参数模式:'IN' or 'OUT'
// 设置返回值类型:
call.setReturnType(XMLType.XSD_STRING);// 返回值类型:String
System.out.println(object[0]);
result = (String) call.invoke(object);// 远程调用
System.out.println("fdfd");
System.out.println(result);
} catch (ServiceException e) {