SlideShare a Scribd company logo
How to Convert Custom PLSQL to Webservices
Create a Custom BusinessEntity:
ApplicationDeveloper->Application->Lookups->ApplicationObjectLibrary
Code : DSI_BUS_ENTITY
Create your Custompackage withAnnotations only inthe spec :
CREATE OR REPLACE PACKAGE DSI_GET_ITEM_ID AS
/* $Header: $ */
/*#
* This custom PL/SQL package can be used to retrieve item id
* @rep:scope public
* @rep:product INV
* @rep:lifecycle active
* @rep:compatibility S
* @rep:displayname Get Item Number
* @rep:category BUSINESS_ENTITY DSI_BUS_ENTITY
*/
/*#
* Use this method to get item identifier
* @param p_item_number item number
* @param p_org_id organization identifier
* @param x_item_id item identifier
* @param x_status status
* @param x_err_msg error message
* @rep:scope public
* @rep:lifecycle active
* @rep:displayname Get Item Identifier
*/
procedure get_item_id
(p_item_number in VARCHAR2,
p_org_id in NUMBER,
x_item_id out NUMBER,
x_status out VARCHAR2,
x_err_msg out VARCHAR2
);
END DSI_GET_ITEM_ID;
Create your Custompackage body :
CREATE OR REPLACE PACKAGE BODY DSI_GET_ITEM_ID AS
procedure get_item_id
(p_item_number in VARCHAR2,
p_org_id in NUMBER,
x_item_id out NUMBER,
x_status out VARCHAR2,
x_err_msg out VARCHAR2
)
IS
v_item_id number;
end_chk_excep exception;
BEGIN
begin
select inventory_item_id
into v_item_id
from mtl_system_items_b
where 1=1
and segment1=p_item_number
and organization_id=p_org_id;
exception when no_data_found then
x_status:='E';
x_err_msg:='Item Number Entered does not exist';
raise end_chk_excep;
end;
x_item_id := v_item_id;
x_status:='S';
x_err_msg:='DSI Custom Rest Service Successful';
exception
when end_chk_excep then
x_status := 'E';
x_err_msg := x_err_msg || ' - ' || sqlerrm;
when others then
x_status:='E';
x_err_msg:='Item Number Entered is not valid';
END GET_ITEM_ID;
END DSI_GET_ITEM_ID;
Connectto applicationserverwith FTP and uploadpls file intoINV_TOP :
Give permissions:
Connectto applicationserverusing putty tool and run the followingunixcommand. This command
runs a perl script which is goingto parse your plsfile according to the annotations and generatesan
ildtfile.
$IAS_ORACLE_HOME/perl/bin/perl $FND_TOP/bin/irep_parser.pl -g-v-username=sysadmin
INV:patch/115/sql:DSI_GET_ITEM_ID:12.0=patch/115/sql/DSI_GET_ITEM_ID.pls
If there are no errors, ildt file wouldbe generated:
Give permissionssothe file can be accessed :
chmod777 DSI_GET_ITEM_ID.ildt
To upload ILDT file intoOracle EBS, run the followingcommand :
$FND_TOP/bin/FNDLOADapps/apps0Y UPLOAD $FND_TOP/patch/115/import/wfirep.lct
DSI_GET_ITEM_ID.ildt
Log on to the applications withSYSADMIN username and click on the IntegrationRepository:
Navigate to Oracle SupplyChain ManagementFamily->Oracle InventoryManagement:
Clickon DSI Custom Business Entity
Clickon the ‘Generate WSDL’button and once the WSDL isgeneratedyou can click on the ‘Create
Grant’ button and give Grants :
You can ‘Deploy’the webservice by clicking the ‘Deploy’button, you can always redeployor un
deploythe service:
Before Invokingthe Webservice :
cd $INST_TOP/admin/scripts
adoafmctl.shstop
adoacorectl.shstop
adoafmctl.shstart
adoacorectl.shstart
Clear cache
Use responsibilityFunctional Administratorandgoto Core Services ->CachingFramework ->Global
Configuration ->Clearall cache.
Now to test the web service , you can use tools like SOAPUI :
The url to be passedinto the SOAPUI can be seenin the WSDL File generated : (lookfor soap address
location)
Pass in the parameters correctly :
ResponsibilityKey:INVENTORY_VISION_OPERATIONS
RespApplication : INV
SecurityGroup : STANDARD
NLSLanguage : AMERICAN
Org_Id : 204
For Authentication,enterthe username/passwordin the request propertiesand click on the ‘Green
arrow-Submit Requestto specifiedUrl) buttonon the SOAP UI
USING REST WEBSERVICES :
Followsame stepsabove till you log on to the Applications.
Log on to the applications withSYSADMIN username and click on the IntegrationRepository:
Navigate to Oracle SupplyChain ManagementFamily->Oracle InventoryManagement:
Clickon DSI Custom Business
Clickon REST WebService Tab , selectthe methodyou want to POST and click on ‘DEPLOY’ :
Clickon GrantsTab:
SelectGroupof Usersand select‘InventoryVisionOperations(USA)’and thenclick on the WADL link:
Copy the link for XSD File and paste in the browser :
Now to test it download‘POST MAN’ a google chrome extensionand the URL wouldbe combination
of linksfrom WADL file above .
URL – RESOURCES BASE + RESOURCE PATH
UnderAuthorization Tab , selectBasic Auth and enterthe username/password:
UnderHeaders, you shouldhave the following : Note that Authorization : Basic ‘Uniquekey’will be
generatedby the Tool
Content-Type:application/xml
Authorization:BasicTUZHOndlbGNvbWU=
Accept:application/xml
Content-Language:en-US
In the Body Section:
Prepare the PAYLOAD:
<?xml version="1.0"encoding="UTF-8"?>
<ns:GET_Input xmlns:ns="http://xmlns.oracle.com/apps/inv/rest/ItemInfo/get_item_id/"
xmlns:ns1="http://xmlns.oracle.com/apps/inv/rest/ItemInfo/header">
<ns1:RESTHeader>
<ns1:Responsibility>INVENTORY_VISION_OPERATIONS</ns1:Responsibility>
<ns1:RespApplication>INV</ns1:RespApplication>
<ns1:SecurityGroup>STANDARD</ns1:SecurityGroup>
<ns1:NLSLanguage>AMERICAN</ns1:NLSLanguage>
<ns1:Org_Id>204</ns1:Org_Id>
</ns1:RESTHeader>
<ns:InputParameters>
<ns:P_ITEM_NUMBER>AS54888</ns:P_ITEM_NUMBER>
<ns:P_ORG_ID>207</ns:P_ORG_ID>
</ns:InputParameters>
+
</ns:GET_Input>
The REST Headershouldbe the combinationof
ResponsibilityKey+ApplicationShortname+SecurityGroup+Language+Orgid
The path highlightedinREDcan be foundfromthe XSD File astargetNamespace +import
namespace(endingwithheader):
The inputparametersare alsofoundin the xsdfile :
Clickon ‘Send’to check out the output :

