How to: |
A process flow can be exposed as a Web service through the iWay Adapter in iWay Explorer. The prerequisites to exposing a process flow as a Web service are:
You can then use the iWay adapter, accessed through iWay Explorer, to expose the process flow as a Web service, as explained in this section.
To expose a published process flow as a Web service:
For instructions to create a new repository, see How to Configure a Repository.
This is a connection to the Service Manager where the process flow is published.
The published system process flow appears under the target node.
As an example, the following image shows a target named Target7 and two process flows named Q1_store33 and PFIVPWS.
The IBS Name and Description dialog box opens. The following image shows this dialog box with an example of creating a new service.
The Define License and Method dialog box opens. The following image shows this dialog box with an example entry for the license and method.
The Web Services tab in the Navigator pane opens showing the new Web service under the Services node, the workspace pane lists the new Web service methods, and the Message Log displays the following message:
The iWay Business Service 'xxxxx' has successfully been created.
Where xxxxx is the name of the new Web service.
The following image shows the Designer window with an example of a newly exposed Web service named SupplyFlowService.
At this point, you have exposed the process flow as an iWay Web service. You can test the functionality of the Web service by using the built-in HTTP based Test client. To test the Web service, continue with the following steps.
The workspace pane displays the Web service methods.
The following image is an example of this pane with a Web service method named PFIVPWS.
The method Test pane opens, as shown in the following image. This pane provides a text field in which to paste the XML input document or you can browse to an XML document and upload it to the test field.
Note: If you apply Windows XP SP2, you might need to reset the default security level of Internet Explorer for ‘Upload’ to function properly. To do this, in Internet Explorer select Tools, Internet Options, Security, Local Intranet, Default Level, and use the slider to select Low, then click Apply.
The test results appear in the Test pane, as shown in the following image.
iWay Software |