How to change parsing schema for REST

Hi all,
I'm trying to test the new REST Webservice feature, but this leads to an error:
Using Apex 4.2.1.00.08, Listener 2.0.1.64.14.25 I set up a simple WebService (method: GET, format: JSON) which
querys a table.
When I try to test my webservice (using "Test" button) the following error is shown:
Request Path passes syntax validation
Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=null, _failed=false, _lastUpdate=-1, _template=null, _type=REGEX]
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
Determining if request can be dispatched as a Tenanted RESTful Service
Request path has one path segment, continuing processing
No Tenant Principal established yet, continuing processing
APEX_LISTENER pool exists, continuing processing
Matching tenant exists, continuing processing
modul/template/ matches: modul/template/ score: 0
Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=1019223475312614|5204902308237886, uriTemplate=modul/template/], 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=1019223475312614|5204902308237886, uriTemplate=modul/template/], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: GET modul/template/
Choosing: oracle.dbtools.rt.jdbc.entity.JDBCTenantDispatcher as current candidate with score: Score [handle=oracle.dbtools.rt.jdbc.entity.JDBCTenantDispatcher$TenantTarget@1537060, score=1, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true]
Chose oracle.dbtools.rt.jdbc.entity.JDBCTenantDispatcher as the final candidate with score: Score [handle=oracle.dbtools.rt.jdbc.entity.JDBCTenantDispatcher$TenantTarget@1537060, score=1, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: GET prx/modul/template/
prx/modul/template/ is a public resource
modul/template/ is a public resource
Using generator: oracle.dbtools.rt.json.query.JSONQueryGenerator
Performing JDBC request as: POFFICE
Error during evaluation of resource template: ORA-00942: Tabelle oder View nicht vorhanden
I see what is going wrong: "Performing JDBC request as: POFFICE". JDBC is using a wrong schema ("POFFICE").
So, my question is, how to change the parsing schema for JDBC/WebService?
Thanks a lot,
Michael

jfle wrote:
Yes - this is the reason,
but is there a way to change or delete the first schema provisioned?See {message:id=3757162}
We have deleted the poffice assignment to the workspace, but the REST-service executes with poffice?Don't know could be a bug.
May be try exporting you restful webservice definition > Edit the export file in textpad/notepad and verify the parsing schema
You will see a block something like below, there just amend the p_parsing_schema to desired > and then import it back
wwv_flow_api.create_restful_module (
  p_id => 7113266627142076447 + wwv_flow_api.g_id_offset
,p_name => 'oracle.example.vikram2'
,p_parsing_schema => 'APX'
,p_items_per_page => 25
,p_status => 'PUBLISHED'
  );

Similar Messages

  • How to change parsing schema for using application in test environment?

    Hi,
    I set up a test environment, i.e. an other Oracle schema with identical tables, views etc. to the productive environment. I wanted to duplicate the APEX application so that there will be a test version using the test Oracle schema and productive version using the productive oracle schema.
    Can some one please give me some tip how to do this? As far as I see i could change the parsing schema in the APEX Application install SQL in the following ways:
    1. While exportin the application with APEX
    2. In the result install f...sql file using search-replace
    3. While importing the APEX application via APEX Development GUI.
    I would prefere 1. or 3. but in both cases when I would like to change the schema name, the drop dowl list does not contain the test Oracle schema name. Do I have to grant something to the APEX worksspace schema for the test schema name to show up in the drop dowl list?
    Tamás

    On that screen,
    - click Create
    - select "Existing" Schema, click Next
    - select the Workspace, click Next
    - select the Schema, click Next
    - click Add Schema
    And now you'll end up with two schema's attached for the same Workspace.

  • Error - Invalid parsing schema for current workspace id

    Hello,
    Users logging into an application occasionally get a strange error: ORA-20104: create_collection_from_query_b Error:ORA-20001: Invalid parsing schema for current workspace ID.
    The error occurs during a post authentication process. Does anyone know what could cause these in general or why it might only occur during the first login of the day?
    Regards,
    Dan
    http://danielmcghan.us/
    http://sourceforge.net/projects/tapigen/

    Scott,
    Today the error mentioned in the last post occurred 3 times - the highest number in a single day yet. Also, to add to the dilemma, a new one occurred:
    ORA-20104: create_collection_from_query_b Error:ORA-20101: Application collection exists
    Knowing that the create collection process is called from a post authentication process I don't see how that the collection could exist for that session... Any ideas?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Invalid parsing schema for current workspace ID

    I have an application that captures different SQL statements (they make use of DB links) and dynamically executes them on demand.
    I use apex collections to get the result rows for the SQL and use them to both query on the UI as well as send out emails using the returned data. This is all OK and works fine.
    I then added another feature to my application where I support the scheduling of the running the SQL / sending out of the emails. It uses the same logic as I use from within the application but it fails with the following error ...
    Invalid parsing schema for current workspace ID
    when the SQL is being used to populate the collection.
    The scheduling is done using the apex plsql job scheduling package. It's as though the context that the job is running in is different from that of the application I created. The strange thing is that it can still see my tables that I created as the queries return data from my tables but for some reason seems to have an issue with the use of apex collections.
    Any ideas or suggestions would be greatly appreciated.

    Scott,
    Today the error mentioned in the last post occurred 3 times - the highest number in a single day yet. Also, to add to the dilemma, a new one occurred:
    ORA-20104: create_collection_from_query_b Error:ORA-20101: Application collection exists
    Knowing that the create collection process is called from a post authentication process I don't see how that the collection could exist for that session... Any ideas?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • How to change the Schedule For settings for an object

    Hi All,
    do you know how to change with BO Enterprise SDK Java the schedule settings for an object?
    I mean these settings that can be changed manually In the Objects management area of the CMC, selecting a report object, Schedule tab, Schedule For link:
    - Schedule only for myself
    - Schedule for specified users and user groups
    Rest of settings can be managed with ISchedulingInfo, but I don´t know how to change the "Schedule for" property.
    Should I use other SDK?
    We have Webi Documents, BOXIE R2 SP2
    thanks,
    regards,

    Hi,
    I think I´ve solved it,
    we can use
    ISchedulingInfo.getMultiPassObjects()
    that returns a java.util.Set of user/usergroup IDs on the schedule for multipass.
    and then we can work with this Set (adding or removing users and groups).
    Setting manually to "Schedule only for myself" in the CMC is the same that removing all the elements from the getMultiPassObjects() set.
    thanks,

  • Change parsing schema

    Hello.
    Is it possible to change parsing schema of apex application on the fly? In Oracle Forms applications we could do that...
    Thanks for any answers.

    Hi Almir,
    I assume by your comment about generic Oracle Forms, that the different schemas have identical structure but differing data. If this is the case I would see three options.
    1. As already mentioned in this thread, make grants to the parsing schema which is probably an empty schema used only to tie the other schemas together and then prefix all table/view references with a schema name, the only thing that I would add is that the schema name should be referenced through and application variable, rather than hard coded, which is set on login and can be changed as required.
    2. You could have a separate copy of the application to go with each parsing schema and then have a controlling entry application which directs the user to the correct application.
    3. You could roll all the separate schemas into one schema. With the particular tables that have differing data (reference tables proabably same data) you can have an extra column that defines the ownership of the data and then use the Virtual Private Database feature to separate the users views of the data.
    All these options have advantages and disadvantages, but I would prefer option 3 as its the most flexible option and probably the most correct, provided it is possible to re-engineer the underlying schemas to such a degree.
    Andre

  • How to change default approval for ResourceAuthorizerApproval ?

    Hi,
    I'am new in OIM and I follow documentation where I found some predefined workflows. I'd like to use them.
    Could you tell me, step by step, how to change default approval for ResourceAuthorizerApproval (only for my new defined resource).
    I'm using OIM 11g and Design Console 11.1.1.3.0.2.0

    Ok, I made new tamplate (copy of existing one), there I changed Template Level Approval Process and set allowed resources. It seems to be ok :)
    If there are other solutions please share with me
    Thanks
    M.

  • How to change a color for a row in ALV grid display

    Hi,
       how to change a color for a row in ALV grid display based on a condition.Any sample code plz

    Hello Ramya,
    Did you check in [SCN|How to color a row of  alv grid]
    Thanks!

  • How to change material component for a Purchase Order?

    How to change material component for a Purchase Order?
    I need FM .
    PLEASE help

    Dear ,
    Create PO with item category L....There in Item detail you will get tab for material.
    There click in component Button, it will take you to the component screen there you can assign and deassign components.
    Hope this helps.
    Regards
    Utsav

  • How I change the icon for iTunes songs?

    When I drag iTunes songs onto my desktop the icon is white with a gray iTunes icon. How can change this icon for all of my iTunes songs?

    Thanks Patrick. I used Control-Click on the actual audio file on my desktop opened the Show View Options menu and turned off the icon preview option. That changed my icons from gray with a white background to red with a white background which is exactly what I wanted.  You pointed me in the right direction. Appreciate it.

  • How to change Apple ID for all applications in iPad2?

    I have changed Apple ID via Settings > Store > Apple ID > Sign out my old Apple ID > Sign in with my new Apple ID.... But, by this method, Apple ID in  iCloud, Facetime, and iMessage isn't changed follow to my new one! Do I misunderstand about changing ID? and How to change Apple ID for these applications?
    PS. I do not want to do hard reset my iPad2
    Thank you all for your kindly help ^^

    Go into Settings > iCloud > Account > Change to your new Apple ID
    Settings > Messages >  Recieve At > New Apple ID
    Settings > Facetime > Change to new Apple ID

  • I cannot find how to change the language for labels in a quiz

    I cannot find how to change the language for labels in a quiz

    You have to be aware that this will only change labels if you edit before adding quiz slides: Preferences, Quiz, Default Labels. You will have to edit the labels, choosing another language will not change them automatically.

  • How to change the Schema (DB2, Oracle) in CommandTable at run time

    Dear all,
    I have a problem as below:
    I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable? 
    Please help me on this.
    Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
    Thanks,
    Nha

    Dear Ted,
    I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
    I also use the parameter to do it, but it can not be at run time, just correct when designing.
    Could you please help me on this. You can post the code if any.
    Thanks,
    Nha

  • How to change the Icon for a JFileChooser ?

    Has anyone figured out how to change the icon for an instance of JFileChooser from the coffee cup to something else?
    I'm on 1.4
    Thanks,
    Ken

    Never mind. I figured it out.
    You have to use an instance of JFrame in the call to showXxxxDialog(Component c). Set the icon of the JFrame to what you want the JFileChooser's icon to be.

  • How to change the color for HTML words in JEditorPane?

    Hi Sir,
    In the JTextPane , we could change the word's color by using:
    Style style = doc.addStyle("test",null);
    StyleConstants.setForeground(style, Color.red);
    doc.setCharacterAttributes(10,20,syle,true);
    we can change the text into red color,which range is from 10 to 30.
    But how to change the color for HTML words in JEditorPane?

    Hi,
    you can use an AttributeSet to apply the foreground color. Let's say, doc is a HTMLDocument, then SimpleAttributeSet set = new SimpleAttributeSet();
    doc.getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D"); would apply a color to a given AttributeSet. The AttributeSet with your color then can be applied to a selected range of text in a JEditorPane by   /**
       * set the attributes for a given editor. If a range of
       * text is selected, the attributes are applied to the selection.
       * If nothing is selected, the input attributes of the given
       * editor are set thus applying the given attributes to future
       * inputs.
       * @param editor  the editor pane to apply the attributes to
       * @param a  the set of attributes to apply
      public void applyAttributes(JEditorPane editor, AttributeSet a) {
        ((HTMLDocument) editor.getDocument()).getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D");
        editor.requestFocus();
        int start = editor.getSelectionStart();
        int end = editor.getSelectionEnd();
        if(end != start) {
          doc.setCharacterAttributes(start, end - start, a, false);
        else {
          MutableAttributeSet inputAttributes =
            ((SHTMLEditorKit) editor.getEditorKit()).getInputAttributes();
          inputAttributes.addAttributes(a);
      } Ulrich

Maybe you are looking for

  • How do I create a custom counter in an etext template?

    I am working on my first EFT template for our EBS R12 upgrade. Within each record I need a counter that indicates how many payments are being made to a particular Payee. Counter starts at 0, increments for each payment and resets at a change in Payee

  • Pages 09 won't let me change spelling dictionary from French to English!

    Pages 09 won't let me change spelling dictionary from French to English! I'm writing a syllabus for class and the spellcheck is stuck in French - for the life of me I can't change it.  The dictionary menu doesn't show up ANYWHERE.  Is this a bug?  is

  • Safari not caching previous page properly

    After the last update I have had problems with going back to the previous page and it not being the last page I went to. As an example if I go the espn soccernet it will load the most recent page. If I click an article, read it and back click to the

  • No POP3 incoming mail getting through to Thunderbi...

    I'm posting at the end of my tether here because I can see that other people have had similar problems and none of them seem to be resolved consistently... So OK - this is what happened. I have Windows 7 64-bit Home Edition and I've used Thunderbird

  • Need BAPI or FM to update  vendor  payment transactions

    Hi , I upload  vendor master data now i am want to update  payment transactions  but  here in some cased multiple payments should also select. Thanks, Asha