In this section: How to: |
You can generate iWay Business Services (also known as web services). You can explore the business function repository and generate business services for the functions you want to use with the adapter.
Note: In a J2EE Connector Architecture (JCA) implementation of iWay adapters, web services are not available. When the adapters are deployed to use the iWay Connector for JCA, the Common Client Interface provides integration services using the iWay adapters. For more information, see the iWay Installation and Configuration manual and the iWay Connector for JCA User's Guide.
The following image shows the Create Web Service pane that opens with option buttons, enabling you to choose between creating a new service or using an existing service. The title indicates that the sample procedure applies to the AddressBookMaster MBF.
You can add the business function as a method for a new web service or as a method for an existing one.
If you select the Create a new service option, another pane in the sequence opens as shown in the following image.
If you select the Use an existing service option, a different pane opens as shown in the following image with a drop-down list from which you select the service.
Another pane with additional fields opens.
iWay Explorer switches the view to the iWay Business Services tab, and the new business service appears in the left pane.
After you create a business service, test it to ensure that it functions properly. iWay provides a test tool for testing the business service.
The business service name appears as a location in the right pane.
The test option appears in the right pane.
If you are testing a web service that requires XML input, an input xml field appears.
The following image shows an input xml field, prompting you to enter XML code starting at the cursor location. An Invoke button enables you to test the operation.
iWay Explorer displays the results in the right pane.
The following image shows sample XML returned by iWay Explorer.
The Web Service Description Language (WSDL) file is an XML file that describes the web service documents and provides access to the service.
To generate WSDL from a web service:
The Save As dialog box opens.
Note: The file extension must be .wsdl.
If you test or execute a web service using a third party XML editor, for example XMLSPY, the Username and Password values that you specify in the SOAP header must be valid and are used to connect to J.D. Edwards. The user name and password values that you provided for J.D. Edwards during target creation using iWay Explorer are overwritten for this web service request. The following is a sample SOAP header that is included in the WSDL file for a web service.
<SOAP-ENV:Header> <m:ibsinfo xmlns:m="urn:schemas-iwaysoftware-com:iwse"> <m:service>String</m:service> <m:method>String</m:method> <m:license>String</m:license> <m:disposition>String</m:disposition> <m:Username>String</m:Username> <m:Password>String</m:Password> <m:language>String</m:language> </m:ibsinfo> </SOAP-ENV:Header>
Note: You can remove the following tags from the SOAP header, as they are not required.
<m:disposition>String</m:disposition> <m:language>String</m:language>
iWay Software |