Developing a SOAP Service
A SOAP service makes a process service available as a SOAP web service. You can achieve this by applying a SOAP service binding on the target process service.
Implementing a SOAP Service Provider
- Procedure
-
Click the process package, for example, "HelloWorld", and then click the Create a new Business Works Process
icon.
- Select a process on which you want to add a service, and click the
Create Service icon.The New Service dialog is displayed.
-
In the New Interface section, specify the Interface Name as HelloWorld and Operation Name as sayHello. Click Finish.
- To implement the operation, drag the
sayhello
operation, and select Implement Operation.Choose Implement Constructor Operation option, if there are multiple operations in a port type.
Tip: The option Implement Operation implements a single operation and creates a single Receive and Reply activity. The option Implement Constructor Operation implements a constructor. A constructor provides for multiple operations. Use this option if the PortType has multiple operations that must be implemented by this process. - Click the
Reply activity (
sayHelloOut
) and under the Properties view, click the Input tab. Configure Reply message. - Right-click the green chevron and select
Binding Configuration dialog is displayed.
- To configure transport on the SOAPServiceBinding, select
HTTP from the
Transport Type dropdown list in
Transport Configuration.
- Click
the Create Shared Resource button and click
Finish on the
Create HttpConnResource Resource Template
.The default port used by this shared resource is 8080. The service binding is now created. - To generate the concrete WSDL of the SOAP service created in the above steps, click the Generate Concrete WSDL link.
- Click
Workspace. In the Folder Selection window, select the
Service Descriptor folder of the current module and click
OK.
The Generate Concrete WSDL screen shows the specified location and the name of the WSDL.Note: To create the Concrete WSDL in a desired location other than the workspace location, specify it by using a File System button and click Finish.
-
To avoid namespace resolution error, click Next and clear the Embed Abstract WSDL and Embed Schema checkboxes and click Finish.
Note: Click the Advanced tab to override the Namespace URI, Service Name, Host, Port, and Protocol fields.The concrete WSDL is generated at the specified location.