...
Info | ||
---|---|---|
| ||
Entering a value in this field is mandatory. |
6. Click "Generate."
You can now call this stub object from your client Java code. Note that when you instantiate a stub object generated from WSDL2java without passing any parameters, the underling Axis2 runtime creates a configuration context for the new stub object. Therefore, when initializing multiple stub objects, many configuration context objects are created, which slows performance of the client. To avoid performance problems, create a Configuration context at the beginning of your client code and pass that same context to all stub objects. For example:
ConfigurationContext configurationContext = ConfigurationContextFactory;
createConfigurationContextFromFileSystem("repository", "axis2.xml");
CustomerOrderServiceStub stub = new CustomerOrderServiceStub(configurationContext, "http://localhost:8088/services/CustomerOrderService");
Excerpt | ||
---|---|---|
| ||
Description of the "WSDL2Java" tool in WSO2 ESB. |