RESTful Service Search Parameters

Hello,
I am using APEX 4.2.2 .. with Listener 2.0.3
I want to expose  data in EMP table as RESTful Service with parameters:
The source is:
Source Type :SQL query .
Format: JSON
select * from emp where
(:job IS NULL OR job = :job)
and
(:ename is null or ename = :ename)
URI Template:
employeesfeed/{job}/{ename}
If I use this URL, it works fine...
http://oraclesrv/real_estate/property/hr/employeesfeed/MANAGER/BLAKE
and it gives:
{"next":{"$ref":"http://oraclesrv/real_estate/property/hr/employeesfeed/MANAGER/BLAKE?page=1"},"items":[{"empno":7698,"ename":"BLAKE","job":"MANAGER","mgr":7839,"hiredate":"1981-04-30T20:00:00Z","sal":2850,"deptno":30}]}
But, as you may notice from the Source logic, the "end user" should be able to retrieve all MANAGERS using this Link.
http://oraclesrv/real_estate/property/hr/employeesfeed/MANAGER/null
But, it gives:
{"items":[]}
So, How can I retrieve all Managers ?? ( using that Source ).
Regards,

The the four letters (n,u,l and l) at the end of your URL happen to be a string of length 4.
Basically, you doing this comparison:
'null' is null (which is false)
If you want to keep that syntax, add
or upper(:job) = 'NULL'
MK

