利用weblogic workshop构建的webservice生成的*.jws文件调用webserver
2014-06-06 18:00
357 查看
public static void main(String [] args) {
try{
// for(int i = 0; i <=20;i++){
String url="http://116.236.160.90:8080/axis/ServerEight.jws";
Service serv = new Service();
Call call = (Call)serv.createCall();
call.setTargetEndpointAddress(url);
call.setOperationName(new QName(url,"getReqSheetNo"));
String result;
try {
result = (String)call.invoke(new Object[]{
"6355861cdffe23f01db5c596afe1ac32",
14,"2011-01-01","2","2011-01-01","2",
"2011-01-01",1,12.12,"2011-01-01","2011-01-01",
"2","2011-01-01",12,"2011-01-01","2011-01-01",
"2011-01-01",12,"2011-01-01","2011-01-01",21.12,
"2011-01-01","2011-01-01",21.12,"",121.21,
12,"2011-01-01","2011-01-01",12,"21"});
System.out.println(result);
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// }
}catch(ServiceException e){
e.printStackTrace();
}
}
try{
// for(int i = 0; i <=20;i++){
String url="http://116.236.160.90:8080/axis/ServerEight.jws";
Service serv = new Service();
Call call = (Call)serv.createCall();
call.setTargetEndpointAddress(url);
call.setOperationName(new QName(url,"getReqSheetNo"));
String result;
try {
result = (String)call.invoke(new Object[]{
"6355861cdffe23f01db5c596afe1ac32",
14,"2011-01-01","2","2011-01-01","2",
"2011-01-01",1,12.12,"2011-01-01","2011-01-01",
"2","2011-01-01",12,"2011-01-01","2011-01-01",
"2011-01-01",12,"2011-01-01","2011-01-01",21.12,
"2011-01-01","2011-01-01",21.12,"",121.21,
12,"2011-01-01","2011-01-01",12,"21"});
System.out.println(result);
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// }
}catch(ServiceException e){
e.printStackTrace();
}
}
相关文章推荐
- 利用cmd命令(bat文件)生成WebServiceClient并调用
- 利用resteasy框架构建rest webservice----第五波:java代码调用乱码解决方案
- vs自动生成的WebService配置文件在部署到IIs6后,服务调用失败的解决方法
- 利用数据库,生成一个.net 调用的类文件(只支持对一个表操作的类)
- 【Webservice】 Eclipse根据wsdl文件自动生成webservice的调用客户端
- Web Service学习笔记(webservice、soap、wsdl、jws详细分析) Webservice的wsdl文件解析与Soap消息的发送、接收(不生成java客户端代码)
- 利用Flash Builder 4.5的数据服务功能,从Asp.net的WebService,自动生成调用代码
- 利用Java注解将常量类生成js文件供前端调用 推荐
- vs自己主动生成的WebService配置文件在部署到IIs6后,服务调用失败的解决方法
- [Webservice] Eclipse根据wsdl文件自动生成webservice的调用客户端
- 利用resteasy框架构建rest webservice----第五波:java代码调用乱码解决方案
- 利用wsdl文件生成webservice客户端代码
- 利用resteasy框架构建rest webservice----第三波:实现文件上传---非form提交方式(实例、教程)
- 根据.wsdl文件,自动生成webservice的调用客户端
- 根据.wsdl文件,自动生成webservice的调用客户端
- 利用resteasy框架构建rest webservice----第三波:实现文件上传---非form提交方式(实例、教程)
- 利用c++Test生成构建数据文件 ("build data file"),bdf文件
- WebService系列博客{三}[通过本地Wsdl文件生成客户端调用代码、MyEclipse视图调用webservice]
- 利用原生态的jdk生成 WebService客户端调用工具
- 利用wsdl文件生成webservice接口的java客户端测试代码