Jay Sullivan
Jay Sullivan

Reputation: 18239

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; I'm stuck with just plain Axis.

I start off at the following screen (which I got to via File -> New -> Other -> Web Service Client ):

Web Service Client dialog screenshot

I click on "Web service runtime: Apache Axis", to get this new "Client Environment Configuration" dialog:

Client Environment Configuration dialog screenshot

I've chosen "Apache Axis2", but the OK button is grayed out. Not matter what I choose in this dialog--even if I choose "Apache Axis"--the OK button is grayed out. 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)? What's wrong here?

This is on a Windows 7 64-bit machine.

Upvotes: 8

Views: 38567

Answers (3)

BOSS
BOSS

Reputation: 2951

Untill and unless you won't add any server the OK button will be grayed out.

enter image description here

enter image description here

Upvotes: 7

anhtuannd
anhtuannd

Reputation: 963

Why don't use Axis2 Code Generator for Eclipse? I think it'll help you to create client code easier.

Upvotes: 3

Chakri
Chakri

Reputation: 1023

Try these, it may help you out to generate a Axis2 web service client successfully, it worked for me.

  • Install Axis2 on your system, dowloading from it's site (Google Axis2 download).
  • You want to add Axis2 runtime in your eclipse editor : 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)
  • Also add a server run time in your eclipse editor: Windows>>Preferences>>Server>>Runtime environments

These should enable your OK button after selecting Axis2 and one of server runtime environments in the 'Client Environment Configuration' dialog.

Good luck solving your problem.

Upvotes: 6

Related Questions