ADF BC: integrating REST API

Using JDev 11g PS4
The model of my application has a mix of different sources. Some entities are stored in my database.
Other entities are coming from a call to an external REST API.
I am wondering what the best solution is to integrate those REST API objects into my model project because I don't want to expose them as rest api to my view. In my view project, I want to hide the complexity of those API's by exposing data controls.
Now, what is the best way?
1) Creating POJO's and creating data controls out of them. These pojo's will have a signature like this:
public class Foo {
   public List<FooObject> getFoos();
   public void addFoo(FooObject foo);
   public void removeFoo(FooObject foo);
}This will be exposed to my view so I can easily use it in my view project.
2) Create view objects to map the entities from my rest API and implement the REST API calls in the custom implementation of the view objects.
3) ...
Any other suggestion is more then welcom.

Hi,
if the rest of your model is ADF BC then it would feel natural to use prgrammatic view objects to access the REST service. However, if the data is unrelated then using a a POJO DC also appears to be a solution. For simple REST requests that return XML formatted data, you could use the URL Data Control which in 11g R1 allows for read access and in 11.1.2 the full REST CRUD cycle
Frank

Similar Messages

  • Which Objects should I target for integrating Eloqua REST API 2.0?

    Which Objects should I target for integration? and What are the possible use cases for the additional objects other than core objects?

    I am still trying to find a good REST API 2,0 document like the Bulk 2.0 document.  Book List: Oracle Marketing Cloud
    I did find this but is also not in depth:
    REST API - Documentation for Core Objects

  • HTTP REST API call to CPSC 10.x from an external system

    Hi,
    I would like to know the below items.
    Is it possible to connect with the CPSC 10.x from an external system via HTTP REST API call to process a request and complete a task?
    Is it possible to create a new ticket / request in CPSC for a specific service via the HTTP REST API call?
    One of the use case is to know how many requests are pending in a queue via a HTTP REST API call? How to pass a queue name in the HTTP REST API call to get the result? These kind of custom piece is not available in the integration guide.
    Is there any specific REST API guide available which Cisco provides for the REST capability in CPSC?
    Any help is highly appreciated!
    Thanks.

    When a task is invoked from a service catalog request to an external system, the request remains open and the task is pending until the external system issues a call to complete the task.  The API for completing the task is SOAP-based.  Check out the Cisco Prime Service Catalog Integration Guide.  Within the doc, go to the section about "Web Service Listener Adapter" for the WSDL.
    You can order a service within Prime Service Catalog with a SOAP call, which is also documented in this same document.  Starting with Prime Service Catalog 10.1, you will have a way to order a service via a REST API.
    Existing REST APIs are also documented in the integration guide.

  • HTTP Rest api call maximum results

    Hi all,
    I´m trying to get data from the portal using the follwoing rest api call:
    http://<ServerURL>/RequestCenter/nsapi/serviceitems/serviceitemsubscription
    but it only gives me 20 results, which I believe it is the default, is there any way to get all the elements or a way to page all the results?
    Thanks
    Alex.

    Hi all,
    found some info on the Integration guide (Cisco Prime Service Catalog 10.0 Integration Guide) page 222, there is a section regarding Paging, but the max results are 50.
    I was looking a simple way to export / import info from the portal, but it seems Java is going to be neded instead http nsapi.
    Regards,
    Alex.

  • Consume Webcenter REST API for Mobile App

    Hi All,
    I have some requirement like How to consume web center REST API to the ADF mobile
    could you please guide to it any examples,links.
    When i am trying to consume by using URL Data control it is showing authentication failed, can you pls tell me how to resolve this issue.
    Is there any procedure do the same.
    Thanks in Advance .
    Message was edited by: 878913

    Well was able to resolve it however had to do workaround
    >> used rawXhrPost and put methods instead of xhrPost/put as the dojo.xhrPost seems to insist on sending the data as key=value
    pairs separated by a '&' which on one hand lead webcenter to believe there
    wasn't any POST data as it was expecting json ..
    however if anyone has used xhrPost with webcenter rest , please guide how to use it ... casue and unable to use it .
    also which is the right way to do it ? xhrpost or rawXhrPost , asthe later this method is not extensively mentioned... seems its going to be depricated...

  • Publishing bc4j via stateless RESTful API

    Dear,
    After some evaluation period, I've found that ASP.NET is a much simpler way to develop a web site than JDeveloper. However, since my web application project is heavily database-oriented (ERP like system), I've found what ADO.NET offer is too limited. ADF BC is a lot better way to handle database logic. I'm now thinking about publishing ADF BC through a stateless document oriented API to serve ASP.NET via HTTP protocol.
    Is this a sane decision ? Will it be scalable ? Does bc4j work well in stateless servlet environment ?
    I know that View Object can publish XML data, but the mechanism does not address concurrency issue at all. (lost update, phantom row) Do I have to invent my own RESTful API for this ? Have anybody done this before ?
    Thanks.

    You just need to look in the correct place:
    You won't find this on the OTN version of the BC4j doc, That page looks like 903 not 9031 doc.
    You'll find definitions of the AM configuration parameters in 9031 Jdev help:
    Develop Business Components
    - Business Compents Reference
    - Business Component System Properties
    Here is where you'll find doc for AM properties like:
    # -Djbo.ConnectionPoolManager
    # -Djbo.SQLBuilder
    # -Djbo.ampool.initpoolsize
    # -Djbo.ampool.maxavailablesize
    # -Djbo.ampool.maxinactiveage
    # -Djbo.ampool.maxpoolsize
    # -Djbo.ampool.minavailablesize
    # -Djbo.ampool.monitorsleepinterval
    # -Djbo.ampool.resetnontransactionalstate
    # -Djbo.debugoutput
    # -Djbo.doconnectionpooling
    # -Djbo.dofailover
    # -Djbo.entityrowset.mode
    # -Djbo.initpoolsize
    # -Djbo.locking.mode=optimistic or none per Steve M. none is what we want
    # -Djbo.max.cursors
    # -Djbo.maxpoolcookieage -Djbo.maxpoolcookieage=1800 ??
    # -Djbo.maxpoolsize
    # -Djbo.pers.max.active.nodes JBOVARS="-Djbo.pers.max.active.nodes=100 -Djbo.pers.max.rows.per.node=200 $JBOVARS"
    # -Djbo.pers.max.rows.per.node
    # -Djbo.poolmaxavailablesize
    # -Djbo.poolmaxinactiveage
    # -Djbo.poolminavailablesize
    # -Djbo.poolmonitorsleepinterval
    # -Djbo.poolrequesttimeout
    # -Djbo.project
    # -Djbo.recyclethreshold
    # -Djbo.use.pers.coll
    curt

  • "ErrorAccesDenied" when using REST APIs to access Contacts, Calendar and Mails in Office365

    Hi,
    I am developing a web application to integration with Office365 using Azure AD method. I have created a Multi-Tenant application in Azure AD and using the client-id , client secret I have successfully generated access token and refresh token.
    Based on the rest API documentation I am setting the header with Authorization, User-Agent, Client-request-id as the parameters. But when I make a request to fetch all the contacts getting the following response.
    {"error":{"code":"ErrorAccessDenied","message":"Access is denied. Check credentials and try again."}}I have followed all the steps that were listed in this blog http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspxAny help is appreciated.Thank you in advance.

    Jason,
    Thank you for the response.
    I am making GET request to get the contacts using this URL - https://outlook.office365.com/api/v1.0/me/contacts
    When I copy and paste in JWT this what I am seeing,
    scp - Calendars.Read Calendars.Write Contacts.Read Contacts.Write full_access_as_user Mail.Read Mail.Send Mail.Write
    aud - https://outlook.office365.com/

  • Sharepoint 2013 REST API calls with JASONP support

    We are working on sharepoint online integration with PHP Based application. We need to provide REST API call which supports JSONP.
    So is it possible to create new REST API Endpoints in Sharepoint online APP? Please sugggest right direction.

    Hi,
    In Office 365 (aka SharePoint Online), you can simply consume the SharePoint data through REST API or WS call,but cannot create your own endpoint.
    By default you can get the JSON response from the Office 365 REST API,its upto you to use the JSONP on your client compatibility not on SharePoint online REST API.
    Sometime before I tried, It didn't work for me.
    If you develop the AppModel, SPRequestor.js does the same job(overcome the Cross domain restriction) the what JSONP does.
    Murugesa Pandian| MCPD | MCTS |SharePoint 2010

  • Problem in tutorial "Integrating RESTFul Web Services"

    JDeveloper/ADF downloaded March 2012, JDeveloper Studio Edition Version 11.1.2.1.0 and full ADF download bundle.
    I have run through the JDeveloper/ADF tutorial titled, "Integrating RESTFul Web Services". When I get to Step 3, "Test the Web Service" the application fails to deploy. The essential error is, "Caused by: java.lang.ClassNotFoundException: javax.ws.rs.ext.RuntimeDelegate". I done it from scratch 3 times to make sure I was not missing any steps.
    An clues would be appreciated.
    Thank you,
    Russ Ryan

    Thanks for the suggestions. I tried both of them:
    - including JAR files under lib directly
    - including the JAX-RS libraries from the Libraries selection.
    Still getting the error about not finding javax.ws.rs.ext.RuntimeDelegate.
    I downloaded the finished project from the tutorial (http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_53/labs/restsolution.zip), did a rebuild and tried the "Test Web Service". I got the same error. I'm wondering if it is a problem with my environment.
    Thanks,
    Russ Ryan

  • Invoking a rest api from BPEL

    Has anybody tried to acess rest api from BPEL , if yes how?
    Has anybody have done integration with HBASE database

    Yes you can call Restful services from SOA 11g bu using HTTP binding that supports both GET and POST operation.
    See the blog below that explains it
    http://rajbpelblog.blogspot.com/2010/10/http-binding-in-soa11g.html

  • How to watch forum using Webcenter Discussions REST API

    If I am building an application using WebCenter Discussions REST API, what API should I invoke to watch forum, topic? If it is not available in the REST API, what is the workaround to do the same ?
    Did not find relevant information in the [http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_jive.htm#CHDGJECD] .

    Hi.
    REST Discussions API allow you to get all information that you need. It provides URL to Forums, topics... Or directly you can access to the messages.
    In addition, you can use REST Search API to search into discussion forums if you have Oracle SES.
    Off doc about information that can you get through REST API: http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_jive.htm#CHDGJECD
    In the case of that you need more information about provided by REST API or WebCenter API then you can implement your own ADF BC to consume Discussions schema :).
    Regards.
    Edited by: Daniel Merchán on 16-oct-2012 15:16

  • Office 365 Files REST API and chunked upload

    Hello,
    I am currently working on integration with OneDrive for Business and I need to upload large files in chunks. I need to do something like  this but using
    the O365 Files REST API. As far as I understand this is currently not supported.
    Are there any plans to support
    uploading in chunks? If yes, can you please provide some (rough) estimate?
    Thanks
    Andrey

    Thank you for the quick answer!
    We are trying to upload the files using javascript and we are currently working with this API:
    https://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations
    We have also noticed that the roadmap for Office 365
    http://roadmap.office.com/en-us contains SharePoint API Partial File Upload Support. 
    Does the update pointed in the roadmap refer to the API we are using? Or if you are saying we can already do chunked upload using it, can you please point us to a working sample?
    Thanks
    Andrey

  • REST API information

    Is there any documentation with regards to CRM On demand's REST API any examples etc. I saw the news that there is an IPAD app using crmod's rest API hence the query

    Hi,
    Thanks for the link. The iPad application you are referring to is actually an integration with the Oracle Siebel CRM solution, not Oracle CRM On Demand hosted application.
    Thanks,
    Sean

  • Program _____.MDS not registered..PI 7.1 EHP 1-MDM 7.1 Integration-ABAP API

    Hi,
    I am on the way of integrating ABAP API in PI 7.1 EHP 1 with MDM 7.1
    I installed MDM ABAP API in PI system.
    In transaction MDMAPIC, created MDM Server Connection with default port, DBMS Hosts and MDM Repository.
    After I did the above tasks, I tested the RFC Connection, But its failed with the following error.
    Connection Test MDM_API_GEN_DEFIANCEDEP  
    Connection Type TCP/IP Connection  
    Logon     Connection Error
    Error Details     Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=67
    Error Details     ERROR: program DEFIANCEDEP.MDS not registered
    Error Details     LOCATION: SAP-Gateway on host DEFIANCEDPI / sapgw00
    Error Details     DETAIL: TP DEFIANCEDEP.MDS not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 87
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1714
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 711
    Error Details     TIME: Sat Mar 12 13:53:55 2011
    Error Details     VERSION: 2
    Appreciated if replied with the proper resolution at the earliest.
    Thanks in Advance
    Pradeep Shetty

    Hi Kanstantsin Chernichenka,
    Thanks for your reply.
    I tried the given suggestion. And even restarted the PI and MDM system.
    Still, I am facing the same problem.
    My allow.ip file contains
    122.183.187.24;  
    122.183.187.25;
    115.242.211.112;
    115.184.2.47;
    My MDS.ini file contents are
    [MDM Server]
    XCS Ini Version=1
    Accelerator Dir=E:\usr\sap\MDM\MDS02\mdm\accelerators
    Log Dir=E:\usr\sap\MDM\MDS02\log
    Report Dir=E:\usr\sap\MDM\MDS02\mdm\reports
    Archive Dir=E:\usr\sap\MDM\MDS02\mdm\archives
    Distribution Root Dir=E:\usr\sap\MDM\MDS02\mdm\distributions
    Transport Dir=E:\usr\sap\MDM\MDS02\mdm\transport
    Modifications Dir=E:\usr\sap\MDM\MDS02\mdm\modifications
    Lexicon Dir=E:\usr\sap\MDM\MDS02\exe\Lexicons\
    Extra DBConnection Validation=True
    Log SQL Errors=True
    String Resource Dir=E:\usr\sap\MDM\MDS02\exe\LangStrings\
    Stemmer Install Dir=E:\usr\sap\MDM\MDS02\exe
    Wily Instrumentation=False
    Wily Instrumentation Level Threshold=10
    SLD Registration=True
    Skip Unchanged Records=False
    Autostart=0
    MDS Ini Version=1
    RELEASE\UseAssert=True
    Tracing Level=3
    LogViewer Format Logging=False
    LogViewer Format Tracing=False
    Trusted SAP Systems=DPI
    TrustFiles Dir=E:\usr\sap\MDM\MDS02\config
    Max Threads Per Operation=Auto
    Lock Account After Failed Password Attempts=5
    Lock Account Duration=1800
    Minimal Password Length=5
    Password Expiration Days=90
    Password Expiration Warning=7
    Disable Read Access To Corrupt Repositories=False
    MDS Scone=
    Log SQL Modifications=False
    Maximum DBMS Bind Count=512
    Oracle\Dll=OCI.DLL
    Allow Console to Retrieve Files=True
    Oracle Tablespace Files=1
    Default Interface Language Code=eng
    Default Interface Country Code=US
    Client Ping Timeout Minutes=0
    Inactive Client Timeout Minutes=30
    Value Retrieval Threshold=0
    Protect Family Nodes With Locked Data=False
    Number Of Stemmers Per Language=2
    TrexDllPath=
    Import Slice Size=2048
    Bulk Import Silo=True
    Safe Silo Mode=False
    Enable Change Stamp Logging=False
    Always Verify DBMS Connection Before Executing SQL Statements=False
    Disable Read Access To Repositories That Require Restart=False
    Family Retrieval Threshold=30000
    Enable Client Dictionaries=False
    Restricted Url For Client Export=
    Index_Page_Margin=10
    Default Slice Size=500
    Default Slice Wait Time MS=300
    Enable Slicing For Non-Bulk Operations=False
    Multithreaded Matching=True
    SAP RFC Gateways=
    [MDM Server\Databases\MDM_1MDMORCL_5_3_4_3]
    Port=2345
    Login=SYSTEM
    Password+=ES066H2NVHDCFSJ206LJ9I995SLBVSA21OMQPM0
    Stemmer Language=
    Stemmer Variant=
    Valid Keyword Chars=abcdefghijklmnopqrstuvwxyz0123456789
    Max Large Text Length=250000
    Number of Rows Per Fetch=100
    Max Initial MB to Retain=4
    Max Send Failure MB to Retain=4
    Workflow Detailed Report=False
    Mail Server=
    Mail SMTP Timeout=1
    Here I am requesting you to send your valuable feedback at the earliest.
    Thanks
    Pradeep Shetty

  • Return data is null while calling Exchange Online rest api using jquery on Chrome and Mozilla

    Hi,
         I am developing a SharePoint hosted app in which I am calling Exchange online rest api using basic authentication to get mail for the user. This works fine in IE but returns null data when opening in Chrome or Mozilla.
    Is there something I am missing while making rest call to api?
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

    Hi,
    This forum is to discuss problems of Office development such as VBA, VSTO, Apps for Office .etc. But I think your question is related to app for SharePoint. I suggest you posting it in
    App for SharePoint forum for more efficient responses.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Storing DTD or xml schema in DB

    Is there a recommended best practice for using db tables to store constraints represented by a DTD or xml schema? I'm not looking to store a normal xml doc in the db, but rather something like the DTD that can be read and used to validate incoming do

  • Migration Wizard throws exception on launch

    PTPortal v5.0.1, After installation of the Exchange Integration Portlet suite, when I tried to launch the migration wizard to import the server packages (PTE's), I received the following java exception: Exception in thread main java.lang.Unsatisified

  • Access of the Text in the TextField

    In the following code ,how can I access text in the textfield(i.e object x in the following code) in the place of z in the following code: BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(z))); import java.awt.Color; imp

  • Is this update necessary...

    I purchased my mac book pro July 31st. It runs very hot. Should I download the "MacBook Pro 15-inch SMC Firmware Update" even though it was posted two months before or would it already be installed in my computer?

  • Security issues w/ Flashhelp

    Hello all, I have just started to work for a new company who has used Flashhelp to create an online FAQ / KB. This FAQ should of course only be accessible to our clients... but it seems to be accessible to anyone hitting the correct entry! Would anyo