package test;
import org.codehaus.xfire.client.Client;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
public class WebServiceClientTest {
//HelloWorld helloWorld = null;
public static void main(String args[]) throws Exception{
WebServiceClientTest test = new WebServiceClientTest();
test.testClient();
}
public void testClient() throws Exception{
String wsdl = "HelloWorldService.wsdl";
Resource resource = new ClassPathResource(wsdl);
Client client = new Client(resource.getInputStream(),null);
Object[] objArray = new Object[1];
objArray[0] = "菠萝菠萝蜜test";
Object[] results = client.invoke("sayHelloWorld",objArray);
System.out.println("results:"+results[0]);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
XFireDemo.rar (39个子文件)
xfireSpringClient
.project 1KB
.settings
.jsdtscope 406B
org.eclipse.jdt.core.prefs 330B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 322B
WebRoot
WEB-INF
web.xml 381B
lib
classes
test
WebServiceClientTest.class 2KB
WebServiceClientTest2.class 1KB
HelloWorldService.wsdl 2KB
client.xml 585B
clientWebService
HelloWorld.class 183B
index.jsp 834B
META-INF
MANIFEST.MF 39B
.myeclipse
src
test
WebServiceClientTest.java 789B
WebServiceClientTest2.java 700B
HelloWorldService.wsdl 2KB
client.xml 585B
clientWebService
HelloWorld.java 100B
.classpath 3KB
xfireSpringService
.project 1KB
.myumldata 66B
.settings
com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs 120B
.jsdtscope 406B
org.eclipse.jdt.core.prefs 330B
com.genuitec.eclipse.j2eedt.core.prefs 1KB
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 328B
WebRoot
WEB-INF
xfire-servlet.xml 1KB
web.xml 2KB
applicationContext.xml 234B
lib
classes
webservice
HelloWorld.class 177B
HelloWorldImpl.class 701B
index.jsp 834B
META-INF
MANIFEST.MF 39B
.myeclipse
src
webservice
HelloWorldImpl.java 232B
HelloWorld.java 94B
.classpath 3KB
共 39 条
- 1
资源评论
- song_maxiao2013-02-26我怎么调试老是报错啊
- paradise_dm2013-07-23下载了,还行吧,只是看了看代码示例,没用到,谢谢
永恒风
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 高光谱数据集(.mat.csv)-科研学术
- 基于JavaScript和CSS的母婴之家网页设计源码 - myzj
- WX小程序源码无后台京东白条
- WX小程序源码无后台简易计算器
- 基于SpringBoot和Vue的Fastcms前后端分离CMS系统设计源码 - fastcms
- WX小程序源码无后台会议精灵
- 基于Java和Javascript的工程建设综合管理系统材料管理模块设计源码 - material
- c51_2_2.c
- 凡客vancl商城的商品分类-产品搜索-产品详情-评论的抓取php程序压缩包
- ASCII American Standard Code for Information Interchange
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功