问题
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 ):
I click on "Web service runtime: Apache Axis", to get this new "Client Environment Configuration" dialog:
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.
回答1:
Untill and unless you won't add any server the OK button will be grayed out.
回答2:
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.
回答3:
Why don't use Axis2 Code Generator for Eclipse? I think it'll help you to create client code easier.
来源:https://stackoverflow.com/questions/6782782/how-to-create-an-axis2-web-service-client-in-eclipse