xfire调用webservice http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?WSDLgetCountryCityByIp 方法名theIpAddress 参数名只用xfire调用webservice 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Client client;Object[] results = null;String result = null;String method = "addSheet";try { client = new Client( new URL("http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?WSDL")); results = client.invoke(method, new Object[] {参数}); result = results[0].toString();} catch (MalformedURLException e) { e.printStackTrace();} catch (Exception e) { e.printStackTrace();} return result; public String axisWebService() { Client client; Object[] results = null; String result = null; String method = "getCountryCityByIp"; try { client = new Client( new URL( "http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx")); results = client.invoke(method, new Object[] {"116.228.185.114"}); result = results[0].toString(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return result; }执行的时候出错 weblogic部署项目莫名报错 poi导出excel 一本设计模式的免费书籍 HashMap同步问题~~急~~~请大家帮帮忙 如何让ie 8 浏览器 在打开的时候,自动触发。那个兼容性视图按钮 请教各位! 关于为每个用户单独设置 session timeout 的问题 求教:配置Tomcat出错? 求救: servlet调用local ejb报异常:javax.naming.LinkException 建立聊天程序 UDP server 需要用到线程么?如果需要,怎么用? 业务编号问题 请教 将一个月的数据分周显示问题。。
Object[] results = null;
String result = null;
String method = "addSheet";
try {
client = new Client(
new URL("http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?WSDL
"));
results = client.invoke(method, new Object[] {参数});
result = results[0].toString();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return result;
Client client;
Object[] results = null;
String result = null;
String method = "getCountryCityByIp";
try {
client = new Client(
new URL(
"http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx"));
results = client.invoke(method, new Object[] {"116.228.185.114"});
result = results[0].toString();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return result;
}执行的时候出错