07 November 2008 - 2.5-beta2 |
Consuming an existing Web Service boils down to creating client side artifacts and then creating instances for invoking the remote service, the process consists of 2 steps:
Add the WSDL to the JBossWS Web Services node by selecting the "JBossWS - Add WSDL from URL" option:
This will prompt for a WSDL and import it accordingly into the project
If the WSDL resides locally in the file system it can be added using the corresponding "JBossWS - Add WSDL from File" option. If it is part of the current project, it can be added by selecting the "JBossWS - Add to JBossWS Project" option from the WSDL's right-button menu:
Once the WSDL has been imported, select the "Generate - JBossWS artifacts" option from its right-button menu:
This will open a dialog with the following options:
| ![]() |
Once all options have been set as required, select the "Generate" button at the bottom of the dialog which will invoke the WSTools utility as configured. The output will be shown in the console view:
The generated files will be placed in the folder specified under project properties. Currently, the JBossWS plugin lacks support for automatically adding service-refs to components that are to consume the service, this must be performed manually as described in the JBossWS User Guide | ![]() |