• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis2 java2wsdl

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic