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

Tags: Database

Similar Questions

  • REST Web Service references: cannot run Google API

    Hi all!

    I learn about how to incorporate a reference to REST web service in application of the APEX. I found a video tutorial on YouTube 'to create and use a RESTful Web Service in Application Express 4.2', which seems very useful and easy to do on my sample application. The REST Web Service URL:

    http://maps.googleapis.com/maps/api/geocode/xml?address=san%20fancisco&sensor=false
    

    But my application throws an error like below:

    1 error has occurred
    
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
    
    

    After going through some posts here to OTN, I granted access as follows:

    GRANT EXECUTE ON SYS.UTL_HTTP TO ETI;
    GRANT EXECUTE ON SYS.UTL_INADDR TO ETI;
    GRANT EXECUTE ON SYS.UTL_TCP TO ETI;
    GRANT EXECUTE ON SYS.UTL_SMTP TO ETI;
    GRANT EXECUTE ON SYS.UTL_URL to ETI;
    GRANT EXECUTE ON SYS.UTL_XML to ETI;
    

    Second thing I did was, created and assigned ACL:

    begin
      dbms_network_acl_admin.create_acl (
        acl         => 'googleapis.xml', 
        description => 'Google Translate API',
        principal   => 'CONNECT',
        is_grant    => true,
        privilege   => 'connect',
        start_date  => null,
        end_date    => null
      );
    
    
      dbms_network_acl_admin.add_privilege (
        acl       => 'googleapis.xml',
        principal => 'CONNECT',
        is_grant  => true,
        privilege => 'connect'
      );
    
    
      dbms_network_acl_admin.assign_acl ( 
        acl  => 'googleapis.xml',
        host => 'ajax.googleapis.com'
      );
    
    
      dbms_network_acl_admin.assign_acl ( 
        acl  => 'googleapis.xml', 
        host => 'maps.googleapis.com'
      );
    end;
    

    All of these statements have been executed on my database with any error, even if does not help my web service reference for work.

    No idea how can I get my Google API REST Web service works, what is the thing that I'm missing here?

    At first, I wonder why use 'CONNECT' as a security principal has failed.  Then, I realized that this is a ROLE.

    General suggestion: I would stop the use of the CONNECT role, unless you created it yourself.  It will grant to the users/schemas some privileges that they do not need or shouldn't have.

    Oh... giving the ACL of a ROLE will not work.  You must grant the real schema.

    This could be the schema of analysis, or it could be the pattern that keeps the PL/SQL Package.

    MK

  • Basic authentication with the RESTful WEb service and a Web Service reference

    Hi all

    We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.

    We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:

    https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/

    And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)

    However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:

    401 Unauthorized <

    And I see:
    "The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»

    How can I provide the credentials in the Web reference or provide credentials in the Application?
    Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.

    We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?

    Thank you
    Pat

    Hello Scott,

    Thank you. There is a function for rest in the package:

    function make_rest_request(
    --
    -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob
    -- the response as an clob.
    --
    -- Arguments:
    --   p_url                  The url endpoint of the Web service
    --   p_http_method          The HTTP Method to use, PUT, POST, GET, HEAD or DELETE
    --   p_username             The username if basic authentication is required for this service
    --   p_password             The password if basic authentication is required for this service
    --   p_proxy_override       The proxy to use for the request
    --   p_body                 The HTTP payload to be sent as clob
    --   p_body_blob            The HTTP payload to be sent as binary blob (ex., posting a file)
    --   p_parm_name            The name of the parameters to be used in name/value pairs
    --   p_parm_value           The value of the paramters to be used in name/value pairs
    --   p_wallet_path          The filesystem path to a wallet if request is https
    --                          ex., file:/usr/home/oracle/WALLETS
    --   p_wallet_pwd           The password to access the wallet
    --
        p_url               in varchar2,
        p_http_method       in varchar2,
        p_username          in varchar2 default null,
        p_password          in varchar2 default null,
        p_proxy_override    in varchar2 default null,
        p_transfer_timeout  in number default 180,
        p_body              in clob default empty_clob(),
        p_body_blob         in blob default empty_blob(),
        p_parm_name         in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_parm_value        in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_wallet_path       in varchar2 default null,
        p_wallet_pwd        in varchar2 default null ) return clob;
    

    My point was that using the API makes things easier if you have to look for a solution.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • 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

  • With the AAU rESTful services

    Currently, we integrate our external web applications with the AAU using .NET services WCF to call services SOAP of the Complutense University of MADRID. We want to implement using RESTful services to integrate with the Complutense University of MADRID. Is this possible? Can you please tell me some examples/documentation for it? We are currently on gr 10, 3 of the Complutense University of MADRID, but will be upgrading to 11g Center web content. Is this something that is supported in both versions?

    Hello

    In fact the content of Toilet does not support CMIS in stand-alone mode as it supports Java / SOAP etc. The only way to understand / use rest / CMIS services are the WC portal. But here also the limitation is that the operations can be done in read-only mode only.

    So, I don't know if goes ahead with CMIS / REST based solution is the best approach.

    The only references to class cmis files are under /webcenter/modules/oracle.webcenter.content.integration11.1.1.0/

    Thank you

    Srinath

  • Unable to access REST services with Apex 5.0.3 and ADR 3.0.3 in standalone

    Hello

    I'm trying to get my APEX with ADR 3.03 installation and for the life of me can not get of work REMAINS.  When I try to run the tutorial of

    Creation and use of RESTful Web application services Express 5.0

    I get the following error in the window of standalone ADR

    Journal of the oracle.dbtools.common.config.db.ConfigurationValues 12 January 2016 17:45:16

    ATTENTION: * jdbc. MaxLimit in apex_al configuration uses a value of 10, this setting cannot be sized properly for a production environment *.

    Journal of the oracle.dbtools.common.config.db.ConfigurationValues 12 January 2016 17:45:16

    ATTENTION: * jdbc. InitialLimit in apex_al configuration uses a value of 3, this setting cannot be sized properly for a production environment *.

    12 January 2016 17:45:16 oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

    INFO: connection time-out timer inactive at the request

    12 January 2016 17:45:16 oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

    INFO: connection time-out timer inactive at the request

    12 January 2016 17:45:17 oracle.dbtools.common.config.db.DatabasePools validateApexPoolConfigView

    SEVERE: * the pool named: apex_pu reports no APEX workspaces are enabled for RESTful Services,.

    but the pool named: apex_al reports 1 workspaces are enabled.

    This implies what APEX has been installed after the Oracle REST Data Services. Run the following command, and then restart REST Oracle Data Services:

    java-jar ords.war validate - apex of the database

    APEX based RESTful Services, including those used to serve static resources will not work until this was done.

    ***

    I ran validate it as many times it changed anything.  My REST services just returns 404.

    Someone at - it ideas?

    Thank you

    Scott.

    There seems to be a bit of chatter about the 3.0.3 in particular issues. I suggest to go back a step from version and try again.

  • This allows a procedure or a pl sql func as a rest service

    Hello

    I have a simple sql pl under hr schema named full_name function which takes two parameters firstName and lastName, fullname returns

    function full_name (varchar2, varchar2 lname fname)

    return varchar2

    is

    l_fullname varchar2 (30);

    Start

    return fname | » '|| lname;

    end full_name;

    The question is how this function is enable? I find no doc on this subject. When I click right function on sqldeveloper I don't see "Enable rest" option.

    In sql developer, the development menu remains, how code block must be implemented and how to set the settings to make my function remains enabled and how can I pass these params to rest service?

    This same issue applies to enablement rest of the proc.

    Hi User595758-OC,

    User595758-OC says:

    Kiran thank you for your interest. I followed the first blog which addresses my needs specifically.

    In the case of a parameter ' /: id "notation is used in the uri path, but in my case I need to put two params fname and lname in the service definition.

    Is it possible to create a path uri as "ADR/HR/fullname? fname =: first name & lname =: lname. If so, how the definition should be?

    According to the URI scheme "departments /: id" given in the example above, blog post

    for your RESTful Web Service with two parameters, the URI scheme can be "fullname /: fname /: lname.

    Kind regards

    Kiran

  • 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.

  • RESTful service cannot insert data using PL/SQL.

    Hi all
    Spin: stand-alone 2.01 AL on OEL 4.8 in box a. VM
    Database Oracle 10.2.0.4 with Apex 4.2.0.00.27 on OEL4.8 in the VM B box.

    Measure of oracle.example.hr performed without problem Restful services.

    Cannot insert data using AL 2.0.1 but works on 1.1.4 AL.
    who uses the following table (under scheme: scott):
     
    create table json_demo ( title varchar2(20), description varchar2(1000) ); 
    grant all on json_demo to apex_public_user; 
    and procedure (scott diagram) below:
    CREATE OR REPLACE
    PROCEDURE post(
        p_url     IN VARCHAR2,
        p_message IN VARCHAR2,
        p_response OUT VARCHAR2)
    IS
      l_end_loop BOOLEAN := false;
      l_http_req utl_http.req;
      l_http_resp utl_http.resp;
      l_buffer CLOB;
      l_data       VARCHAR2(20000);  
      C_USER_AGENT CONSTANT VARCHAR2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)';
    BEGIN
      -- source: http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
      -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
      -- rather than just returning the text of the error page.
      utl_http.set_response_error_check(false);
      -- Begin the post request
      l_http_req := utl_http.begin_request (p_url, 'POST', utl_http.HTTP_VERSION_1_1);
      -- Set the HTTP request headers
      utl_http.set_header(l_http_req, 'User-Agent', C_USER_AGENT);
      utl_http.set_header(l_http_req, 'content-type', 'application/json;charset=UTF-8');
      utl_http.set_header(l_http_req, 'content-length', LENGTH(p_message));
      -- Write the data to the body of the HTTP request
      utl_http.write_text(l_http_req, p_message);
      -- Process the request and get the response.
      l_http_resp := utl_http.get_response (l_http_req);
      dbms_output.put_line ('status code: ' || l_http_resp.status_code);
      dbms_output.put_line ('reason phrase: ' || l_http_resp.reason_phrase);
      LOOP
        EXIT
      WHEN l_end_loop;
        BEGIN
          utl_http.read_line(l_http_resp, l_buffer, true);
          IF(l_buffer IS NOT NULL AND (LENGTH(l_buffer)>0)) THEN
            l_data    := l_data||l_buffer;
          END IF;
        EXCEPTION
        WHEN utl_http.end_of_body THEN
          l_end_loop := true;
        END;
      END LOOP;
      dbms_output.put_line(l_data);
      p_response:= l_data;
      -- Look for client-side error and report it.
      IF (l_http_resp.status_code >= 400) AND (l_http_resp.status_code <= 499) THEN
        dbms_output.put_line('Check the URL.');
        utl_http.end_response(l_http_resp);
        -- Look for server-side error and report it.
      elsif (l_http_resp.status_code >= 500) AND (l_http_resp.status_code <= 599) THEN
        dbms_output.put_line('Check if the Web site is up.');
        utl_http.end_response(l_http_resp);
        RETURN;
      END IF;
      utl_http.end_response (l_http_resp);
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line (sqlerrm);
      raise;
    END;
    and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:
     
    SET serveroutput ON
    DECLARE
      l_url      VARCHAR2(200)   :='http://MY_IP:8585/apex/demo';
      l_json     VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
      l_response VARCHAR2(30000);
    BEGIN
      post( p_url => l_url, p_message =>l_json, p_response => l_response);
    END;
    leading to:
     
    anonymous block completed 
    status code: 200
    reason phrase: OK 
    with data inserted. 
    Installation using 2.0.1
       Workspace : wsdemo
     RESTful Service Module:  demo/
              URI Template:      test
                    Method:  POST
               Source Type:  PL/SQL
    and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:
     
    SET serveroutput ON
    DECLARE
      l_url      VARCHAR2(200)   :='http://MY_IP:8585//apex/wsdemo/demo/test';
      l_json     VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
      l_response VARCHAR2(30000);
    BEGIN
      post( p_url => l_url, p_message =>l_json, p_response => l_response);
    END;
    leading to:
     
    status code: 500 
    reason phrase: Internal Server Error 
    
    Listener's log: 
    Request Path passes syntax validation
    Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=WSDEMO, _failed=false, _lastUpdate=1364313600000, _template=/wsdemo/, _type=BASE_PATH]
    Applied database connection info
    Attempting to process with PL/SQL Gateway
    Not processed as PL/SQL Gateway request
    Attempting to process as a RESTful Service
    demo/test matches: demo/test score: 0
    Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true]
    Determining if request can be dispatched as a Tenanted RESTful Service
    Request path has one path segment, continuing processing
    Tenant Principal already established, cannot dispatch
    Chose oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as the final candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST demo/test
    demo/test is a public resource
    Using generator: oracle.dbtools.rt.plsql.AnonymousBlockGenerator
    Performing JDBC request as: SCOTT
    Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
    INFO: Error occurred during execution of: [CALL, begin
     insert into scott.json_demo values(/*in:title*/?,/*in:description*/?);
    end;, [title, in, class oracle.dbtools.common.stmt.UnknownParameterType], [description, in, class oracle.dbtools.common.stmt.UnknownParameterType]]with values: [thetitle, thedescription]
    Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
    INFO: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    
    java.sql.SQLException: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
            at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
            at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
            at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
            at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
            at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
            at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
            at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
            at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:242)
            at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
            at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke(CallableStatementProxyFactory.java:101)
            at $Proxy46.execute(Unknown Source)
            at oracle.dbtools.common.jdbc.JDBCCallImpl.execute(JDBCCallImpl.java:44)
            at oracle.dbtools.rt.plsql.AnonymousBlockGenerator.generate(AnonymousBlockGenerator.java:176)
            at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:309)
            at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:88)
            at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:412)
            at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
            at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
            at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
            at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65)
            at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
            at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
            at java.lang.Thread.run(Thread.java:662)
    Error during evaluation of resource template: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    Please notify.
    Concerning
    Zack

    Zack.L wrote:
    Hi Andy,.

    Sorry, I forgot to post the Source that is used by the AL1.1.4 and the AL2.0.1.

    Source

    begin
    insert into scott.json_demo values(:title,:description);
    end;
    

    It is a failure during insertion?
    Yes, he failed in the insert using AL2.0.1.

    If the above statement produces the following error message:

    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
     
    

    That gives me to think that a character is not printable (notice how there is anything between the quotation marks - "") worked his way in your PL/SQL Manager. Note how the error is reported to correspond to a column 74 on line 2, line 2 of the block above has 58 characters, so a pure assumption somehow, there is extra space on line 2, which confuses the PL/SQL compiler, I suggest retype PL/SQL Manager manually and see if that solves the problem.

  • 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

  • Apex and restful Services

    What I have to install apex listener to use Restful Services.
    We are on apex 4.1 and use apex modplsql.
    I have to also install listener apex in order to use restful services or would it not just enougt to Update 4.1 in point 4.1.1 and I can continue to use apex 4.1.1 with modplsql.

    Thank you
    Kumar

    Hi Kumar,

    APEX listener 1.1 (including your 1.1.4 installation) has a different implementation for RESTful Web services. You can access the configuration using own configuration of the APEX listener ("' / listenerAdmin" ").
    The new RESTful implementation integrated at the APEX is provided with the new APEX 2 listener, which is still in the phase of early Adpoters. This is a patch for APEX 4.1 4.1 be able to use it as well. See the installation guide for the current version of EA for more details.
    Since the APEX 4.2 was released today, I would recommend to upgrade to this version instead of patch 4.1 if you have anything that would prevent you from upgrading. And I expect APEX earphone 2 will be released soon as well, even if it has not been an official announcement yet.

    -Udo

  • I'm about to change web hosting service, but not the email addresses - how to back up my archived emails?

    I am changing web hosting services but will keep the areas and associated e-mail addresses. I don't want to lose the mails I saved in folders. They will remain available after I have change the host site or I have to save elsewhere? If I need to save, what will do?

    It is IMAP

    With IMAP, all mail is handled on the server. So, to keep all your mail, you'll need to save all messages in your account "local folders".

    First of all to replicate the folder structure on the server in your 'local folders '. You will need create these folders manually.

    Select all messages in a folder on the server (press Ctrl-a). Right-click the selected messages - copy - choose the corresponding destination folder

    I would like to start with a single message to test the procedure. If you have a big no. messages, in pieces, do not copy thousands of messages at once. After each copy action, verify that messages have in fact been copied on.

    Repeat the procedure for every folder on the server.

    Once your new account (IMAP) works, you can download the messages to the new server.

  • How can I configure Mozilla to accept connections on port "The World Wide Web (HTTP) service"?

    When you try to embed a video in PowerPoint 2013, the "Sorry we are having some problems of temporary service" message.

    In research on the problem to Microsoft. com, the following message is received: Mozilla is not configured to accept connections on port "The World Wide Web (HTTP) service."

    Hmm... PowerPoint must use Windows to connect to the internet and not Firefox.

    What method do you use?

    (1) insert > video > video online

    Apparently, there was an update this month that allows this, as described in this message of support (see the top of page answer right after the question): embedding video in powerpoint 2013 - Microsoft YouTube community online

    Here's how it should work after the update: Insert or link to a video on YouTube - PowerPoint

    (2) developer > control > Shockwave Flash Object

    As documented on other sites, such as: https://www2.palomar.edu/pages/atrc/2013/09/17/how-to-embed-youtube-video-in-powerpoint-2013/

  • Why I get this message at startup when windows live mail XP: Sorry, we can not synchronize your calendar because the web calendar service is not...

    December 2011 this message continues to apear after startup or sync Windows Live Mail XP. Sorry, we can not synchronize your calendar because the web calendar service isn't available right now. We will synchronize your calendar as soon as the service is again available. My Dell DIME521 and software are up-to-date, please help...

    Hello

    You can post your queries to Windows Live Mail to newsgroups, because the problem is with Windows Live mail.

    http://windowslivehelp.com/product.aspx?ProductID=15

  • Unable to connect to the web proxy/services

    Unable to connect to the web proxy/services used for officejet pro 8600 as well as using verizon fios actiontec router.  I tried wireless and ethernet.  Connectivity seems good.

    Resolved.  Port forwarding blocked by another application of verizonwebcamera problem.

Maybe you are looking for