虚拟机上安装完成redhat后无法上网和Xshell无法连接虚拟机的问题
2015-09-09 22:18
891 查看
axis1 客户端调用需要一个调用类,四个jar包,如果web调用需要配置CLASSPATH=.;D:\Program Files\apache-tomcat-6.0.20\lib\axis-1.4.jar;D:\Program Files\apache-tomcat-6.0.20\lib\jaxrpc.jar 和JAVA_HOME package com.chinafung.client; import java.net.MalformedURLException; import java.rmi.RemoteException; import javax.xml.namespace.QName; import javax.xml.rpc.ServiceException; import org.apache.axis.client.Call; import org.apache.axis.client.Service; /** * axis1 客户端方式调用webservice */ public class CopyOfAxisClient { private String wdl="http://localhost:8080/GoodsWebService/services/goodsService"; private static Service service; private Call call; public static synchronized Service getService() { if(service==null) service=new Service(); return service; } public Call getCall() { try { call=(Call)getService().createCall(); call.setTargetEndpointAddress(new java.net.URL(this.wdl)); call.setOperationName(new QName("http://www.chinafung.com", "ordersService")); call.setPassword("123"); call.setUsername("123"); return call; } catch (MalformedURLException e) { e.printStackTrace(); } catch (ServiceException e) { e.printStackTrace(); } return null; } public void process() { try { String str="{\"type\":\"success\"}"; getCall().invoke(new Object[]{str}); } catch (RemoteException e) { e.printStackTrace(); } } public static void main(String args[]) { CopyOfAxisClient ac=new CopyOfAxisClient(); ac.process(); } }
相关文章推荐
- mac常用shell命令
- Shell笔记
- shell脚本操作mysql数据库 (部份参考)
- shell命令
- 一个随机选择中午去哪吃饭的脚本,没什么大用。。。熟练下shell的用法而已,欢迎吐槽。。。
- Hadoop fs shell命令
- zeppelin入门使用
- Calabash实战问题总结
- shell批量修改目录下的文件名
- hbase操作(shell 命令,如建表,清空表,增删改查)以及 hbase表存储结构和原理
- hbase基本操作(shell 命令,如建表,清空表,增删改查)
- crontab 调用shell 脚本不运行
- 为ubuntu与windows搭建桥梁samba ssh xshell
- 为Android安装BusyBox —— 完整的bash shell
- Linux shell 之 提取文件名和目录名的一些方法
- svn and maven 自动部署shell脚本
- shell 二维数组
- zabbix中通过shell脚本进行微信监控告警
- 缓冲区溢出分析第05课:编写通用的ShellCode
- 缓冲区溢出分析第04课:ShellCode的编写