Once you have set up your command line, you can use the following syntax and arguments to run the tool:
To create a skeleton Web service implementation:
Note: The final argument must be <WSDL URI>.
To create a Web-services enabled archive:
Note: The -input option has been removed. All imported XSD and WSDL documents must be located in the same directory as the WSDL file specified by <WSDL URI>.
Mandatory arguments:
Optional arguments:
Note: When using this argument, all namespace references must have the colon ':' escaped using a backslash as follows: http\://my.namespace.WSDL2WebService ignores any namespace references that do not contain an escaped colon.
Mandatory arguments:
Optional arguments:
Note:The -deploy option is not supported.
<import location="a.xsd" namespace="http://namespaceA"/> <types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://namespaceA" xmlns:xsd="http://www.w3.org/2001/XMLSchema">replace it with a schema import inside the schema element:
<types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://namespaceA" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <import schemaLocation="a.xsd" namespace="http://namespaceA"/>