您的位置:首页 > 运维架构

利用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();
}
  
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