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

Tags: Java

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 RESTful web service - by passing the values of URL parameters

    Hello

    I'm working on a RESTful web service call. It works fine if I encode a URL in the format below (it is not the actual URL, just for your information):

    http://ws.webserviceproducer.com/KEYVALUE/FUNCTIONVALUE/COUNTRY/CP/champs

    where KEYVALUE is required by the Web service provider text

    FUNCTIONVALUE is again fixed and determines what the result is returned in the format

    COUNTRY is the code of the country, e.g. UK, so would need to be replaced by a variable

    Postcode is the postcode for example PO14 2JN or postal code and must be replaced by a variable

    field text is again fixed and is used to determine the output format.

    My question is simple how can I replace the two fields, COUNTRY and POSTAL code with variables of the elements of the apex.

    I tried using the headers HTTP REST and the REST of the settings entry but without any luck so far. I tried substitution of variables directly in the URL also without success.

    Thank you

    Chris

    Have you tried this APEX_WEB_SERVICE ?

  • APEX 4.2.3 consume the web service returning a PDF problem

    Using APEX 4.2.3 on a database of Oracle 11 g R2, Firefox 31.7, we ask a service web restful one before the process of page header, to download a PDF Code file used:

    declare

    CLOB l_clob;

    l_blob blob.

    l_sql_delimiter varchar2 (30);

    l_lang_context integer: = DBMS_LOB. DEFAULT_LANG_CTX;

    l_warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;

    l_dest_offset integer: = 1;

    l_source_offset integer: = 1;

    l_Json VARCHAR2 (4000);

    Start

    l_clob: = null;

    DBMS_LOB.CREATETEMPORARY (l_blob, true);

    -Generate here the content of your file in l_clob.

    hr_Pkg.Security_Termination_Form(:P4200_PERSON_HR_ID,l_Json);

    hr_Pkg.call_rest_webservice (l_Json, 'TestME.Pdf', l_Clob);

    Logger.log ('CLOB SIZE IN PAGE: ' | sys.) DBMS_LOB. GetLength (l_clob));

    sys. HTP.init;

    sys.owa_util.mime_header (' application/pdf', FALSE, 'UTF-8');

    sys. HTP.p ("Content-length: ' |") sys.DBMS_LOB.GetLength (l_clob));

    sys. HTP.p ('Content-Disposition: attachment; filename = "TestME.Pdf" ');

    sys.owa_util.http_header_close;

    () DBMS_LOB.converttoblob

    dest_lob = > l_blob,

    src_clob = > l_clob,

    amount = > DBMS_LOB. LOBMAXSIZE,

    dest_offset = > l_dest_offset,

    offset = > l_source_offset,

    blob_csid = > DBMS_LOB. DEFAULT_CSID,

    lang_context = > l_lang_context,

    WARNING = > l_warning

    );

    Logger.log ("SIZE of BLOB: ' |") sys. DBMS_LOB. GetLength (l_blob));

    sys.wpg_docload.download_file (l_blob);

    apex_application.stop_apex_engine;

    exception when others then

    sys. HTP. PRN (' error: ' |) SQLERRM);

    apex_application.stop_apex_engine;

    end;

    We run in the question, that the PDF file is empty with the exception of a few fill-able fields that must be completed in advance by the call to the web service.

    When you run the web service directly from the browser, the PDF that is generated is very well and seems to be complete. And the size of the file that is created as the clob from the web service call is exactly the same size it as the pdf file received directly from the web service.

    When we compare the size of the clob to the size of the blob, we see that the blob is slightly larger in size than the clob.

    Any suggestions? (Sample code for posting to the hosted site for Oracle will not work because you can not call the hosted instance web services and web service is hosted BEHIND our firewall).

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

    Problem is resolved... As opposed to the use of the APEX apex_web_service.make_rest_request must use the utl_http.begin_request and then treats the query returned through utl_http. READ_RAW and who then saving it in a temporary BLOB.

    Maybe when we update to the APEX 5, I'll see if I can deal with it using standard APEX packages...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

  • What happened to the application Panel in Dreamweaver (consume the web service)?

    Pre-Creative cloud, I had used Dreamweaver to create a code to consume external web services. It was, I believe, the Panel "Applications".

    How to use Dreamweaver CC to consume a web service? I'm not finding anything that contributes to this day.

    Thanks in advance,

    BW

    Cold Fusion support has been removed from the DW with the release of CC 2013.

    The last version to support CF was Creative Suite 6 (CS6 2012).

    If you are a subscriber to paying creative cloud, you can fall back to your Creative Cloud Desktop App CS6 clicking applications > all THE APPS, scroll down, click on the PREVIOUS VERSIONS.  CS6 will appear in the list options.

    Nancy O.

  • 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

  • How to consume the web service using PLSQL in 11g

    Hello

    I created a site using jDeveloper, web services which when I put in the web browser and press enter, it will display the settings screen and when I pass the value for the parameter, and then it displays the output of the XML returned by the PL/SQL (called in the Web Service) package. Now, I want to call this webservice in PL/SQL and read XML data and fill in the staging table. Can anyone suggest me how to achieve this functionality by using Oracle PL/SQL

    I use the database 11g and jDeveloper Version :-Studio Edition version 10.1.3.0

    Thank you very much in advance.

    Vijay

    The WSDL file describes the web service.

    To obtain the WSDL, you enter the URL of the web service and add some ? WSDL to the URL. This indicates the web service to return to its definition.

    For example

    URL of the Web Service: http://wsf.cdyne.com/WeatherWS/Weather.asmx

    WSDL URL: http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

    When you read (using 'web browser' UTL_HTTPpackage) the XML response from the web service, read as strings (PL/SQL varchar2, size 32 K max).

    You should read the answer as the strings, then writing/writeappend these channels in a CLOB (using the DBMS_LOB package). If you are VERY sure that the web service call ALWAYS returns an XML of less than 32 k, you can skip using a CLOB.

    Whatever it is, read you the response from the web service in the form of text (such as plain text, it is what is sent). The next step on your part is to parse text into an XML DOM (document object model) - and storing the DOM in an Oracle XmlType variable.

    When in a DOM, you can use Oracle XML functions to extract the attributes and values of the key element of the response from the web service.

  • Client application to consume the web service with security

    I need to write a simple client to access a WS.

    I can't do things

    1. Change the server
    2. Add external jars

    The customer will be part of a command line call and will work as a stand alone.

    I searched all day and have found hundreds of examples of wave, too complex, based mainly on SOAPHandler (who tells me that I need to install the server components that I can't do)

    I grasp the General requirements but finds it difficult to know how to add security features to the header.

    What should I do to add the chips of user name and password in the header?

    It is where I am so far.

    package findingLetter;
    
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    
    public class getPOC {
        public getPOC() {
            super();
        }
        public List<String> lookup(String lenderid, String url, String user, String pw) throws SOAPException {
            List<String> contactInfo = new ArrayList<String>();
            SOAPMessage message = MessageFactory.newInstance().createMessage();
            SOAPHeader header = message.getSOAPHeader();
            header.detachNode();
             
            SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
            envelope.setAttribute("namespace","http://www.siebel.com/xml/FHA%20Lender%20Summary%20Request%20IO");
             
            SOAPBody body = message.getSOAPBody();
            QName bodyName = new QName("LenderSummaryRequestIo");
            SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
            SOAPElement symbol = bodyElement.addChildElement("Institution");
            symbol.addTextNode(lenderid);
             
            SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
            SOAPMessage response = connection.call(message, url);
            connection.close();
             
                    SOAPBody responseBody = response.getSOAPBody();
                    SOAPBodyElement responseElement = (SOAPBodyElement)responseBody.getChildElements().next();
                    SOAPElement returnElement = (SOAPElement)responseElement.getChildElements().next();
                    if(responseBody.getFault()!=null){
                        System.out.println(returnElement.getValue()+" "+responseBody.getFault().getFaultString());
                    } else {
                        System.out.println(returnElement.getValue());
                    }
             
                    try {
                        System.out.println(getXmlFromSOAPMessage(message));
                        System.out.println(getXmlFromSOAPMessage(response));
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
            return contactInfo;
        }
        private static String getXmlFromSOAPMessage(SOAPMessage msg) throws SOAPException, IOException {
            ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();
            msg.writeTo(byteArrayOS);
            return new String(byteArrayOS.toByteArray());
        }
    }
    

    Here's the code to add the security header.

    public List lookup (user string lenderid, String url, String, String pw) throws SOAPException {

    ............

    SOAPHeader header = message.getSOAPHeader ();

    If (header == null) {}

    Header = envelope.addHeader ();

    }

    SOAPElement headerElement = createSecurityHeader (uName, pWord);

    soapHeader.addChildElement (headerElement);...

    ........................

    }

    Private Shared { SOAPElement createSecurityHeader (uName, pWord String String) throws SOAPException

    SOAPElement UsernameToken = null;

    SOAPFactory SFactory = SOAPFactory.newInstance ();

    UsernameToken = sFactory.createElement ("wsse: UsernameToken", "", WS);

    SOAPElement Username = sFactory.createElement ("wsse:Username", "", WS);

    Username.setValue (uName);

    UsernameToken.addChildElement (Username);

    SOAPElement Password = sFactory.createElement("wsse:Password","",WS);

    Password.setValue (pWord);

    QName qname = new QName("","Type");

    Password.addAttribute (qname,"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" ");

    UsernameToken.addChildElement (Password);

    SOAPElement wsseSecurity = sFactory.createElement("wsse:Security","",WS);

    wsseSecurity.addChildElement (UsernameToken);

    Return wsseSecurity;

    }

  • 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

Maybe you are looking for