Class WSConsume

java.lang.Object
org.jboss.ws.tools.cmd.WSConsume

public class WSConsume extends Object
WSConsumeTask is a cmd line tool that generates portable JAX-WS artifacts from a WSDL file.
  usage: WSConsumeTask [options] <wsdl-url>
  options:
  
-h, --help Show this help message
-b, --binding=<file> One or more JAX-WS or JAXB binding files
-k, --keep Keep/Generate Java source
-c, --catalog=<file> Oasis XML Catalog file for entity resolution
-p, --package=<name> The target package for generated source
-j, --clientjar=<name> Create a jar file of the generated artifacts for calling the webservice
-w, --wsdlLocation=<loc> Value to use for @@WebService.wsdlLocation
-o, --output=<directory> The directory to put generated artifacts
-s, --source=<directory> The directory to put Java source
-n, --nocompile Do not compile generated sources
-q, --quiet Be somewhat more quiet
-v, --verbose Show full exception stack traces
-l, --load-consumer Load the consumer and exit (debug utility)
-e, --extension Enable SOAP 1.2 binding extension
-a, --additionalHeaders Enable processing of implicit SOAP headers
-d, --encoding=<charset> The charset encoding to use for generated sources
Author:
Jason T. Greene
  • Field Details

    • PROGRAM_NAME

      public static final String PROGRAM_NAME
  • Method Details

    • setExitHandlerFactory

      public static void setExitHandlerFactory(ExitHandlerFactory factory)
      Tests call this BEFORE calling main() to inject TestExitHandlerFactory. Thread-safe: only affects the current thread.
      Parameters:
      factory - The concrete ExitHandlerFactory instance to use
    • resetExitHandlerFactory

      public static void resetExitHandlerFactory()
      Reset to default factory. Tests should call this in finally blocks to clean up.
    • main

      public static void main(String[] args)