Show Table of Contents
3.7. Adding a Service to a WSDL File
The
HelloWorldArtifacts.wsdl file is added to a service when you create a BPEL process file. A default service is already defined in this WSDL file. However, if you want to add your own service, follow the steps below:
- Open the file
HelloWorldArtifacts.wsdlin the HelloWorld project. - Right-click the WSDL editor and select the Add Service option. A new service should appear in the editor. Name it HelloWorldProcessService. It has the Port named NewPort. Select it, right-click on it and rename it to HelloWorldProcessPort in the Properties view.

Figure 3.8. Diagram 1
- Right-click in the whitespace of the WSDL editor and select the Add Binding option. A new Binding component will appear in the editor. Name it HelloWorldSOAPBinding. Select it, and in the General tab of the Properties view and select HelloWorld as a port type in the PortType field.
- Click on the button to open the Binding Wizard.
- In the wizard, select SOAP as the Protocol. Click the button to close the wizard.

Figure 3.9. Diagram 2
- Click the HelloWorldProcessPort property in the General section of the Properties view.
- Select HelloWorldSOAPBinding in the Binding combobox.
- Enter http://localhost:8080/bpel/processes/HelloWorld?wsdl in the Address field.

Figure 3.10. Diagram 3

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.