Dynamic invocation on the REST Services

Hello

I'm new OAG. Could not find documentation on money issues. Can you please provide inputs.

Question:

1 would it not possible to use the single policy to call some external services from the REST. We want to externalize the URL in activity 'Routing-> connect to URL'.

2. in some cases, we want to set the target URL based on the Relative URL of the application. Is this possible?

Thank you

Rigault.

Hi Ramana,

1. Yes, you serialize just connect multiple URLS + Connect filters and they will be run in the order. Just be aware that any response will be stored in the body.content attribute and will be replaced with every connection to the URL filter if you need to store the answers to a different attribute if you use a lot of them in order.

2. you can get the original path by using the selectors ${http.request.uri} or ${http.request.path}

Difference is that URI will be included URL parameters and path have stripped them.

Documentation:

Name: http.request.uri

Description: Contains the URI on which the HTTP request is received by the API

Server (for example, / test? location = dublin).

Name http.request.path

Description contains the path on which the client HTTP request is received

by the server of the API (for example, / test).

See you soon,.

Stefan

Tags: Fusion Middleware

Similar Questions

  • Is it possible to use a Type of personalized content for the REST service operation messages?

    I try to POST to the third party, documentum of EMC, REST service using service broker in 8.53 peopletools integration operations. Unfortunately, the third party only accepts a content type of 'application/vnd.emc.documentum+json', which I could not send PeopleSoft and use a message definition at the same time.

    In my service operation, if I do NOT fill the request message I can POST to the URI with the such custom content type defined in the property page of the connector in the routing. I have not found a way to do it and also present JSON content on demand, since there is no message associated with the operation. Is it possible to include in this type of message content without using a request message?

    If I DO not fill the request message I can't POST successfully because the message content-type of "application/json" gets passed as the content-type instead of the value in the property page of the connector from the routing. Is it possible to change the content type during the use of a message definition?

    Thank you

    Paul

    Hi Paul - you can turn on tracing by using the on demand connection as follows:

    1. on the routing set detail header and detail "journal".

    2. Main Menu > PeopleTools > Integration Broker > Service Operations Monitor > Administration > control installation Options

    -Enable logging of the bridge

    -On the registration of demand = 5 (to enable detailed logging)

    Note: On request connection only works for the outgoing synchronous Services. In this case, we should be fine. You will find the by transaction log file on your gateway web server... / applications/peoplesoft/PSIGW.war/WEB-INF/.

    I did it for one of the REST service operations my test (I'm on 8.52.22). I have my content type of message the value application/json to the operation of the service page. On the routing page, I added a connector property content-type=application/vnd.emc.documentum+json.

    Here are the results on the integration gateway logs:

    Message-ID:<-.................@nowhere>

    MIME-Version: 1.0

    Content-Type: multipart/related; Boundary = "Integration_Server_MIME_Boundary."

    Content-ID: PeopleSoft-internal-Mime-Message

    PeopleSoft-ToolsRelease: 8.52

    -Integration_Server_MIME_Boundary

    Content-Type: text/plain; Charset = UTF-8

    Content-Transfer-Encoding: 8 bit

    Content-ID: IBInfo

    Content-Disposition: inline

    Sync There ... * deleted for security purposes *... ContentSection0text/plainN

    CREATE5000000000000

    -Integration_Server_MIME_Boundary

    Content-Type: text/json

    Content-Transfer-Encoding: 8 bit

    Content-ID: ContentSection0

    Content-Disposition: inline

    username = * collected for security purposes * & password = * deleted for security purposes *.

    -Integration_Server_MIME_Boundary-

    The Content-Type of the delivery is sent as HTTP Connector of the target and the content of the message (text/json) Type property is always persistent (see the text in bold above). You can compare logs between your two scenarios (with and without the message in the POST) and see if you find something interesting.

    I even tried the following code to see if that helps, but I get the same results.

    & MSG. IBInfo.LoadRESTHeaders ();

    / * Adds additional headers not defined on the route * /.

    REM & MSG. IBInfo.ConnectorOverride = True;

    bRet = & MSG. IBInfo.IBConnectorInfo.AddConnectorProperties ("Content-Type", "application/vnd.emc.documentum+json", % Httpentete);

    & RESP = IntBroker.SyncRequest % (&MSG);)

    I'm working on a similar project at this moment where I'm integrating perceptual Nolij Web RESTful API (Document Management System). I had to resort to using a http client base (common of apache) java instead of broker of integration because of the similar frustrations with REST (cookies are lost, unable to deal with raw binary data in a response message, etc.).

    Benefits: Java provides total flexibility.

    Cons: As we are bypassing framework Integration Broker, we need everything (error handlng, logging, etc.) do it ourselves.

  • How to test the RESTful service?

    Hi all!

    Work on the REST of the APEX services, my query is with respect to the link below:

    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35128/restful_svc.htm#autoId6

    In the link above, topic "5.5.2 data recovery based on a parameter (employees / {id})'-> points 1.» -at-.8 are covered.

    Stuck on the point 9. Click the Bind Variables value. ", I can't find the link on this page in my Application Express 4.2.0.00.27 development environment.

    Kindly help to locate this link so that I can test my service?

    For clarity, please click the link below to the image

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/cloud/dbservice/restfulws/images/t2_02.jpg

    The cursor of the mouse is placed at the end of the page on any two buttons 'Test' & 'The Bind Variables value', my development environment shows not these buttons. Someone knows why this phenomenon happens?

    -Krishna Verneuil

    Well, I had like this on mine.

    For the record, you need to update you listener apex with the new apex_listener.2.0.5.287.04.27 version, which takes in charge the RESTful services. By upgrading, you will see these two missing buttons 'Test' & 'Set Bind Variables', to test your newly created service.

  • Consume the Rest Service

    Hello

    JDeveloper Version 11.1.2.4.0.

    What is the best way to consume the REST API of JDeveloper. Found a note for mobile

    Java / Oracle SOA blog: use JSON-REST in ADF Mobile

    for example.

    Best way to consume REST below

    https://maps.googleapis.com/maps/API/geocode/JSON?address=1600+Amphitheatre+Parkway, mountain view +, + CA & key = API_KEY

    Thank you

    JIT


    Hello

    If you want to consume it from a mobile phone or a web application. For mobile, you have found a trick for web applications, you can use

    1 REST control based XML data REST (11 g R2 starting) services

    2 Jersey client API REMAINS in a JavaBean (which then you can expose as a POJO data control)

    Frank

  • Role of the user of "SQL Developer" rESTful services

    Hello

    I am following the tutorial ""REST Data Services Installation, Configuration and Development Guide " "

    But it seems that I can't create a user with the role of "Developer SQL". I am running the below command, I specify the password. Then called the credentials file is created.

    But I can not yet connect SQL Developer using development REST with this credential.

    java-jar ords.war user test_developer "SQL Developer"


    There is no such role when I manually search for in the database. How can I create it?


    Maybe I should create a thread separate, but my second question is, why I need for RESTful to work services have both apex_al.xml and apex_rt.xml conf files?

    For what I understand, it is not necessary to have installed to use the services of APEX RESTful?

    dmdamiyo wrote:

    I am following the tutorial 'REST Data Services Installation, Configuration and Development Guide.

    But it seems that I can't create a user with the role of "Developer SQL". I am running the below command, I specify the password. Then called the credentials file is created.

    But I can not yet connect SQL Developer using development REST with this credential.

    java-jar ords.war user test_developer "SQL Developer"

    There is no such role when I manually search for in the database. How can I create it?

    As mentioned by rwendel is not an Oracle database user / role you create, but it is specific to ADR.

    You can share the link in the documentation where you follow this step?

    If you want to install ADR using Oracle SQL Developer and use the various functions of the ADR 3.0, you can watch the following for quick information on ADR 3.0 sessions:

    Maybe I should create a thread separate, but my second question is, why I need for RESTful to work services have both apex_al.xml and apex_rt.xml conf files?

    For what I understand, it is not necessary to have installed to use the services of APEX RESTful?

    Yes, Oracle APEX is not necessary for the accommodation of RESTful Web Services with ADR 3.0, it was necessary in pre ADR 3.0 versions.

    Reference:

    The 'apex_al.xml' is the configuration user DB APEX_LISTENER and 'apex_rt.xml' matches the configuration of the APEX_REST_PUBLIC_USER DB user. You don't have to configure these users (if you do not want to use Oracle APEX). These users are necessary only if you want to use the RESTful Services with Oracle APEX.

    Reference: http://docs.oracle.com/cd/E56351_01/doc.30/e56293/config_file.htm#BABHAJDE

    If you do not want to use Oracle APEX, then just configure the users ORDS_PUBLIC_USER and ORDS_METADATA.

    Reference: http://docs.oracle.com/cd/E56351_01/doc.30/e56293/install.htm#CHDGACJC

    Kind regards

    Kiran

  • [MAF - AMPA] Strange behavior of the MAF with REST service

    Hi MAF Experts.

    I just noticed that there is a strange behavior in my application of the MAF. The first loading of the page, amx:page does not make its contents (of REST). However if I kill the app and relaunch the app, content appears.

    Pattern:

    1. Start of the CRG App
    2. Opening of session
    3. Dashboard (the content is rendered)
    4. Go to any other aspect (lets say a list of products)
    5. Open product list (content do not get returned)
    6. Kill the MAF application
    7. Start of the CRG App
    8. Dashboard (the content is rendered)
    9. Go to the product list
    10. List of products (content gets rendered)

    I put a few breakpoints on EntityCRUDService and RestPersistenceManager.

    So far it return the list of entities and display the correct data (from watches in debug mode)

    Last thing I noticed is the red color below. She defined the EntityList with the new value of REST (This displays a correct value).

    TaskExecutor.getInstance (.execute (isDoRemoteReadInBackground ())

    , () -> {

    Auto Sync all actions pending first, pass false for inBackground because

    We want to process actions pending before the reading distance

    getDataSynchManager (.synchronize (false));

    The list of entities < E > = executeRemoteFindAll();

    If (entities! = null)

    {

    When an error occurs (for example server is not available, the method returns the value zero)

    setEntityList (entities);

    }

    });

    Any suggestion?

    All the rest service are configured with AutoQuery = true in the persistence - mapping.xml

    See you soon,.

    Hendry

    Hendry,

    Thanks your testcase, I was able to understand the problem.

    It turns out that MAF 2.1 has problems dealing with the advanced way in which AMPA running background tasks with the help of a thread in all of features.

    We have slightly modified the implementation in AMPA to use one thread per function and now the update issue is resolved. I sent you a link to new construction.

    We will publish the new generation soon on GitHub so that others can benefit in the same solution.

    Steven Davelaar,

    Oracle Mobile A-team.

  • I hear a lot about several programs for maximum protection, how can I use the firewall of cases AND stop the rest of loading or starting at startup?

    At the start of my acer aspire desktop from walmart (not saying not just because his Wal-Mart like this cant be) I noticed that mcafee takes up some space, whenever she starts up. I only need the firewall and what is needed to run just the firewall. I use panda antivirus for viruses and malwarebytes antimalware for this. I would like to know, step by step if possible... How to stop or 'block' additional cases of services from the very beginning that it interferes with the pandas scanner, spikes in CPU when I don't need to use it and occationally crashes my computer by overloading, my ram is 500 MB and it started happening a few days out of the box. Once I have shut down the computer runs faster, but I lose my firewall, so I don't really wish to go unprotected, but really not need the rest services case as I hav more to compensate. The only thing I want to know here's how to get to where I can block all mcafee services that do not affect its ' firewall service while preventing others from starting in the first place. I don't mean that I found through research on the internet because they do not explain how it's done and avoid mentioning insofar as I've seen. If the answers there, I give credit to those who has asked and answered before, I just need help. :'(c'est un windows 8.1 je crois, mais si cela semble éteint juste me dire où regarder vers le haut, de toute façon je doute qui aura une incidence sur ma question trop.)

    I don't know if this is possible. If it was me, I remove McAfee completely and just use Windows Firewall. It is the only firewall I have used for ten years and never had any problems.
     
    How to uninstall or reinstall supported McAfee products using the McAfee Consumer Products Removal tool
    http://service.McAfee.com/FAQDocument.aspx?ID=TS101331
     
     
  • Expose a report through Apex 5.0.2 and ADR 3.0.2 RESTful service

    Hi all

    Currently, I am trying to expose a report through RESTful service and have used the following documentation to the for do:

    https://docs.Oracle.com/database/121/HTMDB/advnc_web_services.htm#HTMDB27000

    I can't find where and how expose the report.  My page is public, and the security to allow RESTful services instance is set to yes.  I have an interactive report and a classic report, but none of them seem to have the option.

    I use Apex 5.0.2 and ADR 3.0.2.294.08.40.

    Does anyone know how to do this?

    Thank you

    Daniel

    Hi Daniel,.

    If it is a classic report, you have the instance parameter to allow the Restful Services and the page is public, you must change the page using the view component inherited (not Page Designer). In the attributes section you will find the option to activate the relaxing access report.

    Kind regards

    Jason

  • Web - REST service reference

    I have a REST GET service that supports p1 and p2 as a parameter and returns a base line. I am trying to build the web service reference. {I select REST as the webreference and then give it a meaningful name and attachment of the URL with the URI suffixed (2 settings) for example http:xx.xx.xx./xyz/customer_number/{customer}/salesrep_number/{salesrep_number}, no proxy and I select the name of the GET, JSON, no output basic authentication method. Now I have 2 parameters - salesrep_number and customer to define and try to run a test and he complains not FOUND, are not just URI syntax since it is what has been set in the RESTFUL Web service and it works from the workshop/Restful SQL service but fails under References webservice under shared components. Any help is appreciated.

    Hi P.T.

    You mentioned 'he doesn't like the character '.' at the end.' -What exactly do you mean by "it"?   Just to be clear, you don't need to modify the RESTful Service module that you defined under SQL Workshop > Services RESTful - which must remain in its URI template using {client}.  The & nom_element. I already mentioned the syntax is specifically designed for the URL you set in shared components > a Web Service reference.

    Lets try this - take a look at the example of Service default RESTful, oracle.example.hr, installed in your workspace under SQL Workshop > RESTful Services.  In this module, you will see a empsec / {empname} example.

    1. If you test this example with the button 'Set Bind Variables' and provide a valid employee of the KING name in the value field, click on test to make sure that you managed to get the JSON result.  Take note of the URL generated for this test.
    2. Now access your application and create a web service reference based on this particular example, through shared components > Web Service References > Create.
    3. When executing step by step through the wizard, set the URL to the empsec / {empname} example, but replace {empname} with & EMPNAME. for example http://hostname/services/hr/empsec/&EMPNAME.
    4. Now, run the Wizard Page, and then select form > form report on Service Web-> step through the wizard, selecting the web reference service that you created in step 4 and click Next until you reach the last step of the wizard, where you will then click on create to complete.
    5. Change the page created, and then run the wizard to create a new item and create a new item of type page text field, with the name EMPNAME - to correspond with the binding reference variable in your URI.
    6. Run this page, enter KING in the text field and click on submit.  The region of results on the page should then be filled with the JSON result returned by the web service.

    If you can get this example to work, you will be able to compare the empsec / {empname} example with your own, which should hopefully help identify all differences that may ask questions.

    Kind regards

    Hilary

  • How can I disable only restful service? On Apex listener

    Hi all:

    For security reasons, I want to turn off the data service based in some of the listener apex server and activate the application only service. How can I do?

    Support gives the solution:

    How to disable the restful services is NOT to configure pools of connections AL and RT in the ADR/Rest Data Services. (APEX Listener).
    Remove or rename the files apex_rt.xml and apex_al.xml available in the configuration (conf) configured against ADR directory used by these bodies / the listener of the APEX.
    This way ADR / the APEX listener will not be able to deliver the REST requests to the database and return 404 to the end user

  • A rESTful Service: display file BLOB in DB as a RESTful service?

    Hello

    With Oracle Cloud we can expose the data as RESTful Web Service, but how about exposing BLOB... we need to generate a link to this file that is stored in the DB.

    To make it clearer:

    Two Tables:
    Properties (Property_ID number PK, Project varchar2(40), Property_number varchar2(20) ...)
    Images  (ID number PK, Property_ID number FK, content blob, 
    mimetype varchar2(200), filename varchar2 (200), filesize varchar2 (200))
    And I want to expose this request as repairman:
    Select p.property_id, p.project, p.property_number, i.content 
    from properties p inner join images i on (p.property_id = i.property_id)
    Usually we use: [url http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#CHDICGDA] apex_util.get_blob_file_src, but that one must be called from a session valid apex! ("i.content" in this query should give a link).

    How can do us?

    One other point, because we expose the data in JSON format:
    Suppose I have a property with 10 images, so it is meaningless to get 10 rows for the same property just to give a different image. I think we need another (nested) level for images!

    I hope my point is clear,

    Thanks in advance...
    Fateh

    Hi Fateh-

    Good question. You identify the source as a multimedia resource type and use a SQL statement with the primary key and the BLOB column. When you use multimedia resource, you are basically saying your Cloud Service database not to marshall the data, simply send it - which is exactly what you are looking for.

    Thanks to this application you will need a separate SQL call for each retrieval of BLOB. However, you may be able to use a PL/SQL block as the endpoint for the RESTful Service and take care of several BLOB in the processing block.

    I hope this helps.

    -Rick Greenwald

  • Dynamic parameters RESTful Service by POST method.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    Currently the RESTful in post method Service have 2 static parameters such as P1 and P2.

    for example

    BEGIN

    INSERT INTO INSERT_TABLE (LOG_DESC, LOG_ID)

    VALUES(:P1,:P2);

    COMMIT;

    END;

    How to pass several parameters in the HTTP call when the parameter is unknown? Dynamic parameter is possible?

    Thank you

    MINDMAP thanks for your quick response. I must have misunderstood you. Please go through my description of the issue update. I created another question thread link is https://community.oracle.com/message/12612734#12612734

    Thank you

  • With regard to the ADF Restful Services in 12.2.1

    I went through restful ADF services article in the guide of the developer and some examples, but its only contours:

    (1) how to expose methods standard and custom Vo as a restful service. There is no mention of how to expose the custom method AM restful service, is it possible from now with automated wizard provided by ADF 12.2.1 for restful service?

    (2) a typical use case is to write a function which is given to couple view of your and do some massaging until it can be written in a custom am method all your available, but how expose it as a restful service, the only option I see to this effect in 12.2.1 is to use SOAP service if I use automated restful services Wizard and do not write service JAX - RS scratch code creating an instance module root of service application, but our architecture warrants to use rest AND JASON architecture style.

    If anyone has idea about this or has any comments/blogs about it in 12.2.1, please let us know!

    Concerning

    Mukul

    In the 12.2.1 version we still have no support for the exhibition AM level method REMAINS the use of assistants to REST.

    (You could build a Java class that access the AM and then expose this class REMAINS).

    If it is the important scenarios for you please contact the Oracle Support and add your request to the emergency that follows this feature - 16851420.

  • Basic authentication for the OSB exposed as a Rest Service

    Hi all

    We expose OSB Service as a Rest Service to the customer. Need to add basic for the client authentication. In the HTTP transport Service proxy, we have enabled basic authentication. However, we do not know how to proceed. We want to take care of the authentication section in the BSO it itself, so what should be our next step for her? How to extract the authentication information for the request and where to add the check? Is there an easy way to integrate with authentication AD in OSB?

    Hello

    OSB will do authentication for you, no need to make something of yourself. Just move the radiobutton control to basic authentication. It uses the Weblogic domain in the to do. OSB will get the name of user and password of the authentication HTTP header property and validate it against weblogic. If weblogic confirms as a name of user and password valid, OSB running the proxy. Any valid user in weblogic will do, there is no authorization: so no way to limit to a specific user. This means that to connect to AD you must configure using Weblogic. In the field of weblogic, you can add any AD or any LDAP as authenticator.

    With the help of its also possible to validate on a particular user using the UserToken GOSA strategy. You can also use GOSA do BasicAuthentication by applying the specific policy. But GOSA only supports basic over SSL authentication, not simple basic authentication.

    By the way: for BA on a Business Service: you must create a ServiceAccount object with the specific user name password and assign to specific BusinessService. You can create a surveillance society by environment, each in a particular folder of dev/test/ACC/prod. Then use a customization file to switch between them.

    Kind regards
    Martian

  • What value for p_print_server when you use the Rest Data Services as a print server?

    Hello

    I have my report server on the internal workspace defined as BI Publisher URL as default... It works for my BI Publisher reports.

    I have 2 reports who need to use the rest Data Services FOP engine and use GET_PRINT_DOCUMENT function Signature 4

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146

    For these 2 reports, I need to pass a parameter to p_print_server. The documentation describes this as the URL for the print server

    My question is, how to find the URL for p_print_server when I want to use the rest Data Services FOP on ADR?

    I can not put as NULL as at the time, it will use the default BI Publisher URL and then these 2 reports will not work

    Moreover, when I put the server reports on internal workspace as 'Rest Data Services', my two reports work fine, but not when I put is as URL BI Publisher - which is necessary

    Help, please

    Concerning

    Matt

    Hi Matt Mulvaney,

    Matt Mulvaney says:

    I already have the correct configuration to be able to produce reports FOP including two steps you mentioned. This set works very well when I put the "Print server" preference in the settings of APEX Data Services Instance remains - and reports can be produced. But as I said, this must be set to a URL of BI Publisher.

    If you use "Print server" as "Oracle BI Publisher" then the p_print_server parameter would have been:

    http://myserver.mydomain.com:8888/xmlpserver/convert

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (you can also use the IP address)
    • Print Server Port: 8888 (depending on what your BI Publisher Server uses port)
    • Print server script: / xmlpserver/convert

    Similarly, if you choose "Print server" as 'Oracle REST Data Services', the instance settings don't ask questions on the print settings, but internally it uses the following parameters and the p_print_server parameter is:

    http://myserver.mydomain.com:8080 / ADR / _ / fop2pdf

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (host computer on which ADR is hosted)
    • Print Server Port: 8080 (the port used by what ADR/APEX Forum)
    • Script of the print server: / ords / _ / fop2pdf (this is not disclosed by APEX/ADR documentation, but as mentioned by Marc Sewtz in the following thread)

    Reference: Re: Apache FOP disappeared by Oracle APEX installable APEX 5.0 and 5.0.1 APEX

    Kind regards

    Kiran

Maybe you are looking for

  • Vista SP3?

    A few days ago I noticed that Vista has shown that SP3 installed. I tried to install SP2 (for the 1st time) but the system said: "a newer version of Windows Vista Service Pack 2 is already installed." That's all.Interesting that Windows Update has no

  • HP 15: My 15 HP does not

    Here, dear I have been using my HP laptop for three months now and he was perfectly fine, but yesterday was different, first it got stuck in the start menu, when it passes, I couldn't do anything, could not open any file and he also failed to return

  • UAC problem - I can not open all files or do anything that requires user account control

    Hi, I have a very annoying problem. I did something to my laptop (which is come with Windows Vista, by the way) and now I can't open any files or do something that requires UAC. When it arises, he asked an administrative password and there is no box

  • Email account for the work of blackBerry Smartphones

    How can I set up my e-mail account Novell Groupwise on my Blackberry Pearl 8130? I install all my POP3 accounts. Any help would be greatly appreciated! Thank you adgonzo6

  • Bridge CC, problems to read exr files

    HelloI have aways only works with bridge by selecting the exr files, my client is sendig to me... no problems until now.the latest version of bridge shoes a dialog box to choose how treat the Alpha channel:'OpenEXR read viedeo' with the choice betwee