起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3080|回复: 2

[处理中3] wex5如何使用axis2调用webservice接口?

[复制链接]

27

主题

55

帖子

155

积分

初级会员

Rank: 2

积分
155
QQ
发表于 2016-8-17 18:51:06 | 显示全部楼层 |阅读模式
使用axis2的rpc调用,在执行

client = new RPCServiceClient()出错。Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer;


调用的代码:

                Object[] ret = null;
                try {
                        System.out.println("here 1.5");
                        serviceClient = new RPCServiceClient();
                        System.out.println("here 2");
                        EndpointReference targetEPR = new EndpointReference(endpoint);
                        System.out.println("here 3");
                        Options options = serviceClient.getOptions();
                        options.setTo(targetEPR);
                        System.out.println("here 4");
                        QName opQName = new QName(namespaceURI, localPart);
                        ret = serviceClient.invokeBlocking(opQName, opArgs, opReturnType);

27

主题

55

帖子

155

积分

初级会员

Rank: 2

积分
155
QQ
 楼主| 发表于 2016-8-18 08:56:02 | 显示全部楼层
....
回复

使用道具 举报

发表于 2016-8-18 14:56:16 | 显示全部楼层
可以上网搜下错误信息!
jar包都加进来了吗?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-9-28 17:28 , Processed in 0.095966 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表