Sun Java System Application Server Platform Edition 9 Reference Manual
  Search only this book

wsgen(1M)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | SEE ALSO

NAME

    wsgen– generates JAX-WS portable artifacts used in JAX-WS web services

SYNOPSIS

    wsgenservice endpoint implementation class [options]

DESCRIPTION

    wgen reads a web service endpoint class and generates all the required artifacts for web service deployment and invocation.

    Invoking the wsgen command without specifying any arguments outputs the usage information.

OPTIONS

    -cp path

    location of the input class files.

    -classpath path

    same as -cp path option.

    -d directory

    where to place the generated output files.

    -extension true|false

    Use vendor-specific extensions (functionality not specified in the JAX-WS specification), which may result in applications that are not portable and/or not interoperable with other web service implementations.

    -help

    prints usage information.

    -keep

    keeps the generated files.

    -portname name

    Specifies the wsdl:port name generated in the WSDL file. Used in conjunction with -wsdl.

    -r directory

    directory where generated resource files such as WSDL files are stored. Used in conjunction with -wsdl.

    -s directory

    directory for the generated source files.

    -servicename name

    Specifies the wsdl:service name generated in the WSDL file. Used in conjunction with -wsdl.

    -verbose

    output messages about what the compiler is doing.

    -version

    prints version information.

    -wsdl [[:protocol]]

    generates a WSDL file. The protocol is optional and is used to specify what protocol should be used in the wsdl:binding. Valid protocols include: soap1.1 and Xsoap1.2. The default is soap1.1. Xsoap1.2 is not standard and may only be used with -extension.

EXAMPLES


    Example 1 Using wsgen to generate JAX-WS artifacts


    wsgen -d outputdir -classpath classpathdir fromjava.server.AddNumbersImpl

    Where the JAX-WS artifacts are generated in the outputdir for running the service as defined in the fromjava.server.AddNumbersImpl service endpoint interface.


SEE ALSO

Java EE 5  Last Revised 20 March 2006

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | SEE ALSO