Similar Messages

  • About the Error after applying product key for bing search rest service

    For the Project Siena I ve created the product key for Bing search rest service and i applied that product key which is valid even though i got the error when i click TRY button .can anyone please help me to find the solution
    There was an error in retrieving sample data. Error : Unable to reach service. Please check if your service connector configuration is valid and you have network connectivity

    Hello,
    Thanks for your post. I am jotting down few steps to get the Bing search account key (you may have completed many/all of these).
    To add Bing Search Service, go to
    https://datamarket.azure.com/account/datasets and search for "Bing Search API". After you have subscribed to the service, navigate to "My Data" and click on Use. Click on Show and copy the
    Primary Account Key information.
    Note if your key contains a special character like / or = then double clicking on the content will copy the key partially.
    Make sure you have copied the full key correctly. If the is incorrectly pasted in Siena's Primary Account Key field, you will get the error below:
    This is similar to the error you have posted. Since the Primary Account Key is masked you can never be sure the contents are correct. It's best to clear the field and paste the key again.
    If you still face the issue, please post your machine configuration (x86/OS) information.
    Hope this helps,
    -Karthik
    This posting is provided "AS IS" with no warranties and confers no rights.

  • RESTFul services

    Hi.
    I'm implementing a Java Wrapper to invoke RESTFul services.
    I tested some of them and it's running fine. However i'm having some problems with Search REST API.
    My enviroment is described as follow:
    - Oracle WebCenter Portal : Spaces PS5 with OAM SSO configured and Oracle OHS as webserver.
    - .../rest/api/resourceIndex is succesful and i tested getGroupSpaces functionallity through Java Code and directly URL.
    However, i'm trying to invoke http://host/rest/api/searchresults?startIndex={startIndex}&mimetype={mimetype}&q={q}&serviceId={serviceId}&refiners={refiners}&data={data}&scopeGuid={scopeGuid}&itemsPerPage={itemsPerPage}&utoken=FIgDJVfHs52CpShC6gpum8qE6X8A_w**
    Can provide me a sample of replaced param that works?. I tried a lot of ways and i'm getting HTTP 501 or 403 sometimes!! (strange).
    I'll check OAM WebTier (WebCenter REST Auth Policy) and more parameters...
    Any tip or suggest are welcome :).
    Update: All seems configurated
    Regards.
    Edited by: Daniel Merchán on 09-oct-2012 14:02

    Why don't you try out this https://mgmt2.espressologic.com/Management/?accountType=eval#/ and get faster de-bugged RESTful service for your backend.
    It will get you started within a minute and solve your http 501 and param issues in no time.    

  • Getting "Origin is not allowed" When Trying to Invoke RESTful Service from Another Domain

    I am having problems trying to invoke my RESTful web service from a different domain. I'm well aware of the normal restrictions of cross-site / cross-domain scripting but in Oracle documentation it says that all origins are allowed by default when creating a RESTful service without using authentication.
    I have created a very simple service and am trying to invoke it using jQuery.Ajax calls from a different domain and I am getting XMLHttpRequest cannot load http://address_to_my_web_service. Origin http://calling_from_address is not allowed by Access-Control-Allow-Origin.
    I understand that using JSONP instead of JSON is actually the best practice around cross-site scripting but it appears as though APEX does not support JSONP because with JSONP, there are URI parameters added to the base request (callback).
    I am stuck and would greatly appreciate any help.
    I'm starting to wonder if this could be a bug because Oracle documentation says all origins should be allowed when using a service that does not require authentication. I also tried to force the origin to be allowed by typing it in and also using the wildcard '*' and it still did not work.
    Thanks,
    Mark Williamson
    EDIT: It is now working after adding a URI prefix to my web service module.

    The SSL handshake works differently to a browser as it is making the connections automatically.
    The browser asks every time if you want to trust an expired certificate, and it also recommends not to. Its impractical to manually check every service call to say do you trust the certificate so the functionality doesn't exist. I doubt any integration product does this. Therefore there isn't a option to ignore the certificate if it has expired.
    This makes sence as the certificate is untrustworthy. The whole idea around SSL is trusting the site you are communicating with, all parties need to be trusted. This stops hackers from replicating their site and intercepting data.
    If the administrator of the remote site is not willing to renew the certificate, are they really interested in SSL. I suggest they expose a non SSL service.
    cheers
    James

  • Guidance on how to work with more REST services

    You have already seen examples of REST services like Bing Search, Bing Translator and Yammer working in Project Siena Beta2.
    We now have a blog post outlining how to author a WADL configuration file for accessing REST services:
    http://blogs.technet.com/b/projectsiena/archive/2014/04/03/connecting-to-rest-web-services-how-to-write-a-wadl-configuration-file.aspx
    Thanks.

    Hello,
    This is great news, but when can we expect instructions as to how to use in Siena. Also, how much of these services can we expect? http://www.bing.com/dev/en-us/dev-center

  • Not able to call REST service

    Hi,
    I'm trying to consume a REST service. It seems that its a problem to set the http:query-parameters or http:query-string. I saw this https://blogs.oracle.com/jeffdavies/entry/enhanced_rest_support_in_oracl article and and the one in the OSB 11G Development cookbook but the http:query-parameters or http:query-string tag doesnt show up in my $outbound. I do make an assign to put the <http:http-method>GET</http:http-method> in there, and that one works........i can see it in $outbound.
    Can anyone explain me why the insert of the query parameters doesnt work?
    Thanks in advance!

    Hi,
    There's a sample on JSON REST here...
    http://java.net/projects/oraclesoasuite11g/downloads/download/OSB/osb-206-JSONREST.zip
    For other samples, see this...
    http://java.net/projects/oraclesoasuite11g/pages/OSB
    Cheers,
    Vlad

  • Expose REST service in PI

    Hi all,
    I kindly ask if it's possible to expose a REST web service with PI to be called from an external application.
    I've created many scenarios in wich I created a SOAP service (from service interface) in PI and I was able to call the service from an external application (e.g. SOAPUi).
    Is it possible to make the same thing exposing a REST service (the url should contain parameters).
    I've seen some discussions and blogs with examples of usage of "SOAP Axis" but it seems it's be possible only to invoke an external service.
    Is it possible also to create a REST web-service?
    If yes could you please provide examples or step-by-step procedure?
    Thanks in advance for any help.
    Stefano.

    Hi Stefano,
    please check the below link where REST adapter key features.
    >>>I kindly ask if it's possible to expose a REST web service with PI to be called from an external application.
    It can be used to expose internal applications as REST services or to consume external REST services by calling these services from SAP PI.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/11/08/rest-adapter-for-netweaver-sap-pi
    Thanks and Regards,
    Naveen    

  • Mutliple Query String input to APEX RESTful Services

    Does Oracle APEX (latest version via APEX Listener) support passing in multiple query string parameters to support a restful service query? E.g.
    http://ofmindus.induscorp.com:7000/apex/servicetest/animals/dogs/spot
    http://ofmindus.induscorp.com:7000/apex/servicetest/animals/dogs?name=spot
    http://ofmindus.induscorp.com:7000/apex/servicetest/animals/dogs?name=spot?location=Maryland
    As you can see the progression above, the last url will query a dogs table using where name = 'spot' and location = 'Maryland'. Is this possible? If so can someone explain how to setup the URI/Bind Variables? Also, if its possible, do I need templates to support each variation of the input that is possible using a priority setting to help APEX pick the right query to execute?
    Edited by: user2777903 on Feb 11, 2013 10:19 AM

    Hi Nilesh,
    We tried to connect to Oracle Cloud Database using the way you suggested above, but unfortunately it is not working as well.
    Can you let us know the authentication process with Oracle Cloud Database? We found in documentation that it uses OAM (Oracle Access Manager) for authentication. Can you tell us a bit about that? That will be extremely helpful.
    Thanks,
    - Neeraj

  • RESTful Service on Oracle BPM 11g

    Is it possible to integrate a RESTful Service to the Oracle BPM? If yes, are there any examples for the integration?

    Typically you would use a Message Start event to start the process in conjunction with a Message End event. This will allow your process to be called as an asynchronous web service.
    In the "Implementation" section for the start event, you specify the input parameters. You can specify "Define Interface" to directly define the interface, or use an existing interface from the BPM Catalog (the From Catalog option).
    For further details on the different event types and their use cases, refer to the modeling and implementation guide:
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15176/toc.htm
    You can test the web service and examine the WSDL and endpoints by using FMW control (Enterprise Manager). In the menu on the left hand side: expand SOA -> SOA-Infra -> <Partition Name> -> Composite Name, then click the "Test" button at the top.

  • Dynamic Invocation on REST Services

    Hi,
    I am new to OAG. Couldnt find documentation on below questions. Can you please provide inputs.
    Question's:
    1. Would it be possible to use single policy to invoke few external REST services. We want to externalize the URL in "Routing-->Connect to URL" activity.
    2. For some cases we would like to Set target URL based on the Request Relative URL. Is this possible?
    Thanks
    Ramana.

    Hi Stefan,
    One other question.
    I would like to extract value from the variable ${http.request.path}
    Ex: If ${http.request.path} = /test/ramana/details, I would like to define variable say "customer" and assign "ramana" to customer.
    Use Case: I want to set this variable "customer" to "Service Context".
    I tried to use "Extract Path Parameters", ad explained in Extract Path Parameters
    But I am unable to add success path from Extract Path Parameters to Set Service Context .
    Policy Path:
    Extract Path Parameters --> Set Service Context --> Connect to URL.
    Can you please help.
    Thanks
    Ramana.

  • Calling a RestFUL service from a SOA composite

    Hi,
    I had thought a simple google search would have bought up the answer to this question but it dosn’t seem to have done so.
    I have to create a composite in 11.1.1.5 which has to call a restful sercice. Can anyone point me in the direction of a tutorial which describes how to do this.
    Thanks
    Robert

    That article looks intresting but:
    1. The pictures don't seem to be loading for me. Since they show a few of the steps this is quite important
    2. It talks about the httpbinding adapter which was removed when the article was written. This seems to be back now
    3. It uses tonnes and tonnes of Java.
    Can I conclude from this that it is not possible to call restful services from SOA without writing Java code?

  • RESTful service with POST, GET, PUT and DELETE

    I'm implementing a RESTful service, but mod_plsql only gives me GET, POST and HEAD commands.
    However, if I try to use the PUT command, the response is:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>501 Method Not Implemented</TITLE>
    </HEAD><BODY>
    <H1>Method Not Implemented</H1>
    PUT to *** not supported.<P>
    mod_plsql: request method not supported<P>
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at *** Port 80</ADDRESS>
    </BODY></HTML>Is it possible to add support for PUT and DELETE in mod_plsql?
    I've search all packages and code, but I haven't found anything that specifies the valid HTTP commands or the source for generating the above error message.

    AIR supports all the specified HTTP methods, but there seems to be a bug in the HTTPService class. Instead you should use URLLoader and URLRequest. If you change to that you won't even need to use the Method Override header.
    Read more here : http://spy6.blogspot.com/2009/06/adobe-air-put-delete-head-http-methods.html .

  • How to integrate REST services in Siena?

    Help me to integrate REST service in siena application. 
    Could anybody help me on this?
    saravana

    Unfortunately your post is off topic as it's not specific to Microsoft Training and Certification.  
    This is a standard response I’ve written in advance to help the many people who post their question in this forum in error, but please don’t ignore it.  The links I provide below will help you determine the right forum to ask your question
    in.
    For technical issues with Microsoft products that you would run into as an end user, please visit the Microsoft Answers forum ( http://answers.microsoft.com ) which has sections for Windows, Hotmail,
    Office, IE, and other products.
    For Technical issues with Microsoft products that you might have as an IT professional (like technical installation issues, or other IT issues), please head to the TechNet Discussion forums at http://social.technet.microsoft.com/forums/en-us, and
    search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), please head to the MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and
    search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here: http://community.dynamics.com/ 
    If you think your issue is related to Microsoft Training and Certification and I've flagged it as Off-topic, I apologise.  Please repost your question and include as much detail as possible about your problem so that someone can assist you further. 
    If you really have no idea where to post your question please visit the Where is the forum for…? forum http://social.msdn.microsoft.com/forums/en-us/whatforum/ 
    When you see answers and helpful posts, please click Vote As Helpful,
    Propose As Answer, and/or Mark As Answer
    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCSA, MCSE: BI
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID:
    Microsoft Transcript

  • Restful services, widgets and the widget foundation

    Hi,
    I installed the widget foundation and found the tutorial helpful when craeting a simple RFC call widget for displaying a customers details.
    In the description document I raed even RESTful services can be created with the foundation.
    Is a tutorial or at least a prototype application available ? How can  a REST service be build in SAP anyway (say for a customer) ?
    Would be great to skip all the RFc and SOAP stuff in favour of http://myserver:port/customers/12345 for all the details.
    Any help on this is appreciated.
    Marcus

    REST service can be simple BSP page which takes some parameters and process them and returns the result in xml or json format.
    check out my weblog at /people/durairaj.athavanraja/blog/2006/10/10/sap-logged-on-users-list-widget ,
    i am using a similar approach
    Raja

  • How to query for foreign encoded text via REST service

    I am using APEX 4.2.1.00.08 to publish RESTful web services that query a table of place names. The place names include foreign encoded alternates. My search field has type of NVARCHAR2 and the db has NLS_CHARACTERSET of AL32UTF8. Querying for foreign encoded names works fine from other applications (e.g. TOAD, ArcGIS).
    In APEX under 'SQL Workshop | RESTful Services' I have created a module, resource template, and resource handler. When I use 'Set Bind Variables' to test the service, it works for 'English' names with no problem (e.g. 'London').
    However, when I query for a foreign equivalents like 'ロンドン', the Japanese version of 'London', I get the following error:
    400 - Bad Request
    The request path contains illegal characters
    How do I get foreign encoded place names to work as the bind variable value of a REST service?

    Does this query help?
    select /*+ parallel(4) */
    pk.table_name parent_table_name, pk.constraint_name pkey_constraint,
    fk.table_name child_table_name, fk.constraint_name fkey_constraint, fk.r_constraint_name
    from
    user_constraints pk,
    user_constraints fk
    where
    pk.constraint_name = fk.r_constraint_name
    and pk.constraint_type='P'
    and fk.constraint_type='R'

Maybe you are looking for

  • Cannot save PSB - CMYK file as a PDF file in Photoshop Cc

    Hi . I have a psb file CMYK open in photoshop cc , but cannot save it as a pdf. I've searched for a solution but cannot find it. The file is just over 5gb in size and I need to give it to the printers as a CMYK pdf file. Please advise.

  • I rent a movie from iTunes store and download but can't see need help

    need help please

  • Reg tolerance group

    Hi,        i am having tolerance group at the time of creatin G/L account in t-code fs00 and at the time of creating vendor account, if i give different tolerance group for vendor and the G/L account for the vendor, which tolerance group will it cons

  • How to start Essbase Studio? 11.1.2

    Hi, I am trying to start the Essbase studio client on a windows 64 bit system. However, when I invoke the startStudio.bat in C:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseStudio\Console it shows me a pop-up with various configurations li

  • Re installation of Indesign CS3

    reinstalled Indesign CS3 due to updating operating system. can launch the program, but can't open document. says plug ins need to be updated. HELP!!