This chapter discuses how to:
Set the PS_FILEDIR environment variable for consuming WSDL from files.
Consume services.
Access integration metadata for consumed services.
PeopleSoft Integration Broker can consume external services by way of consuming WSDL documents and generates PeopleSoft integration metadata, so that PeopleSoft applications can invoke outbound synchronous and outbound asynchronous services.
PeopleSoft Integration Broker features a Consume Web Service wizard that steps you through the task of consuming WSDL documents.
This section discusses the Consume Web Service wizard.
The Consume Web Service wizard supports:
WS-interoperability standards for WSDL.
Consumption of WSDL version 1.1 documents.
Consuming WSDL with SOAP, HTTP–GET/POST bindings.
Nested URIs to resolve WSDL fragments.
You can consume WSDL documents for the following service operation types:
Synchronous.
Asynchronous one-way.
Asynchronous request/response.
You can use the Consume Web Service wizard to consume WSDL documents from the following sources:
UDDI repositories.
WSDL URL.
WSIL registries.
File.
Legacy PeopleSoft WSDL documents.
The Consume Web Service wizard creates the following integration metadata in the PeopleSoft system from the consumed WSDL documents:
Note. The internal name is the name that the PeopleSoft system assigns to the metadata and is the definition name that appears in the PeopleSoft system.
Metadata |
Internal Name |
Version |
Comments |
Service definitions |
Same name as the <service> element name in the WSDL document that the PeopleSoft system consumed. |
Version one, denoted as: .V1 |
NA |
Service operation definitions |
Same name as the <service operation> element name in the WSDL document that the PeopleSoft system consumed. |
Version one, denoted as: .V1 |
NA |
Message definitions |
System-generated name in the format M<unique number>. For example: M120508438. |
Version one, denoted as: .V1 |
Includes request messages, response messages. and fault messages, as appropriate. Messages can be unstructured or containers. You can rename the system-generated message names in the wizard using more meaningful names. The consume process also generates schemas for each message. All schemas are unstructured. |
Routing definitions |
System-generated name in the format ~IMPORTED~<unique number>. For example: ~IMPORTED~14857. |
Version one, denoted as: .V1 |
System creates a point-to-point routing. |
If a WSDL operation has multiple faults, PeopleSoft Integration Broker creates a part message for each fault in the WSDL operation. The system then creates a container message and places the fault part messages in the container. The container message is assigned as a fault message to the created service operation.
In a WSDL document, the schema defined in the <types> section may have multiple root elements, corresponding to multiple messages used by one or more operations. When the PeopleSoft system consumes such a WSDL document, the entire message schema contained in the WSDL document gets associated with each of the service operation messages when the PeopleSoft system generates the integration metadata.
Use the element name that appears in the Comments text box of the message definition to construct the XML data for the correct schema fragment in the message.
PeopleSoft delivers a queue, WSDL_QUEUE, and a node, WSDL_NODE, that the Consume Web Service wizard uses as defaults.
You may use these objects or select other existing queues or nodes.
The binding style of consumed WSDL documents appears in the service operation definition for the consumed service. The Default Service Operation Version section of the Service Operations page features a Comments box. The binding style appears in that box.
If a WSDL document has two port types with a single input message in each operation, the Consume Web Service wizard displays step where you can convert a pair of asynchronous one-way operations to a single asynchronous request/response operation. In this step you can special the request and callback service operations and convert the operation.
To consume services you must set properties in the Service Configuration component as follows:
Use the Services Configuration page to define the service namespace, schema namespace, target location, and service system status.
See Configuring PeopleSoft Integration Broker for Handling Services.
If consuming services from a UDDI repository, you must first specify the UDDI server and other relevant information within the PeopleSoft system using the Services Configuration-UDDI Configuration page.
See Specifying UDDI Repositories in PeopleSoft Systems for Providing and Consuming Services.
To consume WSDL from a file, you must set the PS_FILEDIR environment variable on your machine.
See Setting the PS_FILEDIR Environment Variable for Consuming WSDL from Files.
Evaluate your security requirements.
Description |
Description of the WSDL source. |
Endpoint |
According to the W3C, “An association between a binding and a network address, specified by a URI, that may be used to communicate with an instance of a service.” A URI that accepts messages containing document-oriented or procedure-oriented information. |
Internal Message |
Name of the consumed request message, response message or fault message in the PeopleSoft system |
Internal Operation |
Name of the consumed service operation in the PeopleSoft system |
Internal Service |
Name of the consumed service in the PeopleSoft system |
Next |
Click the button to advance to the next step in the wizard. |
Operation Type/Operation |
Type of service operation. |
Previous |
Click the button to go back to the previous step in the wizard. |
Select |
Check the box to select the WSDL service or WSDL operation on which to perform an action. |
View WSDL |
Click the link to view the WSDL document for a service from the WSDL source. |
WSDL Port |
According to the W3C:
|
WSDL Fault Message |
Name of the fault message specified in the WSDL document that the PeopleSoft system is consuming. |
WSDL Request Message |
Name of the request message specified in the WSDL document that the PeopleSoft system is consuming. |
WSDL Response Message |
Name of the response message specified in the WSDL document that the PeopleSoft system is consuming. |
WSDL Service |
The name of the external service in the WSDL document that the PeopleSoft system is consuming. |
WSDL Source |
Indicates the source of the service that the PeopleSoft system is consuming. |
WSDL URL |
Displays the WSDL URL, WSIL URL, File name or UDDI server name of the WSDL source. |
See Also
This section discusses how to:
Set the PS_FILEDIR environment variable in Microsoft Windows environments.
Set the PS_FILEDIR environment variable in UNIX environments.
Before you can use PeopleSoft Integration Broker to consume WSDL from a file, you must set the PS_FILEDIR environment variable on the application server machine. If you do not set this variable and attempt to consume WSDL from a file, you will receive an error that the WSDL cannot be parsed.
Note. You must set this variable only if you will be consuming WSDL from a file.
To set the PS_FILEDIR environment variable in Microsoft Windows environments:
Close any open DOS windows.
On your desktop, right-click the My Computer icon and click Properties.
The System Properties dialog appears.
Click the Advanced tab.
In the Environment Variables section, click the Environment Variables button.
The Environment Variables dialog box appears.
In the User variables for <user name> section, click New.
A New User Variable dialog box displays.
In the Variable Name field enter PS_FILEDIR.
In the Variable Value field, enter c:\temp.
Click the OK button to close the dialog box.
In the System variables section, click New. The New System Variable dialog box appears.
In the Variable Name field enter PS_FILEDIR.
In the Variable Value field, enter c:\temp.
Click the OK button to close the dialog box.
Click the OK button again to exit the System Properties dialog box.
To set the PS_FILEDIR variable in UNIX use one of the following commands as appropriate for your UNIX environment:
export PS_FILEDIR = <PS_HOME>/file
setenv PS_FILEDIR = <PS_HOME>/file
The path you specify in either command is the location from where the system will upload files.
This section discusses how to use the Consume Web Service wizard to:
Select the WSDL source.
Select a service.
Select a service port.
Select service operations.
Convert asynchronous operations.
Rename operation messages.
Select a queue for asynchronous operations.
Select the receiver node.
Confirm and view results.
Use the Select WSDL Source page (IB_WSDL_IMP_LOC) to select the source for consuming a WSDL document. The following example shows the page:
To select the WSDL source:
Access the Select WSDL Source page (PeopleTools, Integration Broker, Web Services, Consume Services).
Select the radio button next to one of the following values and enter the information specified:
UDDI |
To consume a WSDL document from a UDDI repository, select theUDDI radio button. After you select the radio button, select the UDDI repository from the drop-down list box. To use this option, you must first specify the UDDI repository in the PeopleSoft system. |
WSDL URL |
To consume a WSDL document from a WSDL URL, select the WSDL URL radio button. After you select the radio button, enter the URL in the WSDL URL field. |
WSIL URL |
To consume a WSDL document from a WSIL URL, select the WSIL URL radio button. After you select the radio button, enter a URL in the WSIL URL field. |
File |
To consume a WSDL document from a file, perform one of the following actions:
|
Legacy WSDL (Prior to 8.48) |
Select this option to consume a PeopleSoft WSDL document generated from releases prior to PeopleTools 8.48. |
Click the Next button to proceed to the next step in the wizard.
Use the Select Service page (IB_WSDL_IMP_SVC) to select the services to consume. The following example shows the page:
Before selecting services to consume, you can click the View WSDL link to view the WSDL for each service. The WSDL document opens in a browser. Close the browser when you have finished viewing the WSDL document.
WSDL documents that the PeopleSoft system consumes from pre-PeopleTools 8.48 systems display in an edit box.
To select services to consume:
Check the box next to each service to consume.
To clear a selection, check the box again.
Click the Next button to proceed to the next step in the wizard.
If a service you select has more than one port, the Select Service Ports page (IB_WSDL_IMP_SVC2) appears. The following example shows the page:
Multiple port options only appear when you are working with asynchronous request/response operations in a WSDL document or the service has multiple bindings. Typically, when working with this operation type, you select both options.
To select service ports, in the Select column, check the box next to each service.
Use the Select Service Operations page (IB_WSDL_IMP_OPR) to select the operations in the selected service to consume. The following example shows the page:
To select service operations to consume, in the Select column, check the box next to each service operation to consume.
The Convert Asynchronous Operations page (IB_WSDL_IMP_ASYNOP) appears when the system detects that you are consuming two asynchronous one-way operations. The two asynchronous one-way operations appear in the Asynchronous One-Way Operations section on the page as shown in the following example:
This page enables you to convert the two operations into a single asynchronous request/response operation type.
WSDL specification 1.1 has no standards for specifying an asynchronous request/response operation. Hence, the Consume Web Service wizard is not able to automatically detect such operations in a WSDL 1.1 document.
To make this conversion, you must specify the request operation and the callback operation, using the Request Operation and Callback Operation fields on the page. The system populates the possible values to select in each field from the operation selected.
After you make the conversion the new asynchronous request/response operation appears in the Asynchronous Request/Response Operations section of the page. The following example shows the Convert Asynchronous Operations page after making such a conversion:
To convert two one-way asynchronous operations into one asynchronous request/response operation:
From the Request Operation drop-down list box, select the request operation.
From the Callback Operation drop-down list box, select the callback operation.
Click the Convert button.
The single operation appears in the Asynchronous Request/Response Operations grid at the bottom of the page.
Clicking the minus button (-) at the end of a data row in the Asynchronous Request/Response grid undoes the conversion.
The Rename Operation Messages page (IB_WSDL_IMP_MSGS) is shown in the following example:
When the system creates request, response and fault messages from the consumed service, it provides them with system-generated names. The previous example shows system-generated names appearing for all messages.
Use the page to rename the messages to more meaningful names. The following example shows all messages renamed:
To rename operation messages:
Clear the system-generated name from a message name field.
Enter a new name in the field.
Click the Next button to proceed to the next step in the wizard.
The system checks whether the user-entered message name already exists in the database and displays an error if the name exists.
The Select a Queue for Asynchronous Operations page (IB_WSDL_IMP_QUEUE) appears only when you are consuming asynchronous one-way and asynchronous request/response operations. The following example shows the page:
Note. This page appears only when asynchronous operations are being consumed from the WSDL document.
Use the Select a Queue for Asynchronous Operations page to select a service operation queue for an asynchronous service operation.
PeopleSoft delivers a queue, WSDL_QUEUE, to which it assigns asynchronous service operations by default. However, you can select a different queue to use.
To select a queue for asynchronous operations:
Click the Use Existing Queue radio button.
From the Use Existing Queue drop-down list box, select the queue to use for the service operation.
Click the Next button to proceed to the next step in the wizard.
Use the Select the Receiver Node page (IB_WSDL_IMP_NODE) to select the receiving node for the service. The following example shows the page:
PeopleSoft delivers a node, WSDL_NODE, that the system uses as the receiving node by default. However, you can select a different receiving node.
If you use the Default node as the receiver node, the system adds connector property overrides to the default node in the generated service operation routing.
Note. You can apply WS-Security to services you consume using the Consume Web Service wizard. The node you select in this step determines how you implement WS-Security for these services.
See Implementing WS-Security on Services Consumed Using the Consume Web Service Wizard.
To select a receiving node for a service operation:
Click the Use Existing Node radio button.
From the Use Existing Node drop-down list box, select the receiving node to use for the service operation.
Click the Finish button to proceed to the next step in the wizard.
The final page in the Consume Web Service wizard is the Confirm Results page (IB_WSDL_IMP_RSLTS) shown in the following example:
The Confirm Results page provides a WSDL Import Log. The WSDL Import log provides a summary of the WSDL import and lists the integration metadata created. The following example shows the contents of the WSDL Import Log for the example shown in this chapter of consuming a service:
Created/Updated Operation : INITIATE. Created Request Message : LOANSVC_REQ_MSG. Generated schema for Message : LOANSVC_REQ_MSG Created Response Message : LOANSVC_RESP_MSG. Generated schema for Message : LOANSVC_RESP_MSG Created Fault Message : LOANSVC_FAULT_MSG. Failed to generate schema for Message : LOANSVC_FAULT_MSG Created Routing: ~IMPORTED~18003 for Operation: INITIATE Created Operation Version: V1
The Confirm Results page also features the following page elements:
View Consumed Service |
Click the button to open the consumed service in the Services component. |
Consume Another Service |
Click the button to go back to step 1 of the Consume Web Service wizard and consume another service. |
After using the Consume Web Service wizard to consume a service into the PeopleSoft system, use the Service component to access, view and modify the integration metadata created.
The following example shows the service definition for the LOANSERVICE service created with the Consume Web Service wizard.
The example shows that when consuming a service, the PeopleSoft system creates active versioned service operations for all operations of the service. In addition, the system saves the consumed WSDL documents for the service operations and you can view the WSDL documents by clicking the View WSDL link.
In the Existing Operations section, click the name of the service operation to open the Service Operations component. Use the Service Operations component to view and modify service operation data and message data, add handlers, and view and modify routing definitions created by the system.
Use one of the following methods to access the Services page and access and view integration metadata for a consumed service:
On the Consume Web Service Wizard Results page, click the View Consumed Service link.
Select PeopleTools, Integration Broker, Integration Setup, Services and select the name of the consumed service for which to view data.
See Also
Accessing and Viewing Service Definitions