package com.gsm.ws.call.test;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
public class UserWebService {
public static String GetTestQuestions(String strUIN) {
String result = "";
try {
Service service = new Service();
Call call = (Call) service.createCall();
call.setOperationName(new QName("http://www.communion.cn/","GetGroup"));
call.addParameter("uin", XMLType.XSD_STRING,ParameterMode.IN);
call.setTargetEndpointAddress(new URL("http://www.smb178.com/forclient/service.asmx"));
result = (String) call.invoke(new Object[] {strUIN});
} catch (Exception e) {
e.printStackTrace();
}
return result;
}
public static void main(String[] args) {
System.out.println(GetTestQuestions("20038999"));
}
}