自己搞定了,和调用axis的webservice是一样的:
加入接口函数为c_login($c_username,$c_userpwd)
try{
String endPoint = "http://210.51.36.233/wqxsoap/wqxsoapfun.php";
Service service = new Service();
Call call = null;
call = (Call) service.createCall();
URL url = new URL(endPoint);
QName qn = new QName("http://210.51.36.233/wqxsoap/wqxsoapfun.php");
call.setOperationName( "c_login");
call.setTargetEndpointAddress(url); String ret = (String) call.invoke(new Object[]{"user","password"});
System.out.println("return value is " + ret);
}
catch (Exception ex)
{
ex.printStackTrace();
}
加入接口函数为c_login($c_username,$c_userpwd)
try{
String endPoint = "http://210.51.36.233/wqxsoap/wqxsoapfun.php";
Service service = new Service();
Call call = null;
call = (Call) service.createCall();
URL url = new URL(endPoint);
QName qn = new QName("http://210.51.36.233/wqxsoap/wqxsoapfun.php");
call.setOperationName( "c_login");
call.setTargetEndpointAddress(url); String ret = (String) call.invoke(new Object[]{"user","password"});
System.out.println("return value is " + ret);
}
catch (Exception ex)
{
ex.printStackTrace();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货