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

  1. Click the process package, for example, "HelloWorld", and then click the Create a new Business Works Process icon.

  2. Select a process on which you want to add a service, and click the Create Service icon.

    The New Service dialog opens.
  3. In the New Interface section specify the Interface Name as HelloWorld and Operation Name as sayHello. Click Finish.

  4. To implement the operation, drag and drop 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 activity and a Reply. The option Implement Constructor Operation implements a constructor. A constructor provides for multiple operations. Use this option if the PortType has multiple operations which must be implemented by this process.
  5. Click the Reply activity (sayHelloOut) and under the Properties view, click the Input tab. Configure Reply message.

  6. Right-click the green chevron and select Components > ComponentsProcess > Create SOAP Binding. The Binding Configuration dialog displays.

  7. To configure transport on the SOAPServiceBinding, select HTTP from the Transport Type drop-down list in Transport Configuration.

  8. 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.
  9. To generate the concrete WSDL of the SOAP service created in the above steps, click Generate Concrete WSDL link.
  10. Click Workspace. In the Folder Selection window and select the Service Descriptor folder of the current module and click OK.
    The Generate Concrete WSDL window will now show 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 File System button and click Finish.
  11. To avoid namespace resolution error, click Next and clear the Embed Abstract WSDL and Embed Schema check boxes 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.