SlideShare una empresa de Scribd logo
1 de 12
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 :

Más contenido relacionado

La actualidad más candente

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
 
Personalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRPersonalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRAhmed Elshayeb
 
Validation type 'special' in value sets
Validation type 'special' in value setsValidation type 'special' in value sets
Validation type 'special' in value setsFeras Ahmad
 
AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy Mohammad Younus
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewPritesh Mogane
 
Oracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customerOracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customerAhmed Elshayeb
 
Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps Boopathy CS
 
oracle ebs free web service integration tools
oracle ebs free web service integration toolsoracle ebs free web service integration tools
oracle ebs free web service integration toolsSmartDog Services
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove  disable and cancel shipment functionality in enter purchase or...How to remove  disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...Ahmed Elshayeb
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12parinay jain
 
Oracle order management implementation manual
Oracle order management implementation manualOracle order management implementation manual
Oracle order management implementation manualNawaz Sk
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)Ahmed Elshayeb
 
Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Mina Lotfy
 
Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.Boopathy CS
 
Oracle procurement contracts
Oracle procurement contractsOracle procurement contracts
Oracle procurement contractssivakumar046
 

La actualidad más candente (20)

E-Business Tax Purchasing Whitepaper
E-Business Tax Purchasing WhitepaperE-Business Tax Purchasing Whitepaper
E-Business Tax Purchasing Whitepaper
 
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...
 
Personalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRPersonalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PR
 
Validation type 'special' in value sets
Validation type 'special' in value setsValidation type 'special' in value sets
Validation type 'special' in value sets
 
AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy AME Requisition Approval Heirarchy
AME Requisition Approval Heirarchy
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing Overview
 
Oracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customerOracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customer
 
Install base
Install baseInstall base
Install base
 
Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps
 
oracle ebs free web service integration tools
oracle ebs free web service integration toolsoracle ebs free web service integration tools
oracle ebs free web service integration tools
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove  disable and cancel shipment functionality in enter purchase or...How to remove  disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12
 
Oracle order management implementation manual
Oracle order management implementation manualOracle order management implementation manual
Oracle order management implementation manual
 
Oracle forms personalization
Oracle forms personalizationOracle forms personalization
Oracle forms personalization
 
Multi org-r12
Multi org-r12Multi org-r12
Multi org-r12
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)
 
Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2
 
Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.
 
Oracle procurement contracts
Oracle procurement contractsOracle procurement contracts
Oracle procurement contracts
 
Om dates
Om datesOm dates
Om dates
 

Destacado

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 jdevelopershravan 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 iprocurementshravan kumar chelika
 
Mandatory sql functions for beginners
Mandatory sql functions for beginnersMandatory sql functions for beginners
Mandatory sql functions for beginnersshravan kumar chelika
 
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 transfersshravan 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 managementshravan kumar chelika
 

Destacado (20)

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
 
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
 
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
 
Basics of Oracle Order Management
Basics of Oracle Order ManagementBasics of Oracle Order Management
Basics of Oracle Order Management
 

Similar a 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-onsSami Ekblad
 
Тестирование Magento с использованием Selenium
Тестирование Magento с использованием SeleniumТестирование Magento с использованием Selenium
Тестирование Magento с использованием SeleniumMagecom 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 TrainingSunil kumar
 
Salesforce meetup | Lightning Web Component
Salesforce meetup | Lightning Web ComponentSalesforce meetup | Lightning Web Component
Salesforce meetup | Lightning Web ComponentAccenture Hungary
 
Building and deploying React applications
Building and deploying React applicationsBuilding and deploying React applications
Building and deploying React applicationsAstrails
 
SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015Pushkar 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 implementationnitin2517
 
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.pdfShaiAlmog1
 
Introduce cucumber
Introduce cucumberIntroduce cucumber
Introduce cucumberBachue 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 ADFSeanGraham5
 
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 TrenchesJonathan 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 a 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
 

Último

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Último (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

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 :