Create rest webservice for oracle public api using java class via jdeveloper
1. Create Custom Application in Jdeveloper
OpenJdeveloper12.1.3.0.0 or 12.2.1.1.0 -File->New->ApplicationorNew Application
SelectCustomApplication
Enter the ApplicationName
4. Your Java Classwouldbe asbelow,addthe code for invokingOracle PublicAPI:
Build the code required to call the Oracle Public API
AfterAddingthe code youmightsee the errorswith‘OracleTypes’
5. Add Libraries to the Project
To get ridof the errors,add the requiredJARFiles. Rightclickonthe project‘Inv_API’andselect‘Project
Properties’andclickon‘LibrariesandClasspath’andthenclickon‘AddLibrary’and addfollowing
libraries
10. Running the Integrated Weblogic Server
RightClickon ‘Rest_Java.java’andselect‘Run’,select‘JAX-RSWebService Runner’
IntegratedWebLogicServergetskickedoff andthe followingURLwouldbe generated
Clickon the TargetURL, HTTP AnalyzerWindow opens,enterthe parameters
Checkthe Interface table forthe TransactionInterface Id
11. AfterRestwebservice isrunyoushouldsee the recordinthe base table
Testing Rest Webservice
Clickon ‘SendRequest’afterenteringthe parameters
You shouldsee the message if the RestWebservice issuccessful