File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 java2wsdl

 
Thomas Greene
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded and extracted axis2-M2-bin to C:\axis2-M2-bin

From Axis2 Quick Start Guide

"Before we build anything using Axis2, we're going to need to take care of a little housekeeping. First off, you'll need to ready your environment for working with Axis2. Fortunately, it involves just a few simple steps:

1. Download and install Java. (Minimum version is JDK1.4)
2. Download Axis2 and extract it to a target directory.
3. Copy the axis2.war file to the webapps directory of your servlet engine.
4. Set the AXIS2_HOME environment variable to point to the target directory in step. Note that all of the scripts and build files Axis2 generates depend on this value, so don't skip this step!

...
%AXIS2_HOME%/bin/java2wsdl -cp . -cn samples.quickstart.service.pojo.StockQuoteService -of StockQuoteService.wsdl"

I have set the Axis2_Home to C:\axis2-M2-bin but java2wsdl does not work. So I navigate to C:\axis2-M2-bin\bin and write java2wsdl but the message I am getting is

'java2wsdl' is not recognized as an internal or external command,
operable program or batch file.

Please tell me how to make it work.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your system might not be set up to recognize .bat files as being executable. Try "%AXIS2_HOME%/bin/java2wsdl.bat" instead of "%AXIS2_HOME%/bin/java2wsdl"
 
Thomas Greene
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Your system might not be set up to recognize .bat files as being executable. Try "%AXIS2_HOME%/bin/java2wsdl.bat" instead of "%AXIS2_HOME%/bin/java2wsdl"


There is no java2wsdl.bat in the bin directory. I downloaded axis2-M2-bin and extracted it. Do i have to do something to create this batch file. There is WSDL2Java.bat, WSDL2Code.bat, start.bat, server.bat in the bin directory but no java2wsdl.bat

I am using J2SE 1.4
 
graham king
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll try and help you out, I think you need the bin dir in the PATH variable.

Here's what I have in my local PATH env variable:


Here's the ClassPath variable:

Not sure if the above is needed as it's been awhile since I've messed around with it.

Here's a link to my trials and tribulations getting some sort of example to work:
Web Services

HTH
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic