简体   繁体   English

如何在 Eclipse 中创建 Axis2 Web 服务客户端?

[英]How to create an Axis2 Web Service Client in Eclipse?

I'd like to use the "Web Service Client" wizard to create a web service client in Eclipse, but the wizard doesn't allow me to choose Axis2 as the web service runtime;我想使用“Web 服务客户端”向导在 Eclipse 中创建一个 web 服务客户端,但是该向导不允许我选择 Axis2 作为 Z2567A5EC9705EB7AC2C984033E0618 服务运行时; I'm stuck with just plain Axis.我被简单的Axis困住了。

I start off at the following screen (which I got to via File -> New -> Other -> Web Service Client ):我从以下屏幕开始(我通过 File -> New -> Other -> Web Service Client 进入):

Web 服务客户端对话框截图

I click on "Web service runtime: Apache Axis", to get this new "Client Environment Configuration" dialog:我单击“Web 服务运行时:Apache Axis”,得到这个新的“客户端环境配置”对话框:

客户端环境配置对话框截图

I've chosen "Apache Axis2", but the OK button is grayed out.我选择了“Apache Axis2”,但确定按钮是灰色的。 Not matter what I choose in this dialog--even if I choose "Apache Axis"--the OK button is grayed out.不管我在这个对话框中选择什么——即使我选择了“Apache Axis”——确定按钮都是灰色的。 I can't get past this step.我无法通过这一步。 Am I using a bad version of Eclipse (Indigo version 20110615-0604 here), do I need to install/upgrade some plugin (I've installed Axis2 Tools 1.1.200v201103022)?我是否使用了错误版本的 Eclipse(此处为 Indigo 版本 20110615-0604),是否需要安装/升级某些插件(我已安装 Axis2 Tools 1.1.200v201103022)? What's wrong here?这里有什么问题?

This is on a Windows 7 64-bit machine.这是在 Windows 7 64 位机器上。

Untill and unless you won't add any server the OK button will be grayed out.直到并且除非您不添加任何服务器,否则“确定”按钮将显示为灰色。

在此处输入图像描述

在此处输入图像描述

Try these, it may help you out to generate a Axis2 web service client successfully, it worked for me.试试这些,它可以帮助你成功生成一个 Axis2 web 服务客户端,它对我有用。

  • Install Axis2 on your system, dowloading from it's site (Google Axis2 download).在您的系统上安装 Axis2,从它的站点下载(Google Axis2 下载)。
  • You want to add Axis2 runtime in your eclipse editor: Windows>>Preferences>>Web services>>Axis2 Preferences .您想在 eclipse 编辑器中添加 Axis2 运行时: Windows>>Preferences>>Web services>>Axis2 Preferences
  • Assuming you are generating web services client in in a Dynamic Web project , add Axis2 in project facets (right click on the web project >> Properties>>Project facets )假设您在动态 Web 项目中生成 web 服务客户端,在项目方面添加 Axis2(右键单击 web 项目>>属性>>项目方面
  • Also add a server run time in your eclipse editor: Windows>>Preferences>>Server>>Runtime environments还要在 eclipse 编辑器中添加服务器运行时: Windows>>Preferences>>Server>>Runtime environment

These should enable your OK button after selecting Axis2 and one of server runtime environments in the 'Client Environment Configuration' dialog.“客户端环境配置”对话框中选择 Axis2 和服务器运行时环境之一后,这些应该启用您的确定按钮。

Good luck solving your problem.祝你好运解决你的问题。

Why don't use Axis2 Code Generator for Eclipse ?为什么不对Eclipse 使用 Axis2 代码生成器 I think it'll help you to create client code easier.我认为这将帮助您更轻松地创建客户端代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM