Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Export the source files to a jar as shown in the figure.



    Image Added



    Image Removed


  • Open a command prompt and point it to the bin directory of server installation.
    1. Run gsh. This will start the Gshell.
    2. Run the command
      Code Block
      titleWSDL Generation command
      borderStylesolid
      Administrator@T60J9:/> jaxws/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 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, org.apache.geronimo.samples.jws.CalculatorService is the SEI used to generate the WSDL.
    3. Once the above command is run Calculator_schema1.xsd and Calculator.wsdl will be generated at C:/wsdl.
    4. Rename Calculator.wsdl as CalculatorService.wsdl and add both the generated files above to WEB-INF directory of the project.
      Info
      titleWhy are we using gsh if we already have a jaxws-tools.bat

      This is because there are some issues involved with jaxws-tools.bat in AG 2.1 so we are using a gshell to call the web services generator.

      To learn more about GShell refer Gshell section in user guide. To know about more options associated with jaxws. Run jaxws/wsgen -help or jaxws/wsimport -help from gshell.

...