Versions Compared

Key

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

Excerpt

The jaxws-tools

command

script can be used to generate portable artifacts used in JAX-WS web services

. For example, portable artifacts such as Service Endpoint Interface (SEI) class, Service class, JAXB generated value types, etc.

This command has the following syntax: Wiki Markup{{*<GERONIMO_HOME>/bin/

No Format

jaxws-tools toolName 

...

[toolOptions

...

] ...

...


Where toolName can be either:

...

The jaxws-tools command can also be started by using the java -jar command: Wiki Markup{{{*}

No Format

java 

...

-Djava.endorsed.dirs=lib/endorsed 

...

-jar bin/jaxws-tools.jar toolName \[toolOptions\] ...

...


wsgen

The jaxws-tools uses the wsgen tool provided by Sun to generate the portable artifacts from Java class. The wsgen tools has the following syntax: Wiki Markup{{*<GERONIMO_HOME>/bin/

No Format

jaxws-tools wsgen 

...

[options

...

] <SEI>

...


  • -classpath <path>
    Specifies where to find input class files.

...

  • -portname <name>
    Specifies the Port name to use in the generated WSD (used in conjunction with the -wsdl option).

Example:

Code Blocknoformat
<GERONIMO_HOME>/bin/jaxws-tools wsgen -d output -keep -wsdl -classpath . foo.BarService

...

The jaxws-tools uses the wsimport tool provided by Sun to generate the portable artifacts from WSDL. The wsimport has the following syntax: Wiki Markup{{*<GERONIMO_HOME>/bin/

No Format

jaxws-tools wsimport 

...

[options

...

] <WSDL_URI>

...


  • -d <directory>
    Specifies where to place generated output files.

...

  • -wsdllocation <location>
    Specified @WebService.wsdlLocation and @WebServiceClient.wsdlLocation value.

Example:

Code Blocknoformat
<GERONIMO_HOME>/bin/jaxws-tools wsimport -d output -keep http://localhost:8080/foo/Bar?wsdl