Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:155)
at com.sun.tools.internal.ws.WsGen.main(WsGen.java:42)
Options (12)
| Option | Description | Source |
|---|
-classpath path | The location of the input class files. | man |
-cp path | The location of the input class files. | man |
-d directory | The location for where to place generated output files. | man |
-extension | Allow vendor extensions. | man |
-help | Displays a help message about the wsgen command. | man |
-keep | Keeps the generated files. | man |
-r directory | Uses this option with the -wsdl option to specify where to place generated resource files such as WSDLs. | man |
-s directory | The location for where to place generated source files. | man |
-verbose | Displays compiler messages. | man |
-version | Prints release information. | man |
-servicename name | Used only with the -wsdl option to specify a particular WSDL service (wsdl:service) name to be generated in the WSDL, for example: -servicename "{http://mynamespace/}MyService". | man |
-portname name | Used only with the -wsdl option to specify a particular WSDL port (wsdl:port) name to be generated in the WSDL, for example: -portname "{http://mynamespace/}MyPort". | man |
Examples (3) from the manual page, untested
wsgen -d stock -cp myclasspath stock.StockService
The following example generates the wrapper classes for StockService with @WebService annotations inside stock directory.wsgen -wsdl -d stock -cp myclasspath stock.StockService
The following example generates a SOAP 1.1 WSDL and schema for the stock.StockService class with @WebService annotations.wsgen -wsdl:Xsoap1.2 -d stock -cp myclasspath stock.StockService
The following example generates a SOAP 1.2 WSDL.
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.