/*** */
package lee;import javax.xml.ws.Service;import org.fkjava.cfx.ws.HelloWorld;
import org.fkjava.cfx.ws.impl.HelloWorldWs;/*** @author Kevin* 客户端调用服务器端暴露出来的服务* 客户端不是直接跟远端服务器打交道,而是通过远端服务器代理,即存根,所以客户端首先要拿到存根*/
public class ClientMain {/*** @param args*/public static void main(String[] args) {// 得到org.fkjava.cfx.ws.impl.HelloWorldWs(这个类实现接口javax.xml.ws.Service,// 此类能够得到远端服务器的代理,即是能得到存根)HelloWorldWs helloWorldWs = new HelloWorldWs();// org.fkjava.cfx.ws.impl.HelloWorldWs.getHelloWorldWsPort()// 能得到存根,存根实现接口org.fkjava.cfx.ws.HelloWorldHelloWorld helloWorld = helloWorldWs.getHelloWorldWsPort();System.out.println(helloWorld.sayHi("Tom"));}}
详细解决方案
3.利用CFX开发Web Service的客户端:主类
热度:14 发布时间:2024-01-17 03:27:21.0
相关解决方案
- Servlet.service() for servlet [jsp] in context with path解决方案
- 学习Web Service,用哪种框架好?AXIS,XFire,CXF?该如何处理
- java service 项目有关问题
- 对象集,数组,web service,该怎么解决
- vc写的 windows service 控制台程序有关问题
- 请教一上有没有C++调用WEB SERVICE 做成DLL的例子
- vs2008中怎么使用vc++构建web service
- 客户端用vc2005的c++来编写,web service 只是连接就报错解决方法
- Reporting Service 报表订阅 到win2003 系统的有关问题
- Reporting Service 分组排列有关问题
- Silverlight学习数据跟RIA服务时,找不到domain service class模板
- asp reporting service 只显示一起,大神进
- !AJAX的autocompleteextender控件实现自动输入一定需要Web Service
- 无法打开登录所请求的数据库 "xxx"登录失败用户 'NT AUTHORITY\NETWORK SERVICE' 登录失败解决方案
- |zyciis| C# 怎么制作 Windows2003 IIS6 和 Meida Service 的自动安装程序
- “LINQ”提供“Service”服务的疑问解决办法
- 怎么在web程序里控制windows service
- 对调用web service 是用是soap好还是HTTP POST好?解决方案
- 关于 Web Service 中的Socket的有关问题 急求高手帮忙
- 关于web service 安全有关问题
- 菜鸟提问windows service
- Secure Store Shared Service 没有响应,因而无法完成此操作。请与管理员联系
- CS(Component Service), BMP(Brew Mobile Platform)那点事解决思路
- CS(Component Service), BMP(Brew Mobile Platform)那点事解决方法
- 请教 WP8 的应用开发(UI,service.控制台)跪求疑问解答
- 请问JMS配置destinations-service.xml队列的有关问题
- Servlet has become temporarily unavailable for service,该怎么解决
- win7刚开启iis功能 可是HTTP Error 503. The service is unavailable.该如何处理
- IIS连接数 Service Unavailable 同一电脑里面
- win7刚刚开启iis功能 可是HTTP Error 503. The service is unavailable