@RequestMapping(value = "/callInfo")
@ResponseBody
public String callInfo(@RequestBody String jstr,HttpServletRequest request ) {
JSONObject params=(JSONObject) JSONObject.parse(jstr);
Object[] objects=null;
String idcard="";
String mobile="";
String number="";
String areacode="";
if(!CTools.isBlank(params)) {
idcard=params.getString("idcard");
mobile=params.getString("mobile");
areacode=params.getString("areacode").substring(0, 6);
}
String spUrl = "http://ip:端口/Queue.svc?wsdl";
String nameSpace = "http://tempuri.org/";
String methed = "ListNumber";
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client client = dcf.createClient(spUrl);
QName name = new QName(nameSpace, methed);
try {
objects=client.invoke(name,idcard,mobile,number,areacode);
//System.out.println("objects:"+objects[0].toString());
} catch (Exception e) {
e.printStackTrace();
}
return objects[0].toString();
}