Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: correct Axis-1.4.jar location and jaxws-tools example

...

  1. Select Window -> Preferences.



  2. Select Web Services -> Axis2 Preferences.
  3. Under Axis2 Runtime tab, browse to the installation root of the Axis2 runtime installation to be used in Eclipse. Select OK.
    Info
    titleUseful Information

    A separate Axis2 runtime is required for use by the Eclipse Axis2 project facet. You can download use the pre-integrated Axis2 1.3 4 binaries (axis2axis-1.3-bin4.zipjar) from the following URL:
    http://ws.apache.org/axis2/download.cgi
    Unzip the downloaded binary and remember where you install it.local Geronimo repository under <Geronimo_home>/repository/axis/axis/1.4

  4. Righ click on the jaxws-calculator project and select Properties, then select Project Facets.
  5. On the next screen check the box for Axis2 Web Services.



  6. Select Finish.
    This completes the configuration of Eclipse for application development.

...

  • Export the source files to a jar as shown in the following three figures.









  • Open a command prompt and point it to the bin directory of server installation.
    1. Run the command:
      Code Block
      titleWSDL Generation command
      borderStylesolid
      Administrator@T60J9:/> jaxws-tools.bat wsgen -classpath C:/WSDL/source.jar -d C:/WSDL/ -wsdl:soap1.1 org.apache.geronimo.samples.jws.CalculatorService
      
      In this command -classpath is used to set the source.jar exported from Eclipse in the classpath, -d defines the location where all the generated artifacts will be placed, -wsdl:soap1.1 suggests a WSDL generation following soap1.1 protocol, and org.apache.geronimo.samples.jws.CalculatorService is the SEI used to generate the WSDL.
    2. Once the above command is run Calculator_schema1.xsd and Calculator.wsdl will be generated at C:/WSDL/.

    3. Rename Calculator.wsdl as CalculatorService.wsdl and add both the generated files to WEB-INF directory of the project.

...