More Related Content

What's hot

Oracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationOracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalization
Ahmed Elshayeb
 
Inventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled itemsInventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled items
Avishek Roychoudhuri
 
How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory
Bizinsight Consulting Inc
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
Ahmed Elshayeb
 
Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...
Ahmed Elshayeb
 
Oracle R12 Legal Entity
Oracle R12 Legal EntityOracle R12 Legal Entity
Oracle R12 Legal Entity
Sanjay Challagundla
 
Oracle Sourcing Setup
Oracle Sourcing SetupOracle Sourcing Setup
Oracle Sourcing SetupAjay Singh
 
Oracle Web Adi For upload item master
Oracle Web Adi For upload item masterOracle Web Adi For upload item master
Oracle Web Adi For upload item master
Ahmed Elshayeb
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management,
Boopathy CS
 
Oracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & DescriptionsOracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & Descriptions
Boopathy CS
 
R12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfersR12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfers
shravan kumar chelika
 
Oracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup Steps
Ahmed Elshayeb
 
AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy
Mohammad Younus
 
105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps
Shivakumar Karajagi
 
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Boopathy CS
 
Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)
FAHAD ULLAH
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Basics of Oracle Order Management
Basics of Oracle Order ManagementBasics of Oracle Order Management
Basics of Oracle Order Management
shravan kumar chelika
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12
parinay jain
 
Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12
G Madhusudhan
 

What's hot (20)

Oracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationOracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalization
 
Inventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled itemsInventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled items
 
How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
 
Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...
 
