xfire调用webService接口方法
2009-12-16 15:04
441 查看
xfire调用webService接口方法
/**
* 获取连接对象
*/
private static Client getClient() {
synchronized (XXXService.class) {
if (client == null) {
try {
client = new Client(new URL("http:XXXX?wsdl"));
} catch (Exception e1) {
e1.printStackTrace();
}
}
}
return client;
}
// Client client = getClient();
// Object[] results = null;
// try {
// //调用特定的Web Service方法
// results = client.invoke("verifyRegister", new Object[] { idNo,
// idType,name});
// } catch (Exception e) {
// e.printStackTrace();
// }
// if (results == null)
// System.out.println("zero");
// else{
// for (int i = 0; i < results.length; i++) {
// System.out.println(results[i].toString());
// }
// }
/**
* 获取连接对象
*/
private static Client getClient() {
synchronized (XXXService.class) {
if (client == null) {
try {
client = new Client(new URL("http:XXXX?wsdl"));
} catch (Exception e1) {
e1.printStackTrace();
}
}
}
return client;
}
// Client client = getClient();
// Object[] results = null;
// try {
// //调用特定的Web Service方法
// results = client.invoke("verifyRegister", new Object[] { idNo,
// idType,name});
// } catch (Exception e) {
// e.printStackTrace();
// }
// if (results == null)
// System.out.println("zero");
// else{
// for (int i = 0; i < results.length; i++) {
// System.out.println(results[i].toString());
// }
// }
相关文章推荐
- VC2010及以后版本调用WebService接口的方法
- xfire webservice接口调用
- 调用webservice带参数值返回字符串接口的方法详解
- 调用XFire框架编写的webservice接口的理解
- java调用webservice接口方法
- 用axis在eclipse中new出webService client生成客户端,调用远程webservice接口的方法
- 关于使用axis调用webservice接口方法
- java调用webservice接口方法大全。
- WebService 的简单封装接口调用方法
- Java 常调用的Webservice接口的方法
- java调用webservice用是axis还是xfire的,两种调用方法不同
- java调用WebService接口的几种方法
- Java调用WebService接口的方法
- java 调用wsdl的webservice接口-简单方法
- webservice接口的调用方法
- 通过Xfire开发web service接口和客户端调用web service接口接口方法
- 调用webservice接口方法参数越界问题
- 用ladon框架封装Python为Webservice接口以及调用接口的方法
- java调用webservice接口方法
- java调用webservice接口方法大全