{
    "content": [
        {
            "type": "text",
            "text": "# wsgen(1) (man)\n\n**Summary:** wsgen - Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation.\n\n**Synopsis:** wsgen [ options ] SEI\noptions\nThe command-line options. See Options.\nSEI    The web service endpoint implementation class (SEI) to be read.\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — | Allow vendor extensions. Use of extensions can result in applications that are not portable or that do not work with oth |\n| — | — | — | Displays a help message about the wsgen command. |\n| — | — | — | Keeps the generated files. -r directory Uses this option with the -wsdl option to specify where to place generated resou |\n| — | — | — | Displays compiler messages. |\n| — | — | — | Prints release information. |\n| — | — | — | An optional command that generates a WSDL file to review before endpoint deployment. The WSDL files contains a machine-r |\n\n## Examples\n\n- `The following example generates the wrapper classes for StockService with @WebService`\n- `annotations inside stock directory.`\n- `The following example generates a SOAP 1.1 WSDL and schema for the stock.StockService class`\n- `with @WebService annotations.`\n- `The following example generates a SOAP 1.2 WSDL.`\n- `Note: You do not have to generate WSDL at development time because the JAXWS run time`\n- `environment generates a WSDL for you when you deploy your service.`\n\n## See Also\n\n- wsimport(1)\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **SYNOPSIS** (8 lines)\n- **DESCRIPTION** (11 lines)\n- **OPTIONS** (9 lines) — 6 subsections\n  - -extension (3 lines)\n  - -help (2 lines)\n  - -keep (9 lines)\n  - -verbose (2 lines)\n  - -version (2 lines)\n  - -wsdl [ :protocol ] (18 lines)\n- **EXAMPLES** (3 lines) — 3 subsections\n  - wsgen -d stock -cp myclasspath stock.StockService (3 lines)\n  - wsgen -wsdl -d stock -cp myclasspath stock.StockService (2 lines)\n  - wsgen -wsdl:Xsoap1.2 -d stock -cp myclasspath stock.StockSer (3 lines)\n- **SEE ALSO** (8 lines)\n\n## Full Content\n\n### NAME\n\nwsgen - Reads a web service endpoint implementation (SEI) class and generates all of the\nrequired artifacts for web service deployment, and invocation.\n\n### SYNOPSIS\n\nwsgen [ options ] SEI\n\n\noptions\nThe command-line options. See Options.\n\nSEI    The web service endpoint implementation class (SEI) to be read.\n\n### DESCRIPTION\n\nThe wsgen command generates JAX-WS portable artifacts used in JAX-WS web services. The tool\nreads a web service endpoint class and generates all the required artifacts for web service\ndeployment and invocation. JAXWS 2.1.1 RI also provides a wsgen Ant task, see the Tools tab\nof the JAX-WS (wsgen) page at http://jax-ws.java.net/nonav/2.1.1/docs/wsgenant.html\n\nTo start the wsgen command, do the following:\n\nexport JAXWSHOME=/pathto/jaxws-ri\n$JAXWSHOME/bin/wsgen.sh -help\n\n### OPTIONS\n\n-classpath path\nThe location of the input class files.\n\n-cp path\nThe location of the input class files.\n\n-d directory\nThe location for where to place generated output files.\n\n#### -extension\n\nAllow vendor extensions. Use of extensions can result in applications that are not\nportable or that do not work with other implementations.\n\n#### -help\n\nDisplays a help message about the wsgen command.\n\n#### -keep\n\nKeeps the generated files.\n\n-r directory\nUses this option with the -wsdl option to specify where to place generated resource\nfiles such as WSDLs.\n\n-s directory\nThe location for where to place generated source files.\n\n#### -verbose\n\nDisplays compiler messages.\n\n#### -version\n\nPrints release information.\n\n#### -wsdl [ :protocol ]\n\nAn optional command that generates a WSDL file to review before endpoint deployment.\nThe WSDL files contains a machine-readable description of how the service can be\ncalled, what parameters it expects, and what data structures it returns.\n\nBy default the wsgen command does not generate a WSDL file. The protocol value is\noptional and is used to specify what protocol should be used for the WSDL binding\n(wsdl:binding). Valid protocols are soap1.1 and Xsoap1.2. The default is soap1.1. The\nXsoap1.2 protocol is not standard and can only be used with the -extension option.\n\n-servicename name\nUsed only with the -wsdl option to specify a particular WSDL service (wsdl:service)\nname to be generated in the WSDL, for example: -servicename\n\"{http://mynamespace/}MyService\".\n\n-portname name\nUsed only with the -wsdl option to specify a particular WSDL port (wsdl:port) name to\nbe generated in the WSDL, for example: -portname \"{http://mynamespace/}MyPort\".\n\n### EXAMPLES\n\nThe following example generates the wrapper classes for StockService with @WebService\nannotations inside stock directory.\n\n#### wsgen -d stock -cp myclasspath stock.StockService\n\nThe following example generates a SOAP 1.1 WSDL and schema for the stock.StockService class\nwith @WebService annotations.\n\n#### wsgen -wsdl -d stock -cp myclasspath stock.StockService\n\nThe following example generates a SOAP 1.2 WSDL.\n\n#### wsgen -wsdl:Xsoap1.2 -d stock -cp myclasspath stock.StockService\n\nNote: You do not have to generate WSDL at development time because the JAXWS run time\nenvironment generates a WSDL for you when you deploy your service.\n\n### SEE ALSO\n\n• wsimport(1)\n\n• The Tools tab of the JAX-WS (wsgen) page http://jax-\nws.java.net/nonav/2.1.1/docs/wsgenant.html\n\n\n\nJDK 8                                     21 November 2013                                  wsgen(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "wsgen",
        "section": "1",
        "mode": "man",
        "summary": "wsgen - Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation.",
        "synopsis": "wsgen [ options ] SEI\noptions\nThe command-line options. See Options.\nSEI    The web service endpoint implementation class (SEI) to be read.",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Allow vendor extensions. Use of extensions can result in applications that are not portable or that do not work with other implementations."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Displays a help message about the wsgen command."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Keeps the generated files. -r directory Uses this option with the -wsdl option to specify where to place generated resource files such as WSDLs. -s directory The location for where to place generated source files."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Displays compiler messages."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Prints release information."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "An optional command that generates a WSDL file to review before endpoint deployment. The WSDL files contains a machine-readable description of how the service can be called, what parameters it expects, and what data structures it returns. By default the wsgen command does not generate a WSDL file. The protocol value is optional and is used to specify what protocol should be used for the WSDL binding (wsdl:binding). Valid protocols are soap1.1 and Xsoap1.2. The default is soap1.1. The Xsoap1.2 protocol is not standard and can only be used with the -extension option. -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\". -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\"."
            }
        ],
        "examples": [
            "The following example generates the wrapper classes for StockService with @WebService",
            "annotations inside stock directory.",
            "The following example generates a SOAP 1.1 WSDL and schema for the stock.StockService class",
            "with @WebService annotations.",
            "The following example generates a SOAP 1.2 WSDL.",
            "Note: You do not have to generate WSDL at development time because the JAXWS run time",
            "environment generates a WSDL for you when you deploy your service."
        ],
        "see_also": [
            {
                "name": "wsimport",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/wsimport/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 9,
                "subsections": [
                    {
                        "name": "-extension",
                        "lines": 3
                    },
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-keep",
                        "lines": 9
                    },
                    {
                        "name": "-verbose",
                        "lines": 2
                    },
                    {
                        "name": "-version",
                        "lines": 2
                    },
                    {
                        "name": "-wsdl [ :protocol ]",
                        "lines": 18
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 3,
                "subsections": [
                    {
                        "name": "wsgen -d stock -cp myclasspath stock.StockService",
                        "lines": 3
                    },
                    {
                        "name": "wsgen -wsdl -d stock -cp myclasspath stock.StockService",
                        "lines": 2
                    },
                    {
                        "name": "wsgen -wsdl:Xsoap1.2 -d stock -cp myclasspath stock.StockService",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 8,
                "subsections": []
            }
        ]
    }
}