Oracle R12 Legal Entity
Oracle R12 Legal EntityOracle R12 Legal Entity
Oracle R12 Legal Entity
 
Oracle Sourcing Setup
Oracle Sourcing SetupOracle Sourcing Setup
Oracle Sourcing Setup
 
Oracle Web Adi For upload item master
Oracle Web Adi For upload item masterOracle Web Adi For upload item master
Oracle Web Adi For upload item master
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management,
 
Oracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & DescriptionsOracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & Descriptions
 
R12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfersR12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfers
 
Oracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup Steps
 
AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy
 
105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps
 
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
 
Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
Basics of Oracle Order Management
Basics of Oracle Order ManagementBasics of Oracle Order Management
Basics of Oracle Order Management
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12
 
Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12
 

Viewers also liked

Create rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloperCreate rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloper
shravan kumar chelika
 
Attach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurementAttach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurement
shravan kumar chelika
 
How to create PO with ASN
How to create PO with ASNHow to create PO with ASN
How to create PO with ASN
shravan kumar chelika
 
Build Restful Service using ADFBC
Build Restful Service using ADFBCBuild Restful Service using ADFBC
Build Restful Service using ADFBC
shravan kumar chelika
 
Get On Hand Quantities Through API
Get On Hand Quantities Through APIGet On Hand Quantities Through API
Get On Hand Quantities Through API
shravan kumar chelika
 
iExpenses Setup
iExpenses SetupiExpenses Setup
iExpenses Setup
shravan kumar chelika
 
Order Line Sets in Oracle Order Management
Order Line Sets in Oracle Order ManagementOrder Line Sets in Oracle Order Management
Order Line Sets in Oracle Order Management
Bizinsight Consulting Inc
 
iExpenses Introduction
iExpenses IntroductioniExpenses Introduction
iExpenses Introduction
shravan kumar chelika
 
Mandatory sql functions for beginners
Mandatory sql functions for beginnersMandatory sql functions for beginners
Mandatory sql functions for beginners
shravan kumar chelika
 
Expense personalization
Expense personalizationExpense personalization
Expense personalization
shravan kumar chelika
 
Basics of oracle service contracts
Basics of oracle service contractsBasics of oracle service contracts
Basics of oracle service contracts
shravan kumar chelika
 
Oracle glossary
Oracle glossaryOracle glossary
Oracle glossary
shravan kumar chelika
 
Order to cash cycle
Order to cash cycleOrder to cash cycle
Order to cash cycle
shravan kumar chelika
 
Procure to pay flow
Procure to pay flowProcure to pay flow
Procure to pay flow
shravan kumar chelika
 
How to auto create trip in oracle order management
How to auto create trip in oracle order managementHow to auto create trip in oracle order management
How to auto create trip in oracle order management
shravan kumar chelika
 

Viewers also liked (18)

REST for SQL Developers
REST for SQL DevelopersREST for SQL Developers
REST for SQL Developers
 
Create rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloperCreate rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloper
 
Attach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurementAttach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurement
 
How to create PO with ASN
How to create PO with ASNHow to create PO with ASN
How to create PO with ASN
 
Build Restful Service using ADFBC
Build Restful Service using ADFBCBuild Restful Service using ADFBC
Build Restful Service using ADFBC
 
Get On Hand Quantities Through API
Get On Hand Quantities Through APIGet On Hand Quantities Through API
Get On Hand Quantities Through API
 
iExpenses Setup
iExpenses SetupiExpenses Setup
iExpenses Setup
 
Order Line Sets in Oracle Order Management
Order Line Sets in Oracle Order ManagementOrder Line Sets in Oracle Order Management
Order Line Sets in Oracle Order Management
 
iExpenses Introduction
iExpenses IntroductioniExpenses Introduction
iExpenses Introduction
 
Physical inventory
Physical inventoryPhysical inventory
Physical inventory
 
Mandatory sql functions for beginners
Mandatory sql functions for beginnersMandatory sql functions for beginners
Mandatory sql functions for beginners
 
Expense personalization
Expense personalizationExpense personalization
Expense personalization
 
Basics of oracle service contracts
Basics of oracle service contractsBasics of oracle service contracts
Basics of oracle service contracts
 
Oracle glossary
Oracle glossaryOracle glossary
Oracle glossary
 
