Configuring RESTful Services in detail
Hi Community,
we've set up RESTful Services for our APEX installation, we've followed the Oracle documentation on how to do that.
Now, there are some questions left:
Is there a way for us to configure the RESTful services in detail? It looks like there are very few configuration possibilities at all, for example, we can't set the Tokens lifetime (or configure anything at all actually=).
Thank you!
- Georg Dangl
So, I'm one step closer now, thanks to Securing ORDS REST Services with OAUTH2 | Oracle Is Easy, I've found that there is the possibility to set the lifetime for the BEARER token in the defaults.xml via the following parameter:
security.oauth.tokenLifetime
Additionally, I discovered a table in the Database under the Apex user, "WWV_FLOW_RT$USER_SESSIONS" where current OAuth2 Information (Tokens and expiry info...) is saved. From there, I found that the default refresh Token lifetime is one day.
So, the next step is to find out the command to set the refresh token lifetime in the defaults.xml. I'd appreciate any help!
Similar Messages
-
RESTful Services comfiguration step missing TEST Button
Hello there,
I was asked to set up the RESTful Services. When I get to my last page, there were not a test button to test the RESTful Services Reference as well as the set bind variable button to set the bind valiable. So at this point, I was not able to get the JSON result file that will show the URI where the application will consume the Web Services. Can someone assist me in getting this work? is this problem and upgrade problem? the saystem was upgrade from 4.0 to 4.2
Can someone help?Hi,
I would recommend that you review the APEX Installation Guide, for details on Configuring RESTful Services using APEX Listener 2.0 or higher. RESTful Services requires Oracle Application Express Listener 2.0 or later. The "Test" and "Set Bind Variables" buttons will only be visible on the Resource Handler page of App 4850 when your instance is configured to run with APEX Listener 2.0 or higher.
I would recommend that review the installation doc steps, ensuring that you have executed the apex_rest_config.sql script, and download the latest version of APEX Listener from OTN and configure it. Within the downloaded Listener zipfile, you'll contain a very useful RESTful Services Developer Guide, which I recommend that you review.
Regards,
Hilary -
Question about configuring REST web service in EBS instance
I am from EBS SCM team. From one wiki page, it says OA Framework provides REST framework to expose OAF BC4J objects as web services. Can you provide more details about how to configure REST web service for one EBS instance? Any related information is also helpful.
Edited by: 936859 on Sep 7, 2012 5:45 PMIIRC you must activate PAPI-WS for the engine. In Studio you do it by right-clicking on the project, then "engine preferences". In enterprise/standalone you must activate PAPI-WS in the Admin Center.
-
How to configure proxy services in OSB for Rest based services?
how to configure proxy services in OSB for Rest based services implemented using Jersey (Rest).
The Client need to contact OSB proxy servies by posting application/xml using jersey client and OSB proxy service will call the OSB business service.
i would like to know how to get this request in OSB proxy service and send it to the business service and get the response back.I would suggest you refer to the below links:
https://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
https://blogs.oracle.com/jamesbayer/entry/using_rest_with_oracle_service
Hope this helps.
Thanks,
Patrick -
Cisco Provisioning Manager 2.1 bulk service area detailed configuring
Hi folks,
I'm really stuck and need some help desperately.
I have bought Cisco Provisioning Manager 2.1 for 5000 handsets and I have isntalled the product ok however I am now at the stage where I need to configure the service areas. I have some 45 sites which equates to about 350 service areas.
Service Area for each site with the following differences:
- Odd Device, Present CLI
- Even Device, Present CLI
- Odd Device, Restrict CLI
- Even Device, Restrict CLI
Can someone please advise me a way to bulk configure these detailed attributes with some tool or a let me know of a customer northbound API application that has been written to do make this painful exercise much less painful?
I estimate its going to take me 5 weeks full time to click through each thing and configure it..
Please help!
Cheers
BeauYou can bulk load (with batch provisioning) the Service Areas... I did this by exporting my phones into a CSV file from Communications Manager, and then filtered it for the fields required for the SAs. Then you just follow the instructions for batch provisioning that start here: http://www.cisco.com/en/US/customer/docs/net_mgmt/cisco_unified_provisioning_manager/2.1/user/guide/infrstct.html#wp1051558
I hope that helps...
--Joe -
APEX Listener 2.0 - RESTful Services Failure with 404 - Not Found
Versions used:
* APEX Listener 2.0.0.354.17.05
* Application Express 4.2.1.00.08
* Oracle Database 11.2.0.1
When testing the sample RESTful Service Module oracle.example.hr I always get 404 - Not Found page.
I followed the documentation to install and configure APEX 4.2 and the Listener 2.0. Everything in my APEX installation works fine except RESTful Services.
For example, when calling this RESTful Service:
http://company.com:45678/apex/DEV/xxuapex/hr/empinfo/
I get a 404 page.
The corresponding entry in url-mapping.xml is:
<pool base-path="/DEV" name="od01" workspace-id="xxuapex"/>
where xxuapex is the name of the schema as well as the workspace where the RESTful Service is installed.
Moreover, the corresponding od01.xml, od01_rt.xml and od01_al.xml in the conf directory seem correct.
Any help is greatly appreciated.
Thanks.
Eddie Awad.Hi Eddie,
+> try the other option base-url of the url-mapping+
I did. No change. Still getting 404.When active it should transform the 404 page into a detailed 404 with a description of what the error is. Just to be sure, this is activated in the defaults.xml file of the APEX Listener as: *<entry key="log.logging">true</entry>*.
You should then see a detailed 404 output in your browser of what's going wrong first of all.
+> Could you post your url-mapping.xml file?+
<?xml version="1.0" encoding="UTF-8"?>
<pool-config xmlns="http://xmlns.oracle.com/apex/pool-config">
<pool base-path="/DEV" name="od01" workspace-id="xxuapex"/>
<pool base-path="/TEST" name="ot01" workspace-id="xxuapex"/>
</pool-config>
Despite using the url mapping script, it didn't map mine correctly and had to edit it manually. It was the use of "apex" that got it to work for me:
*<pool base-path="/" name="apex" workspace-id="workspace-name-here" updated="2013-01-09T20:48:59.75Z"/>*
Nick. -
Need help in creating SOA SUITE RESTFul Service.
Hi All,
I have a requirement to provide a restful service url to other party to post plain xml message.
So i have configured HTTBinding as below
Type : Service
Operation Type : One Way
OperationName : Send
Verb : Post
Payload type : xml
its one way transaction, we dont need to send response back to other party.
After my configuration, when i use the URL to post some xml message from REST client
i get a error "<error>oracle.fabric.common.FabricException: Unable to find operation: unknown</error>" same error even in composite with no instace created
and when i add a header property SOAPAction : Send then message goes through adapter and i see instances in composite.
But unfortunatly the team whos posting messages to fusion were not able to add any property
Is there any we can solve this with out Header Property added at client side.
Or Do we have any other way to create a RESTFull service in soa suite(i guess OSB allows this.)
Help appreciated
im using soa suite 11g
thanks in advance guys
Regards
Sujan.Amir
You need to set the compatibility of the setup.exe file that was downloaded
- right click setup.exe
- click on properties
- go to the compatibility tab, check the box that says 'run this program in compatibility mode for',
- select 'Windows XP service pack 2' from the drop down list.
- Click ok and try again
It then runs it as if it was XP (v 5.2 )
However there are a bunch of other tasks to do install on vista
check
'Start SOA Suite' fails after laptop restart.
for details of other config..
It would be interesting to see if you are successful as I currently cannot install it on my vista machine..
Good luck
Will -
Can't find the "Protecting the RESTful Services" in the 'Required Scopes' field
When I following the ORDS 2.0.10 readme to configure Oracle Restful services, I can't find the "Protecting the RESTful Services" in the ‘Required Scopes’ field.
The detail step is in "Registering the 3rd party application" of section "Accessing the RESTful Services from a Third Party Application".
"Choose Gallery Access in the ‘Required Scopes’ field."
The above step I can't find any protected restful services.
But I have configured the "Gallery Access" successfully before.
Thanks,
MarvinWhat is the version? Database Server
RDBMS : 10.2.0.2.0
Oracle Applications : 11.5.10.2
Check the workflow for the OKS Contract Process item type and see which activity it is waiting at or errored out.How do I check. I am new. Do I have use sql query or in the form? What is the steps involved.
You can use WF admin responsibility to check the status.Will a give a try.
thanks
siva -
OSB RESTful service is not reachable
Hi Team,
I defined an OSB REST service as mentioned in https://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
When I test it from SOAPui, it is not reachable. Any pointers please.
Thanks,
AGYou need to make an entry in OHS config files like below:-
Example:With the following configuration, requests for the /myapplication URI received at the Oracle HTTP Server listen port will be forwarded to /myapplication on the Oracle WebLogic Server with the listen port localhost:7001
<IfModule weblogic_module> <Location /myapp1> SetHandler weblogic-handler WebLogicHost localhost WeblogicPort 7001 </Location> </IfModule>
To forward requests to an application running on a cluster of Oracle WebLogic Server instances, specify the details of that destination cluster within a new<location> element.Syntax:
<IfModule weblogic_module> <Location path> SetHandler weblogic-handler WebLogicCluster host:port,host:port,... </Location> </IfModule>
http://docs.oracle.com/cd/E23943_01/web.1111/e16435/oracle.htm#PLGWL553 -
HTTP Adaptor for RESTful service calls -- Proxy Settings?
Hi Guys,
I have successfully configured an HTTP Adaptor on my Access Server, imported a REST service function, set up DTDs etc etc all ok.
Now, when it comes to calling this function in a data-flow, the run of the job just times out while calling the function. I have tried this via another route and this time-out occured their too until I entered my proxy server login details.
I am assuming I need to do this for the HTTP Adaptor but there is no parameter/setting around for me to do this.
Could you please tell me how I can get my proxy settings in place for the HTTP call? If the solution involves the "axis2" file, please could you give me clear/step-by-step instructions on how to use this and deploy it as that area is all new to me.
Thanks very much for any help.
Flip.you can set the proxy server details in the Additional JVM Arguments of the HTTP Adapter Configuration using the following syntax. Add this to existing memory setting args
-Dhttp.proxyHost=<enter proxyserver name> -Dhttp.proxyPort=<enter proxy port>
have no idea how to specify the credentials, not sure if that can be done using Java arguments, if you are on windows try running the Jobservice under named user, and see if it works -
Do I need to install apex listener in order to use the Restful Services.
We are on apex 4.1 and use modplsql apex.
Do I need to also install apex listener in order to use the restful services or would it be just enougt to patch 4.1 to 4.1.1 and I can continue to use apex 4.1.1 with modplsql.
Thank you
KumarHi Kumar,
APEX Listener 1.1 (including your 1.1.4 installation) has a different implementation for RESTful webservices. You can access the configuration using APEX Listener's own configuration ("/listenerAdmin").
The new APEX-integrated RESTful implementation is provided with the new APEX Listener 2, which is still in Early Adpoters phase. It comes with a patch for APEX 4.1 to make 4.1 capable of using it as well. See the installation guide for the current EA release for details.
Since APEX 4.2 has been released now, I'd recommend to upgrade to this release instead of patching 4.1 if you don't have anything that would stop you from upgrading. And I expect APEX Listener 2 to be released soon as well, eventhough there hasn't been an official announcement yet.
-Udo -
Issue with 'SAVE AS' RESTful service call in 4.1 SP5 ?
Hello Everyone,
I'm facing an issue when trying to save a webi document into another folder using 'SAVE AS' RESTful call, it's giving 500 Internal server error (through AZOT & RESTClient)
Following are details:
We are on to BusinessObjects version 4.1 SP5. In the AZOT workflow, I have created a new document and in the next call I'm trying to save this newly created document into another folder, then this is error is observed.
RESTful service URL:- [POST] : /documents/{docId}
Request Body:
<document>
<name>Testing SAVE AS</name>
<folderId>219060</folderId>
</document>
Response:
Can anyone help me with this ?
Thanks,
RamHello,
Thanks for your prompt replies.
@Saritha:
1. On new document Save call is giving message as "NOT Modified", as i didn't perform any actions.So Yes, I'm able to perform SAVE.
2. Yes, I have performed other operations like creating a Report.
@Eric: 3. Yes, the folder which I'm trying to save is writable for the user.
My Observation: When I'm trying to 'SAVE AS' on new document its giving 500 error as I said earlier.
1. But, after creating new document, I created a new Report for that document, then 'SAVE AS' working. That means after performing some action/modifying the document 'SAVE AS' is working for me.
2. Same issue(500 error) observed when trying to perform 'SAVE AS' call on the EXISTING document as well (which is create in BI Launchpad, refreshing and working fine).
So, is it mandatory to perform any action (which brings the document to Modify mode [i guess]) before this 'SAVE AS' call ?
Thanks,
Ram -
An error occurred querying a data source - with REST services
Hi,
I have a SharePoint 2013 form library library with an info-path form. I need to get the logged in user's 'Display Name' on my form load automatically.
I used REST service to fetch the current user details. In the preview mode of the form, its showing the right name. But when I publish this form to library I am getting the following error.
REST Service --> http://site url/_api/SP.UserProfiles.PeopleManager/GetMyProperties
Please help me to resolve this issue.
Thanks in advance for your time and reply :)Hi,
According to your post, my understanding is that an error occurred querying a data source with REST services.
It is defiantly permission issue with GetUserProfileByName service
and could be many reasons of this problem. You first try with UDCX file and make sure that UPS is running.
Here are some similar threads for your reference:
http://social.technet.microsoft.com/Forums/en-US/b8c668ea-7511-4657-a1a8-08fb4a6bd53d/info-path-an-error-occurred-querying-a-data-source?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/en-US/46866ac2-da09-4340-a86a-af72cbb2c8d7/info-path-an-error-occurred-querying-a-data-source-?forum=sharepointcustomization
http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Getting error while writing JUnit test case for RestFul Services
Hi All,
I have written Restful services in Netbean 6.8.
It's running well...no issues.
{color:#0000ff}While writing JUnit test cases for them, I am getting following error:
{color}{color:#993300}Testcase: testGetAuthenticated(com.ct.services.LoginServicesTest): Caused an ERROR
Implementing class{color}
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:160)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.ct.services.LoginServices.getAuthenticated(LoginServices.java:205)
at com.ct.services.LoginServicesTest.testGetAuthenticated(LoginServicesTest.java:84)
Test com.ct.services.LoginServicesTest FAILED
F:\NetbeanProjectsWorkspace\DemoProject\nbproject\build-impl.xml:972: Some tests failed; see details above.
BUILD FAILED (total time: 11 seconds)
{color:#0000ff}Strange thing is that when I am commenting below lines and its related calls:
{color}
{color:#ff0000}EntityManagerFactory mEmf = Persistence.createEntityManagerFactory("AnyName");
EntityManager mEm = mEmf.createEntityManager();
{color}
{color:#0000ff}from my code, JUnit test cases are working fine.
{color}Anybody having any idea about this ?
Thanks
Avi
Edited by: Avi007 on Aug 28, 2010 5:17 AMHi All,
[http://stackoverflow.com/questions/2778295/test-driven-development-problem]
Please refer the above link for the solution
Thanks
Avi
Edited by: Avi007 on Aug 30, 2010 12:33 AM -
Error while Configuring - Delivery Service Analysis
Hi All,
I am configuring Delivery Service Analysis - B33.
I was activating the business content: infocubes
And I got the following error
Message Text
The DataSource 0RF_ARTHIER_ACT does not exist in version A
Technical Data
Message type__________ E (Error)
Message class_________ R8 (Messages from the meta data generation)
Message number________ 404
Message variable 1____ 0RF_ARTHIER_ACT
Message variable 2____ A
Message variable 3____
Message variable 4____
Message Attributes
Level of detail_______ 1 (Level of detail 1)
Problem class_________ 1 (very important)
Sort criterion________
Number________________ 1
Pls. let me know how to resolve this error.
I am doing all the SD infocubes installation here
(Can I apply the solution mentioned in SAP Note Number: 953612?)
Thanks In Advance
Message was edited by: PPMM
PPMMHi Siggi,
Thanks I found the DS and activated it.
But Activating the Data Source also gave errors
@5C\QError@ <b>Extract structure /BI0/ARF_DS0100 is not active</b> @5F\QNo long text exists@
@5C\QError@ <b>/BI0/ARF_DS0100: Only tables and views are permitted for extraction</b> @5F\QNo long text exists@
@5C\QError@ <b>The extract structure /BI0/ARF_DS0100 of the DataSource 0RF_ARTHIER_ACT is invalid</b> @35\QLong text exists@
The extract structure /BI0/ARF_DS0100 of the DataSource 0RF_ARTHIER_ACT is invalid
Message no. R8444
Diagnosis
An invalid extract structure has been assigned to the DataSource. An extract structure has to be active in the DDIC. It cannot be a view, since the customer is not able to add append fields for filling in the customer exits to a view.
Pls. help
Thanks In Advance
Maybe you are looking for
-
I am having a problem with F110 Payment run. It's showing the error as: 'Item cannot be paid due to inconsistent withholding tax'. I have done the payment run for the same vendor, same company code and it worked well. Later, I deleted one of the WH T
-
Lumia 822 updates returning error code 80072ee2
Purchased a Lumia 822 in January. On the web, I see the current version of software for the 822 is 8.0.10211.204, hardware is 1532.5951.1250.1012 My phone is currently on 8.0.9905.12 and 1532.2108.1244.0003 It has not informed me I have any update
-
Sometime in the near future, i hope to purchase an imac, a big part of this is to be able to connect an xbox 360 to the imac, but i have 2 questions about it 1. Is there any way of connection the xbox 360 to my imac and allow the imac to act as a scr
-
IPhoto 9.4.3 crash on startup (KERN_PROTECTION_FAILURE)
Hello, iPhoto crashes while starting. I already tried: - cmd-option start, crashes before rebuild option is shown - combo update 10.8.3 - reinstall last update iPhoto 9.4.3 - iPhoto Library Manager recovery. This tools can open my library, show every
-
Trying to do a password update but it asks me for a four digit pass code. Does anyone know if that would have been a significant date or set of letters or numbers I was prompt for in the past when I first bought my phone? Thanks.