This chapter discusses how to:
Select component interfaces to expose as services.
Select component interface methods to include in service operations.
Generate component interface-based services and service operations.
View component interface-based service definitions.
PeopleSoft Integration Broker enables you to take an existing component interface and create a service that can be used to invoke the component interface. Further, it creates service operations, including request messages and response messages (if appropriate). The system creates an inbound any-to-local routing for the service operation version, as well as handlers for each method you choose to include in the service.
All service operations you generate from component interfaces are synchronous service operations.
This section highlight the naming conventions that the PeopleSoft system uses when it creates services and services-related data based on component interfaces.
When it creates a web service from a component interface, the PeopleSoft system adds a CI_ prefix to the component interface name. So if the component interface name is MYCI, the service name the system creates is CI_MYCI
The following table highlights naming conventions the PeopleSoft systems applies to other services data based on the method with which you are working:
Component Interface Method |
Service Operation Name |
Message Name |
Component Interface Handler |
Request Message Shape |
Response Message Shape |
Create |
<service_name>_C |
Mxxxxxx |
ONREQUESTHDLR |
CI Buffer |
Key |
Find |
<service_name>_F |
Mxxxxxx |
ONREQUESTHDLR |
Get Keys |
CI Buffer |
Get |
<service_name>_G |
Mxxxxxx |
ONREQUESTHDLR |
Find Keys |
Key Collection |
Update |
<service_name>_UP |
Mxxxxxx |
ONREQUESTHDLR |
CI Buffer |
Notification |
Updatedata |
<service_name>_UD |
Mxxxxxx |
ONREQUESTHDLR |
CI Buffer |
Notification |
User-defined |
<service_name>_<method_name> |
Mxxxxxx |
ONREQUESTHDLR |
CI Buffer |
Method Return Type |
The naming convention used for message names, Mxxxxxx, is the letter M followed by a random six-digit number, as denoted by the x's. An example of a message name is M548902.
Note. The maximum number of characters for a service operation name is 30. If using a user-defined method name yields a greater result, the name is used is <service_name>_Mxxx, where xxx is a three-digit random number. An example of such a name is CI_USERCI_M101023.
All user defined methods that will be accessed via the service interface must have a doc string.
The doc string contains:
The keyword GET or CREATE.
An ordered list of parameter names corresponding to the method's parameters.
The following example shows the format of the doc string:
Function simpleFunction(&sParm As string, &dParm As date, &nParm As number, &bParm As boolean) Returns string Doc "GET, StringParm, DateParm, NumParm , BoolParm" Local string &aString = &sParm; &aString = &aString | " -- " | &dParm; &aString = &aString | " -- " | &nParm; &aString = &aString | " -- " | &bParm; Return &aString; End-Function;
The contents of the doc string are used when the function is invoked. If GET is specified, then the GET keys are set, and GET is called on the component interface before the used-defined method is invoked. If CREATE is specified, the CREATE keys will be set and CREATE will be called before the method is invoked.
The list of parameters are used at runtime to match the data in the input message with the method's parameters. This is an ordered list; if the parameter list in the doc string and the method parameters don't match, then the method may not work correctly. The names in the doc parameter list will be the names visible in any WSDL created for the service.
Method parameters and return values must be of a primitive type, such as a string, date or number. Object parameters or return values are not supported.
If a user modifies or deletes a component interface in PeopleSoft Application Designer, when the user saves the changes, PeopleSoft Integration Broker checks if a service exists for the component interface. If a service exists, and the component structure/properties have changed in the component interface, a warning message appears stating that a service exists for the component interface.
If the component interface structure changes, a status of Does not match appears in the CI-Based Services Review Status grid, and the operation appears as active in the Service Operations component.
Prior to creating any component interface-based web services and service operations, you must define the schema namespace, service namespace, and target location in the Service Configuration page
See Configuring PeopleSoft Integration Broker for Handling Services.
This section discusses how to select component interfaces to expose as web services.
The first step to creating component interface-based services is to choose the component interface on which to base a service. To do so, use the CI-Based Services component (IB_CISERVICES) and the Select Component Interface page (IB_CISERVICES). The following graphic shows this page:
When you search for component interfaces to select, the system returns results only for those component interfaces to which you have permissions.
To select a component interface:
Access the Select Component Interfaces page (PeopleTools, Integration Broker, Web Services, CI-Based Services).
Search for a component interface:
Note. You can search only for those component interfaces to which you have permissions.
Click the Search button to search from all component interfaces in the database, or
Select one or more of the following criteria to narrow your search and then click the Search button.
Component Interface Name |
Enter part or all of the name of the component interface to use, or click the Lookup button to search for one. |
Component Name |
Enter part or all of the component name to which a component interface belongs. |
Owner ID |
Owner ID drop-down list box, select the person or group that owns the component interface. |
The Select CIs grid displays are component interfaces that match your search.
Check the Select box next to one or more component interfaces.
Click the Review CI Status button.
The Review CI Status page appears where you can review details about the select component interface and select the methods to include as operations in the service.
This section discusses selecting methods to include web services as service operations.
The following example shows the Review Status page:
The Review Status page shows the following information about the component interface you select to expose as a service:
CI Name |
Name of the component interface. |
Service |
Name of the service created based on the component interface. Note that the service name is the component interface name with CI_ added as a prefix. |
Description |
A description of the component interface. This information is taken from the component interface record and displays if it exists. |
Status (Service) |
Displays the status of the service. The valid values are:
|
Select |
Check the box to include a method as an operation for the service. If the box is disabled, the method has already been included in the operation and the Service Operation field displays the name of the operation created. You can check one or more methods at a time. |
Action |
Displays the action available to perform on the method. The valid values are:
|
Method |
Name of the component interface method. The system displays user-defined and standard methods. All user-defined methods appear in lowercase. You can create service operations based on the following standard component interface methods:
Update and Updatedata appear if both Get and Save have been enabled in the component interface. Note. All user-defined methods are lowercase. If you have a user-defined method called update, it is a different method than the Update method used here. |
Service Operation |
Name of the service operation, if one exists for a method. The name the system give the service operation depends on the service name as well as the component interface method. |
Status (Service Operation) |
The status corresponds to the value in the Action field. The valid values are:
|
Display Selected Actions |
Click the button to display a summary of the actions requested and then generate services and service operations. |
This section discusses how to:
Generate services and service operations from component interface methods.
Add message names and descriptions to generated service operations.
The following example shows the Confirm Actions page (IB_CISERVICES_SEC):
You can work with the following page elements:
Service Alias |
(Optional.) Enter an alias name for the service. The name you enter can be lower or mixed-case. If specified, this is the service name that appears in any WSDL documents you generate. |
Select |
(Optional.) Clear the box to omit creating a service operation for a method. |
Alias (Service Operation) |
(Optional.) Enter an alias name for the service operation. The name you enter can be lower or mixed-case. If specified, this is the service operation name that appears in any WSDL documents you generate. |
Version |
(Optional.) Service operations created default version V1. You may enter a different value to use as the version when the service operation is created. This field is a text field, so you may enter numeric or text values. |
Message Names and Descriptions |
(Optional.) Click the link to specify names and descriptions for messages in the service operation. The message names and descriptions will appear in the generated XML message schema. If you do not enter message names or descriptions, PeopleSoft Integration Broker assigns system-generated names to the messages. The following example shows a sample system-generated message name: M702221.V1 |
Perform Selected Action |
Click the button to generate services and service operations for the component interface and selected methods. After the service and service operations are created, the Review Status page displays and you can review the actions performed as well as access the service definition created. |
Return to Select CIs |
Click the link to return to the previous page, the Review Status page. |
The Confirm Actions page features a Message Names and Descriptions link for each service operation. Click the link to open the Message Names and Descriptions page (IBCISERVICES2_SEC). On the page you can enter names for each message in the service operations. You can also enter a description for each message name. The message names and description will appear in the generated XML message schema for the service operation.
The following example shows the Message Names and Descriptions page:
In the message name fields, enter a message name. You do not need to append the message name with a version number. The system automatically creates versions the message as version one, and appends the message name with .V1.
When you have completed entering message names and descriptions, click the OK button to return to the Confirm Actions page.
After you generate services and service operations, the Review Status page (IB_SERVICES2) appears as shown in the following example:
Use this page to review the actions performed. For example, the previous graphic shows the names of the two service operations created as well as the service operation status of Operation created.
From this page you can continue to create additional service operations using the remaining available methods for the component interface.
Or, you can click the Return to Select CI link to return to the Select Component Interface page to select new component interfaces for which to generate services and service operations.
You can also click the View Service Definition link to view the service definition for the service created.
When you click the View Service Definition link the service you created, CI_CURRENCY_CD_CI appears in the Services page as shown in the following graphic:
From this page you can perform actions as you would on any other service, including:
Click the Provide Web Service link to generate WSDL for the service.
Use the Service Operations box to add additional service operations to the service.
Click either of the operations that display in the Existing Operations box to generate routing definitions, view the response, request or fault messages, view handler details, and more.
And so on.
See Also