Order to cash cycle
Order to cash cycleOrder to cash cycle
Order to cash cycle
 
Procure to pay flow
Procure to pay flowProcure to pay flow
Procure to pay flow
 
Fixed assets-set-up
Fixed assets-set-upFixed assets-set-up
Fixed assets-set-up
 
How to auto create trip in oracle order management
How to auto create trip in oracle order managementHow to auto create trip in oracle order management
How to auto create trip in oracle order management
 

Similar to How to convert custom plsql to web services-Soap OR Rest

Spca2014 hillier 3rd party_javascript_libraries
Spca2014 hillier 3rd party_javascript_librariesSpca2014 hillier 3rd party_javascript_libraries
Spca2014 hillier 3rd party_javascript_librariesNCCOMMS
 
Workshop: Building Vaadin add-ons
Workshop: Building Vaadin add-onsWorkshop: Building Vaadin add-ons
Workshop: Building Vaadin add-ons
Sami Ekblad
 
Тестирование Magento с использованием Selenium
Тестирование Magento с использованием SeleniumТестирование Magento с использованием Selenium
Тестирование Magento с использованием Selenium
Magecom Ukraine
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
Sencha
 
Salesforce Lightning Data Services- Hands on Training
Salesforce Lightning Data Services- Hands on TrainingSalesforce Lightning Data Services- Hands on Training
Salesforce Lightning Data Services- Hands on Training
Sunil kumar
 
Wave Workshop
Wave WorkshopWave Workshop
Wave Workshop
Jason Dinh
 
Yii Introduction
Yii IntroductionYii Introduction
Yii Introduction
Jason Ragsdale
 
Codegnitorppt
CodegnitorpptCodegnitorppt
Codegnitorppt
sreedath c g
 
Salesforce meetup | Lightning Web Component
Salesforce meetup | Lightning Web ComponentSalesforce meetup | Lightning Web Component
Salesforce meetup | Lightning Web Component
Accenture Hungary
 
Building and deploying React applications
Building and deploying React applicationsBuilding and deploying React applications
Building and deploying React applications
Astrails
 
SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015
Pushkar Chivate
 
How to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationHow to develop a gateway service using code based implementation
How to develop a gateway service using code based implementation
nitin2517
 
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
DataLeader.io
 
Introduction to Spring Boot.pdf
Introduction to Spring Boot.pdfIntroduction to Spring Boot.pdf
Introduction to Spring Boot.pdf
ShaiAlmog1
 
Introduce cucumber
Introduce cucumberIntroduce cucumber
Introduce cucumber
Bachue Zhou
 
How We Brought Advanced HTML5 Viewing to ADF
How We Brought Advanced HTML5 Viewing to ADFHow We Brought Advanced HTML5 Viewing to ADF
How We Brought Advanced HTML5 Viewing to ADF
SeanGraham5
 
ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...
ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...
ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...
Agile Testing Alliance
 
Developing your first application using FI-WARE
Developing your first application using FI-WAREDeveloping your first application using FI-WARE
Developing your first application using FI-WAREFermin Galan
 
Symfony2 from the Trenches
Symfony2 from the TrenchesSymfony2 from the Trenches
Symfony2 from the Trenches
Jonathan Wage
 
Developing your first application using FIWARE
Developing your first application using FIWAREDeveloping your first application using FIWARE
Developing your first application using FIWAREFIWARE
 

Similar to How to convert custom plsql to web services-Soap OR Rest (20)

Spca2014 hillier 3rd party_javascript_libraries
Spca2014 hillier 3rd party_javascript_librariesSpca2014 hillier 3rd party_javascript_libraries
Spca2014 hillier 3rd party_javascript_libraries
 
Workshop: Building Vaadin add-ons
Workshop: Building Vaadin add-onsWorkshop: Building Vaadin add-ons
Workshop: Building Vaadin add-ons
 
Тестирование Magento с использованием Selenium
Тестирование Magento с использованием SeleniumТестирование Magento с использованием Selenium
Тестирование Magento с использованием Selenium
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
 
Salesforce Lightning Data Services- Hands on Training
Salesforce Lightning Data Services- Hands on TrainingSalesforce Lightning Data Services- Hands on Training
Salesforce Lightning Data Services- Hands on Training
 
Wave Workshop
Wave WorkshopWave Workshop
Wave Workshop
 
