尝试创建客户端服务库时,wsimport失败 [英] wsimport fails when trying to create client service library

查看:167
本文介绍了尝试创建客户端服务库时,wsimport失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个客户端库以从Java访问 Mantis .问题是我遇到错误,不知道为什么.

I am trying to create a client library to access Mantis from java. The problem is that I am getting an error and I don't know why.

运行此命令:

wsimport http://www.mantisbt.org/demo/api/soap/mantisconnect.php?wsdl

完全失败.它应该创建某种客户端库来从Java访问服务,但出现此错误:

simply fails. It is supposed to create some kind of client libraries for access to the service from java, but I get this error:

[ERROR] "Use of SOAP Encoding is not supported. 
SOAP extension element on line 1,075 in http://www.mantisbt.org/demo/api
/soap/mantisconnect.php?wsdl has use="encoded" "

我在Internet上查看了此错误的模糊引用,它似乎是指令错误,但事实并非如此:我已尝试通过下载xml版本及其来解决此问题.没用.

I looked on internet and there are vague references to this error, that it seems as an error of an directive, but it is not the case: I've tried to fix this problem with a downloaded version of the xml and it didn't work.

我想我可能需要某种目录才能成功实现这一代,是吗?如果是这样,有人能创建这个吗?我进行了一些搜索,但是我对Web服务的总体了解太有限,无法实现这一目标.

I think I could need some kind of catalogue for achieve this generation succesfully, could it be?? If so, does anyone how to create this?? I made some search but my knowledge of web services in general is too limited to achieve that.

预先感谢

推荐答案

使用Axis 1.4是一种选择吗?如果是的话,我们已经部署了 Maven中心上MantisBT的第1轴SOAP存根.

Is using Axis 1.4 an option? If it is, we have deployed Axis 1 SOAP stubs for MantisBT on Maven central.

或者在Github上有一个源项目,位于 jerr/mantis-ws-client 应该如何使用JAX-RPC构建构件.

Alternatively there is a source project on Github at jerr/mantis-ws-client which should how to build artifacts with JAX-RPC.

这篇关于尝试创建客户端服务库时,wsimport失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