More quick REST API / JSON approaches to the interviews of the OPA?

I recognize there are services / libraries that can convert an OPA Web Service deployment on the hub to a JSON / REST API.  (Examples: Mashape I used for the other REMAINS in the SOAP proxy).

But, is there a consensus on the more common approach / best to this operation?  Is there an approach that may be more in line with the future development of the OPA hub around REST API?  I think I saw something with Oracle Cloud Computing Mobile Service, but I cannot find enough documentation to the CEP with.

It occurs to me, that instead of researching the topic for an hour or more, I could have benefits more ask on the forum.

Thank you

Paul, my quick view is that whatever you do will be OK, because even once we add REST API, existing SOAP API will remain for backward compatibility reasons.

It would also be impossible to build compatibility for something we have not designed yet, so I can't really all guide on what to do / avoid in order to simplify any possible future transition official rest API.

Davin.

Tags: Oracle Applications

Similar Questions

  • WebCenter Sites REST API: How to set the active model?

    How can I set the model for the asset, I create.

    AssetBean sourceAsset = new AssetBean();

    sourceAsset.setName (value);

    sourceAsset.setName (prod_name);

    sourceAsset.setCreatedby (value);

    sourceAsset.setStatus (value);

    sourceAsset.setSubtype (value);

    ...

    but no set model?

    Hello

    The model on an asset is defined as an attribute:

    List attributes = sourceAsset.getAttributes()
    for(Attribute attribute: attributes) {
        if(attribute.getName().equals("template")) {
            attribute.getData().setStringValue("ArticleLayout2");
        }
    }
    

    or if you create a new item of assets:

    List attributes = sourceAsset.getAttributes()
    Attribute templateAttribute = new Attribute();
    templateAttribute.setName("template");
    templateAttribute.setData(new Data());
    templateAttribute.getData().setStringValue("ArticleLayout2");
    attributes.add(a);
    

    Kind regards

    Stephan.

  • REST API - the internal names of the fields in the custom object

    Hello

    We have an old system that uses the SOAP API and I'm rewritten with the REST API. Before, with SOAP, you identify the fields object personalized with their internal names. Therefore, our system and stored that names in its database. Now, I'm facing a problem. as the REST API does not provide the internal names for the fields in the custom object, as their full names and IDs. Am I wrong? Is it possible to get the internal names through REST? I found, you can get this internal names through the API as a WHOLE, but is there really no way to get them using REST? It seems strange to me and I don't want to use in BULK as there limits for requests per day.

    Hi Marc,

    In bulk API endpoints are the best way to retrieve the details field you are looking for.  Calls to retrieve this detail do not count against the daily API limits for the bulk API.

  • Perspective and visitors to the information using the REST API

    According to this post (Eloqua graphics API), visitors and prospects information is not available with the Eloqua REST API.

    With the Eloqua REST API there is a field that indicates whether a contact is a prospect or visitor?

    Hi Raghu,

    There is a new endpoint API (available with the Summer of Eloqua version), which allows you to retrieve a visitor profile.

    Please find some information on its use here: Eloqua API REST - recovery of visitor profiles

    T.J.

  • REST api call for the properties of the object in the html bridge provides resource not found (404) error.

    Hello

    I added a bridge Html summary view to our existing plugin (which is in Flex). The html page is displayed in the Summary tab with static data like images and titles. But the .gestJSON of the REST api call fails with the error ' could not load resources: the server responded with a 404 (Not Found) status.

    I followed the bridge Html sample chassisB (chassis - summary.js and html) to create the new page.

    Web.XML of the user interface of the plugin is configured to map/rest / *. bean dataAccessController is defined in the bundle context.

    Java package has the DataAccessController same class as the DataAccessController chassisB class

    This is the URL that I see in the javascript debugger and call API is a failure for this url.  There is no error in the virgo.log.

    https:// /vsphere-client/webui_ui_ns/rest/data/properties/323de5b9-4D2E-4dd7-ae32-98277dd44e90%252Fmf8k-h38?properties=name,model,version < vcenter ip >

    webui_ui_ns-client/vSphere is the value of Web-ContextPath in the plugin MANIFESTO. MF

    I spent a lot of time to understand the issue, but no luck. What I'm doing wrong here? Any help is appreciated.

    version of vCenter server appliance 6.0.0

    SDK - vSphere SDK Web 5.5.0

    1.7.0_79 64-bit JDK

    Thank you

    Deepa

    It was a configuration problem. I missed the tag in the bundle context of spring.

    After you add the 2 lines, it worked.

    Thanks for your time.

  • Create the edge with the NSX REST API

    Hello

    I am trying to create a new benefit using the REST API, but I get the following error over and over again: the server has refused the request because the request entity is in a format not supported by the resource for the requested method.

    I use using a xml model provided by the nsx_61_api.pdf and all the "ids" settings are ok. Can anyone tell my what of wrong in my XML?

    I'm able to get a list of the existing edges using GET on https:// < nsxmgr-ip > /api/4.0/edges/

    In this case, I use the same URL, but with the post OFFICE instead. In the body, I put the following XML code.

    < edge >
    <datacenterMoid>datacenter-2</datacenterMoid>
        < name > MyName-Edge-01 < / name >
        < holding > Default < / holding >
    <vseLogLevelemergency</vseLogLevel> >
    <devices>
    <applianceSize>compact</applianceSize>
            < appliance >
    <resourcePoolId>resgroup-5050</resourcePoolId>
    <datastoreId>datastore-104</datastoreId>
            < / appliance >
        < / appliances >

        < vnics >
            < vnic >
                < index > 0 < / index >
                < name > uplink01 < / name >
                < type > uplink < / type >
    <portgroupId>virtualwire-10</portgroupId>
    <addressGroups>
                    < addressGroup >
    <primaryAddress>10.0.0.1</primaryAddress>
    <secondaryAddresses>
                            < ipAddress > 10.0.0.2 < / ipAddress >
                            < ipAddress > 10.0.0.3 < / ipAddress >
    <>of theipAddress10.0.0.4</> of theipAddress
    </secondaryAddresses>
    <subnetPrefixLength>29</subnetPrefixLength>
                    < / addressGroup >
                < / addressGroups >
                < MTU > 1600 < / MTU >
    <enableProxyArp>false</enableProxyArp>
    <enableSendRedirects>true</enableSendRedirects>
    <isConnected>true</isConnected>
    <inShapingPolicy>
    <averageBandwidth>20000000</averageBandwidth>
    <peakBandwidth>20000000</peakBandwidth>
    <burstSize>0</burstSize>
                    < enabled > true < / enabled >
                    < inherited > false < / inherited >
    </inShapingPolicy>
    <outShapingPolicy>
    <averageBandwidth>20000000</averageBandwidth>
    <peakBandwidth>20000000</peakBandwidth>
                    < burstSize > 0 < / burstSize >
                    < enabled > true < / enabled >
                    < inherited > false < / inherited >
    </outShapingPolicy>
            < / vnic >
        < / vnics >
    <cliSettings>
    <>theusernameadmin</> user name
    <password># 123456 PasssworD</> password
    <remoteAccess>true</remoteAccess>
        < / cliSettings >
    < / edge >


    Thank you very much

    D.

    Finally, I discovered.

    You must add the header without papers:

    XML:application / xml

    Don't ask me why this non-standard header is not documented.

    D.

  • How to configure Hostname of the node with the REST API?

    I tried the value of hostname of the virtual machine when I deploy an application, but were unsuccessful.  The application consists of all the operating system - there is no installed service but an example here that I used when I deployed the application.  It is based on the release of the REST API "node info": for the particular deployment profile.

    {

    'node': [{}

    "name': 'VM1."

    "properties": [{}

    "hostname": "joe".

    }],

    ["nodeComponent":]

    }]

    }

    But when you use this application I get the error message: "the node 'VM1' does not exist in the current 'deployment profile'. ' even if 'VM1' is the only node in the deployment profile.  I tried other variations and still get the same error message.

    Does anyone have suggestions for how I can configure the hostname of the node when you deploy the application?  Thank you.

    Apparently, the REST API for planning a deployment is designed after characteristic GUI Application Director "rapid deployment". Rapid deployment does not allow the substitution of properties of node as hostname. Idea being the deployment profile once defined and prepared, each individual call of it must change some subset of the properties of the component. We can always create several profiles of deployment to account for changes in node.

    Nevertheless, it seems that property of node specifications would help your situation... so that your comments reached the product team.

    Thank you rags

    This posting is provided as is and confers no rights.

  • VRA 6.2 REST API: resource Action with object mapped by VRO

    I created a resource Action (Advanced Services - resources Actions) who calls a workflow orchestrator (VRO) to do a few things.  The VRO workflow takes three objects as inputs: 2 channel and a VC:VirtualMachine.  Connecting the web GUI, when a user selects the action for the specific virtual machine, they are presented with a form asking to specify the content of the 2 strings.  The VC:VirtualMachine object is transparant and (I think) is automatically mapped internally to the enabled virtual machine.  This works very well at the launch through the web GUI.  Now, I need to create the same scenario using the REST API.  I created the "ResourceActionRequest" object JSON and included the 2 strings as indicated in the request data, but I have no idea how to do to add the VC:VirtualMachine object to the request.  I thought maybe it was too transparent, but I get an error if I try to send the JSON without the 3rd data item.  For example, here is my "ResourceActionRequest" object JSON:

    {

    "@type": "ResourceActionRequest",

    'resourceRef': {}

    'id': '< resourceRef-id >.

    },

    'resourceActionRef': {}

    'id': '< resourceActionRef-id >.

    },

    'Organization': {}

    "tenantRef': '< label >."

    "tenantLabel': '< label >."

    'subtenantRef': '< subtenantRef > ',.

    'subtenantLabel': '< subtenantLabel > '.

    },

    "State": "SUBJECT."

    "requestNumber": 0.

    'requestData': {}

    "items": [{}

    "key": "provider-MyFirstCustomProperty."

    'value': {}

    "type": "string",.

    "value': ' blah, blah, blah."

    }

    },

    {

    "key": "provider-MySecondCustomProperty."

    'value': {}

    "type": "string",.

    "value': ' blah, blah, blah."

    }

    }]

    }

    }

    I don't know how to provide the VC:VirtualMachine in the application.  Any help would be appreciated.  Thank you!

    -Stephen

    Hey Stephen,

    I do not see the bits that I expect:

    {

    "key": "provider-MachineName."

    'value': {}

    "type": "string",.

    'value': 'vra045 '.

    }

    }

    It's vRA identity Machine which must correspond to the rear.

    Grant

  • REST API v1.0 vs v2.0?

    Hey,.

    There are two versions of the Rest API. Which should I use?

    Thank you

    Patryk

    Hi guys - please note that the REST API v1.0 is the only version supported for third-party use.  REST API v2.0 will work for you, but it may also change without notice as he has supported only function is intended to support Eloqua UI hearts, then 1.0 is static.

  • endpoint vcac rest api

    Rest API is available for the creation of endpoint - vcac? Thank you.

    I don't think you can do this via the REST API directly, but there are workflows in vRO who will do it for you. Orchestrator can be called via REST.

    The workflow looking is called "create a management endpoint.

  • REST API transport layer error

    Hello. I'm having a bad time in train to deploy openstack. When I click on finish and it starts to deploy, the following message appears: "Deploy Openstack Instance failed. "Internal error: error of transport REST API layer.

    restapierror.png

    The oms.log, despite the mistakes of java, looking at this part caught my attention:

    [2015-07 - 02T 16: 40:35.531 - 0000] Tomcat http ERROR - 32 | com.vmware.openstack.rest.RestResource: com.fasterxml.jackson.core.JsonParseException: Illegal side character (CTRL-CHAR, code 10)): must be escaped using the backslash to be included in the string value to [Source: java.io.FileInputStream@b4b6451, line: 146, column: 31]

    Did anyone had trouble like this?

    Hello everyone, thanks for all of you who have tried to help.

    I tried to mix the two real esxi hosts mixed with esxi embedded to meet the needs of the guests... and maybe I could have configured something wrong in the network.

    Then I saw a post where affinity rules could be changed by editing the file /opt/vmware/vio/etc/omjs.properties change false to true oms.disable_hosts_anti_affinity.

    In doing so I could use only two real esxi hosts, using one in each of the two groups that are needed.

    Thanks again, Marcelo.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • Using the REST API to delete the contact from the contacts list

    Hello world

    I am looking for some info for the creation of a request to delete a contact from a list of Contact using the REST API.   Here's what I have in Java where the contact id is 1 'and my list is 72'.     I'm open to responses in Java, c# or other languages.

    serverAddress = new URL ("https://secure.p03.eloqua.com/API/REST/1.0/assets/contact/list/72");

    establish communication stuff

    connection = null;

    Set up the initial connection

    connection = (HttpURLConnection) serverAddress.openConnection ();

    connection.setRequestMethod ("PUT");

    connection.setRequestProperty ("content-type", "json; charset=utf-8 ");"

    connection.setRequestProperty ("authorization", 'Basic BLOCKED');

    String body = '{\"membershipDeletions\":[\"1\']}";

    connection.setDoOutput (true);

    connection.getOutputStream () .write (body.getBytes ("UTF8"));

    connection.setReadTimeout (10000);

    Connection.Connect ();

    When I test with it I get a '400' HTTP response

    Thank you!

    Hi Noel,

    The following document describes the operations available for lists of contacts in the Rest API. Please note that we also have a project open source c# example illustrates the use of these endpoints.

    Repositories are all available to the public on Github. Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • vShield does REST APIs support JSON?

    Hello

    I tried on vShield REST API. Support the JSON content type? All of the examples I see is using xml. I am able to get JSON content. But when I try to create/update it gives me the error.

    This gives me the answer in JSON format:

    curl k u < user >: < pass > h ' Accept: application / json ' https:// /API/2.0/services/ipset/ipset-150 < ip >

    But if I try:

    curl k u < user >: < pass > x POST h "Accept: application / json ' h ' Content-Type: application / json" d "{'description': 'test FPS',"name":" FPS-test-1', 'value': '22.22.22.1', 'revision': 0 '} " https:// /api/2.0/services/ipset/dvportgroup-1265 < ip >

    I get the following error:

    The HTTP 400 - the request sent by the client state is syntactically incorrect.

    Please help me with this.

    Kind regards

    Skander

    I think that our RESTful systems only manage the entry of XML format.  This is more of a general statement that specific POSSIBLE.

    You can file a request for assistance for a feature request?  Some people asking about it internally as a possible use scenarios to see what the benefits would be there.  If you make an SR, private Message me please the SR number.

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

Maybe you are looking for