Yii Introduction
Yii IntroductionYii Introduction
Yii Introduction
 
Codegnitorppt
CodegnitorpptCodegnitorppt
Codegnitorppt
 
Salesforce meetup | Lightning Web Component
Salesforce meetup | Lightning Web ComponentSalesforce meetup | Lightning Web Component
Salesforce meetup | Lightning Web Component
 
Building and deploying React applications
Building and deploying React applicationsBuilding and deploying React applications
Building and deploying React applications
 
SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015
 
How to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationHow to develop a gateway service using code based implementation
How to develop a gateway service using code based implementation
 
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
 
Introduction to Spring Boot.pdf
Introduction to Spring Boot.pdfIntroduction to Spring Boot.pdf
Introduction to Spring Boot.pdf
 
Introduce cucumber
Introduce cucumberIntroduce cucumber
Introduce cucumber
 
How We Brought Advanced HTML5 Viewing to ADF
How We Brought Advanced HTML5 Viewing to ADFHow We Brought Advanced HTML5 Viewing to ADF
How We Brought Advanced HTML5 Viewing to ADF
 
ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...
ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...
ATAGTR2017 Test Approach for Re-engineering Legacy Applications based on Micr...
 
Developing your first application using FI-WARE
Developing your first application using FI-WAREDeveloping your first application using FI-WARE
Developing your first application using FI-WARE
 
Symfony2 from the Trenches
Symfony2 from the TrenchesSymfony2 from the Trenches
Symfony2 from the Trenches
 
Developing your first application using FIWARE
Developing your first application using FIWAREDeveloping your first application using FIWARE
Developing your first application using FIWARE
 

Recently uploaded

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

