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 uses 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.
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.
To consume WSDL from a file, you must set the PS_FILEDIR environment variable on your machine.
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 your 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:\<path>.
The path you specify is the location from where the system will upload files.
Click the OK button to exit the Environment Variables 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.
Page Name |
Object Name |
Navigation |
Usage |
Select WSDL Source page |
IB_WSDL_IMP_LOC |
Select PeopleTools, Integration Broker, Web Services, Consume Web Service. |
Select the source from which to consume a WSDL document. |
Select Service page |
IB_WSDL_IMP_SVC |
From the Select WSDL Source page, click the Next button. |
Select the service to consume. |
Select Service Ports page |
IB_WSDL_IMP_SVC2 |
From the Select Service page, click the Next button. |
This page appears if a service you select has more than one port. Use the page to select the service ports to use. |
Select Service Operations page |
IB_WSDL_IMP_OPR |
From the Select Service page or from the Select Service Ports page, click the Next button. |
Select service operations from the selected services to consume into the PeopleSoft system |
Convert Asynchronous Operations page |
IB_WSDL_IMP_ASYNOP |
From the Select Service Operations page, click the Next button. |
The page appears when the system detects that you are consuming two asynchronous one-way operations. Use the page to convert the two operations into a single asynchronous request/response operation type. |
Rename Operation Messages page |
IB_WSDL_IMP_MSGS |
From the Select Service Operations page, click the Next button. |
Rename messages generated by the system using more meaningful names. |
Select a Queue for Asynchronous Operations page |
IB_WSDL_IMP_QUEUE |
From the Rename Operation Messages page, click the Next button. |
This page appears only when working with asynchronous operation types. Use the page to specify PeopleSoft queues for asynchronous service operations. |
Select the Receiver Node page |
IB_WSDL_IMP_NODE |
From the Select a Queue for Asynchronous Operations page, click the Next button. |
Use the page to select the PeopleSoft node that will receive the service operation. |
Confirm Results |
IB_WSDL_IMP_RSLTS |
From the Select the Receiver Node page, click the Finish button. |
Use this page to view the results of consuming the service. |
Use the Consume Web Service-Select WSDL Source page to select the source for consuming a WSDL document. The following example shows the page:
To select the WSDL source:
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 dropdown 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 Consume Web Service-Select Service page 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 Consume Web Service–Select Service Ports page 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 Consume Web Service-Select Service Operations page 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 Consume Web Service-Convert Asynchronous Operations page is shown in the following example:
The page appears when the system detects that you are consuming at least two asynchronous one-way operations. The two asynchronous one-way operations appear in the Asynchronous One-Way Operations section on the page.
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 Consume Web Service-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 dropdown list box, select the request operation.
From the Callback Operation dropdown 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 Consume Web Service-Rename Operation Messages page 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 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 Consume Web Service-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 dropdown 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 Consume Web Service-Select the Receiver Node page 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 the 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
To select a receiving node for a service operation:
Click the Use Existing Node radio button.
From the Use Existing Node dropdown 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 Consume Web Service-Confirm Results page shown in the following example:
The Consume Web Service-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 Generated schema for Message : LOANSVC_FAULT_MSG Created Routing: ~IMPORTED~14857 for Operation: INITIATE Created Operation Version: V1
The Consume Web Service-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. |
This section discusses how to access integration metadata for consumed services.
Page Name |
Object Name |
Navigation |
Usage |
Services page |
IB_SERVICEDEFN |
Use one of the following methods to access the Services page
|
Use the page to view service details, access service operations associated with the service and view WSDL documents generated for the 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.
See Also
Accessing and Viewing Service Definitions