Showing posts with label intergration broker. Show all posts
Showing posts with label intergration broker. Show all posts

Quick Introduction to PeopleSoft Web Services

Introduction 

Web Services are getting popular day by day and as developers we are constantly getting requirements to intergrate our PeopleSoft application with thrid-party system to interchange data between systems. In fact PeopleSoft system delivers web services so that we can leverage those web services, extend or create our own web services esaily within our PeopleSoft system. Some examples of PeopleSoft delivered web services are (in Campus Solutions) , List of Values WS, AAWS (Admission Applications Web Services). In addition to the conventional SOAP based web services PeopleSoft now facilitate to develop RESTful web services using PeopleSoft Intergreation Broker.

Web Service Overview

A web service provides external applications a web-services-based means of accessing PeopleSoft data. Web services are implemented through the PeopleTools Integration Broker (IB) framework. The Integration Gateway web application receives all the web service requests and forwards them to the Integration Engine (application server) for processing.

Following process occurs when you use web service with a client application

1. The client application invokes one of the service operations from the API (application programming interface) published by PeopleSoft application.

For example in in Campus Solutions, Admission Applications Web Service contains the following web service operations
  • SAD_ADMISSIONS – Main Admissions Web Service
    • SAD_CREATEAPPL: Create Application
    • SAD_GETAPPL: Find Application
    • SAD_GETAPPLS: Find Applications
    • SAD_SAVEAPPL: Save Application (for later modification or submission)
    • SAD_SUBMITAPPL: Submit Application
    • SAD_GETATTACH: Get Attachment
The service operation SAD_CREATEAPPL is shown below;

2. PeopleSoft Integration Broker receives the service operation request and validates the WS security credentials.

Web services security (WS-Security) is implemented on the integration gateway for inbound and outbound integrations with third-party systems. WS-Security adds a layer of security to sending and receiving service operations by adding a UsernameToken that identifies the sender and authenticates its identity to the web service provider. On inbound processing, PeopleSoft Integration Broker can process requests received from integration partners that contain WS-Security UsernameToken and passwords in the SOAP (Simple Object Access Protocol ) header of the inbound SOAP request. The user name and password should be encrypted via PKI (public key infrastructure).

Some web service operations require a user ID and password. If a user ID and password are not supplied in the SOAP header, Integration Broker rejects the request.
If the request is received from another PeopleSoft system, the user ID associated with the requesting PeopleSoft node is used when the SOAP header does not specify a user name.
When a request is received, PeopleSoft Integration Broker validates the user ID and password in the SOAP header to determine whether the user has the proper security to invoke the service operation requested.

Generally you implement WS security in PeopleSoft via Permission Lists.
in the above screen shot the permission list HCSPSERVICE gives full access to the individual service operations in the SAD_ADMISSIONS WS.
Depending on the requirements, in the service operation level you can specify authentication mechanism so that users who has proper privileges can access to your service operations.

3. The request is passed to Application Server for processing. The Application Server authenticates the service operation and routes it to the respective handler. The handler executes the PeopleCode and sends the response to Integration Gateway.

Handler is basically a application class which has your PeopleCode logic (or business logic) to execute when the service operation is called. handlers can be define in the Handler section in the service operation as follows;

4. Integration Broker sends the response to the client application.

Client application who invoke WS will get XML response message (SOAP based WS). Sometimes client application may get error response messages so that clients can correct and resubmit the WS.
Client application then process this XML response message and present in their Front-end application in a suitable format.

Message cannot be changed. Message referenced in runtime tables

Message cannot be changed. Message referenced in runtime tables
FYI, instead of writing whole post of how to fix the problem, I will redirect you to the correct location so that you know next time where to go;

http://peoplesoft.wikidot.com/message-referenced-in-runtime-tables
http://www.compshack.com/peoplesoft/integration-broker/message-cannot-be-changed-message-referenced-runtime-tables-doc-id-660

Another common integration broker error message we commonly encounter is;

Integration Broker: Message Already Used in WSDL


How to View Integration Broker Routing Graphics in PeopleSoft

How to View Integration Broker Routing Graphics in PeopleSoft
What is routing definition?
A routing definition defines the sending and receiving nodes for a transaction, specifies any inbound and outbound transformations to invoke and defines external aliases. It also defines overrides that the default integration gateway and the default target connector that the local node use to communicate with an integration endpoint.

Routing Types
Most of the time, we need any-to-local and local-to-local routing types.
any-to-local - in this routing “any” node is always the sending one. “local” node is the one who receive the transaction. (“e.g. your system provides a web service to third party system then you need to generate any-to-local routing)
local - to - local - A local-to-local routing is a routing in which transactions are sent and received within the local database

Graphical View of Routings
Routing Definitions page provides a Graphical View link that enables you to view routing definitions in graphical format. It shows inbound and outbound request and response flows, which is a reasonable representation to quickly understand message flow.

How to View Routings in Graphical Format

  1. Navigate to PeopleTools > Integration Broker > Integration Setup > Routings
  2. Click Graphical View link on the page as per the image.