You are on page 1of 27

Safe Harbor Statement

The following is intended to outline our general product


direction. It is intended for information purposes only, and may
not be incorporated into any contract. It is not a commitment
to deliver any material, code, or functionality, and should not
be relied upon in making purchasing decision. The
development, release, and timing of any features or
functionality described for Oracle’s products remains at the
sole discretion of Oracle.

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2


REST-JSON Web Svc

PeopleSoft – How to retrieve information


from a third party system via REST
Service using JSON Data

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


Agenda

1
Introduction
2 Document Definitions
3 Integration Broker Configuration
4 Page, Component, PeopleCode
5 Usage

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 4


1 Introduction
Why JSON?

JavaScript Object Notation (JSON) is becoming more popular as an alternative to the Extensible Markup
Language (XML) used in exchange data between heterogeneous systems

Here are some of the advantages:

JSON parsing is generally faster than XML parsing.

JSON is a more compact format, meaning it takes far less of the bandwidth than the more verbose XML.

JSON is easier to work with in some languages (such as javascript, python, and php)

Formatted JSON is generally easier to read than formatted XML.

JSON specifies how to represent complex datatypes

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 5


1 Introduction

Image source: http://www.w3schools.com/json/

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 6


1 Introduction
REST Third party services examples

You may find many services available on the internet:

- Get updated real time exchange rates

- Get updated weather forecast

- Validate international address/postal codes/ phone numbers

-VAT codes validations

Also you may interconnect with your business partners to easily exchange data

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 7


1 Introduction
Environment Details

PeopleSoft Financials/SCM 9.2

PeopleTools Release 8.54.05

Integration Gateway configured

Connected to the Internet

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 8


1 Introduction

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


1 Introduction Flowchart

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


1 Introduction Documents Technology
• PeopleSoft documents technology includes a Document Builder, a PeopleCode API,
and several utilities that enable you to create, manage, and test documents.

• You can use documents for integrating with third-party partners, as an alternative to
using standalone rowsets, as a mechanism to distribute complex data, and more.

• When building documents in the PeopleSoft system, you can create the following
document formats:
- XML-formatted documents.
- Relational-formatted documents
- JSON-formatted documents.

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


1 Introduction Integration Technology
• Perform asynchronous and synchronous messaging among internal systems and
third-party systems.

• Expose PeopleSoft business logic as web services to PeopleSoft and third-party


systems.

• Consume and invoke web services from third-party and PeopleSoft systems.

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


1 Introduction
Test Case: Third party Service offers live Exchange Rates

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


2 Document Definitions

Define the
Request Message:

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


2 Document Definitions

Define the
Response Message:

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


3 Integration Broker Configuration

Define Service
Operation:

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


3 Integration Broker Configuration

Routing Detail

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


4 Page, Component, PeopleCode

Add field

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


4 Page, Component, PeopleCode

Add Button

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


4 Page, Component, PeopleCode

Use PeopleCode to
Disable the Update
button

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


4 Page, Component, PeopleCode

Use PeopleCode to
Compose the Request
Message, Send the
request and Parse the
Response

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


5 How it Works

Login into PeopleSoft


Application, and access
the Market Rates page

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


5 How it Works

Select any of the


Currencies

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


5 How it Works

Add a value by pressing


the “+” btton

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


5 How it Works

This will activate the


update button

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


5 How it Works

After pressing the


Update Rate button,
the value is retrieved
from the third party
service

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 27

You might also like