Designer 10.7 | webMethods Service Development Help | Building Java Services | Generating Code a Java Service Can Use to Invoke a Specified Service | Generating Java Code to Invoke a Service
 
Generating Java Code to Invoke a Service
*To generate Java code to invoke a service
1. Open the service that you want to invoke by double clicking it in the Package Navigator view.
2. If you want to generate code for a subset of the input/output parameters, on the Input/Output tab select the parameters for which you want to generate code. To select more than one variable, press the CTRL key as you select parameters.
3. Right click in the editor to view the context menu, and select Generate Code.
4. In the Code Generation window, select For calling this service from another service and click Next.
5. For Specification, select the Input and/or Output check boxes to reflect the parameters for which you want to generate code.
6. For Which Fields? select one of the following:
*All Fields if you want to generate code for all of the parameters identified by your Specification selection.
*Selected Fields if you want to generate code for only the parameters you selected before starting the code generation.
7. Click Finish. Designer generates code and places it on the clipboard.
8. Paste the contents of the clipboard into a Java service.
Related Topics
Generating Code a Java Service Can Use to Invoke a Specified Service
Example of Java Code Generated for Invoking a Service
Java Service Editor
About the Service Signature
Generating Java Code from Service Input and Output Parameters