How to convert custom plsql to web services-Soap OR Rest

  • 1. How to Convert Custom PLSQL to Webservices Create a Custom BusinessEntity: ApplicationDeveloper->Application->Lookups->ApplicationObjectLibrary Code : DSI_BUS_ENTITY Create your Custompackage withAnnotations only inthe spec : CREATE OR REPLACE PACKAGE DSI_GET_ITEM_ID AS /* $Header: $ */ /*# * This custom PL/SQL package can be used to retrieve item id * @rep:scope public * @rep:product INV * @rep:lifecycle active * @rep:compatibility S * @rep:displayname Get Item Number * @rep:category BUSINESS_ENTITY DSI_BUS_ENTITY */ /*# * Use this method to get item identifier * @param p_item_number item number * @param p_org_id organization identifier * @param x_item_id item identifier * @param x_status status
  • 2. * @param x_err_msg error message * @rep:scope public * @rep:lifecycle active * @rep:displayname Get Item Identifier */ procedure get_item_id (p_item_number in VARCHAR2, p_org_id in NUMBER, x_item_id out NUMBER, x_status out VARCHAR2, x_err_msg out VARCHAR2 ); END DSI_GET_ITEM_ID; Create your Custompackage body : CREATE OR REPLACE PACKAGE BODY DSI_GET_ITEM_ID AS procedure get_item_id (p_item_number in VARCHAR2, p_org_id in NUMBER, x_item_id out NUMBER, x_status out VARCHAR2, x_err_msg out VARCHAR2 ) IS v_item_id number; end_chk_excep exception; BEGIN begin select inventory_item_id into v_item_id from mtl_system_items_b where 1=1 and segment1=p_item_number and organization_id=p_org_id; exception when no_data_found then x_status:='E'; x_err_msg:='Item Number Entered does not exist'; raise end_chk_excep; end; x_item_id := v_item_id; x_status:='S'; x_err_msg:='DSI Custom Rest Service Successful'; exception when end_chk_excep then x_status := 'E'; x_err_msg := x_err_msg || ' - ' || sqlerrm; when others then
  • 3. x_status:='E'; x_err_msg:='Item Number Entered is not valid'; END GET_ITEM_ID; END DSI_GET_ITEM_ID; Connectto applicationserverwith FTP and uploadpls file intoINV_TOP : Give permissions: Connectto applicationserverusing putty tool and run the followingunixcommand. This command runs a perl script which is goingto parse your plsfile according to the annotations and generatesan ildtfile.
  • 4. $IAS_ORACLE_HOME/perl/bin/perl $FND_TOP/bin/irep_parser.pl -g-v-username=sysadmin INV:patch/115/sql:DSI_GET_ITEM_ID:12.0=patch/115/sql/DSI_GET_ITEM_ID.pls If there are no errors, ildt file wouldbe generated: Give permissionssothe file can be accessed : chmod777 DSI_GET_ITEM_ID.ildt To upload ILDT file intoOracle EBS, run the followingcommand : $FND_TOP/bin/FNDLOADapps/apps0Y UPLOAD $FND_TOP/patch/115/import/wfirep.lct DSI_GET_ITEM_ID.ildt Log on to the applications withSYSADMIN username and click on the IntegrationRepository:
  • 5. Navigate to Oracle SupplyChain ManagementFamily->Oracle InventoryManagement: Clickon DSI Custom Business Entity
  • 6. Clickon the ‘Generate WSDL’button and once the WSDL isgeneratedyou can click on the ‘Create Grant’ button and give Grants : You can ‘Deploy’the webservice by clicking the ‘Deploy’button, you can always redeployor un deploythe service:
  • 7. Before Invokingthe Webservice : cd $INST_TOP/admin/scripts adoafmctl.shstop adoacorectl.shstop adoafmctl.shstart adoacorectl.shstart Clear cache Use responsibilityFunctional Administratorandgoto Core Services ->CachingFramework ->Global Configuration ->Clearall cache. Now to test the web service , you can use tools like SOAPUI : The url to be passedinto the SOAPUI can be seenin the WSDL File generated : (lookfor soap address location) Pass in the parameters correctly : ResponsibilityKey:INVENTORY_VISION_OPERATIONS RespApplication : INV SecurityGroup : STANDARD NLSLanguage : AMERICAN Org_Id : 204 For Authentication,enterthe username/passwordin the request propertiesand click on the ‘Green arrow-Submit Requestto specifiedUrl) buttonon the SOAP UI
  • 8.
  • 9. USING REST WEBSERVICES : Followsame stepsabove till you log on to the Applications. Log on to the applications withSYSADMIN username and click on the IntegrationRepository: Navigate to Oracle SupplyChain ManagementFamily->Oracle InventoryManagement: Clickon DSI Custom Business Clickon REST WebService Tab , selectthe methodyou want to POST and click on ‘DEPLOY’ : Clickon GrantsTab: SelectGroupof Usersand select‘InventoryVisionOperations(USA)’and thenclick on the WADL link:
  • 10. Copy the link for XSD File and paste in the browser : Now to test it download‘POST MAN’ a google chrome extensionand the URL wouldbe combination of linksfrom WADL file above . URL – RESOURCES BASE + RESOURCE PATH
  • 11. UnderAuthorization Tab , selectBasic Auth and enterthe username/password: UnderHeaders, you shouldhave the following : Note that Authorization : Basic ‘Uniquekey’will be generatedby the Tool Content-Type:application/xml Authorization:BasicTUZHOndlbGNvbWU= Accept:application/xml Content-Language:en-US In the Body Section: Prepare the PAYLOAD: <?xml version="1.0"encoding="UTF-8"?> <ns:GET_Input xmlns:ns="http://xmlns.oracle.com/apps/inv/rest/ItemInfo/get_item_id/" xmlns:ns1="http://xmlns.oracle.com/apps/inv/rest/ItemInfo/header"> <ns1:RESTHeader> <ns1:Responsibility>INVENTORY_VISION_OPERATIONS</ns1:Responsibility> <ns1:RespApplication>INV</ns1:RespApplication> <ns1:SecurityGroup>STANDARD</ns1:SecurityGroup> <ns1:NLSLanguage>AMERICAN</ns1:NLSLanguage>
  • 12. <ns1:Org_Id>204</ns1:Org_Id> </ns1:RESTHeader> <ns:InputParameters> <ns:P_ITEM_NUMBER>AS54888</ns:P_ITEM_NUMBER> <ns:P_ORG_ID>207</ns:P_ORG_ID> </ns:InputParameters> + </ns:GET_Input> The REST Headershouldbe the combinationof ResponsibilityKey+ApplicationShortname+SecurityGroup+Language+Orgid The path highlightedinREDcan be foundfromthe XSD File astargetNamespace +import namespace(endingwithheader): The inputparametersare alsofoundin the xsdfile : Clickon ‘Send’to check out the output :