Consume Webcenter REST API for Mobile App

Hi All,
I have some requirement like How to consume web center REST API to the ADF mobile
could you please guide to it any examples,links.
When i am trying to consume by using URL Data control it is showing authentication failed, can you pls tell me how to resolve this issue.
Is there any procedure do the same.
Thanks in Advance .
Message was edited by: 878913

Well was able to resolve it however had to do workaround
>> used rawXhrPost and put methods instead of xhrPost/put as the dojo.xhrPost seems to insist on sending the data as key=value
pairs separated by a '&' which on one hand lead webcenter to believe there
wasn't any POST data as it was expecting json ..
however if anyone has used xhrPost with webcenter rest , please guide how to use it ... casue and unable to use it .
also which is the right way to do it ? xhrpost or rawXhrPost , asthe later this method is not extensively mentioned... seems its going to be depricated...

Similar Messages

  • Oracle Webcenter REST API Authentication

    Hi All,
    I am getting authentication error while consuming the Webcenter REST API url http://webcenter.us.oracle.com/rest/api/resourceIndex.In Jdeveloper (URL Datacontrol)
    So please help me where to Provide the authentication details.
    Thanks.

    Hi.
    You need to add Authentication to your REST requests. Using Oracle WebCenter Portal REST APIs - 11g Release 1 (11.1.1.6.3)
    From my experience, I always used REST API from a REST Java Wrapper done by a mate: Oracle Webcenter Portal & Content Tips: Using WebCenter REST API from Java
    - Samples snippet of authentication:
    When executing code inside of the domain use OIT:
    b64EncodedToken = WCSecurityUtility.issueTrustServiceSecurityToken();
    String auth = "OIT " + b64EncodedToken;
    connection.setRequestProperty(AUTH_PROPERTY, auth);
    When executing code for testing in your JUnit or outside, use directly BASIC authentication:
    String userpass = "weblogic:weblogic1";
    BASE64Encoder encoder = new BASE64Encoder();
    b64EncodedToken = encoder.encode(userpass.getBytes());
    String auth = "Basic " + b64EncodedToken;
    Create a DataControl manually create an instance of the connection depending of the environment.
    Take a look in the official documentation and in the blog entry links.
    Regards.

  • Help me in embedding a map for mobile app

    I have built a basic simple iphone app in flash cs5.Now I want to create a new scene in flash cs5 to show this map fully funtional along with markers in a small resolution for mobile app.(iphone)
    link of the map:
    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=100795895206195398252.00044490e878 965c7dd91&t=p&om=0&ll=12.340002,77.409668&spn=4.989012,7.404785&source=embed
    Pls help me out in sorting this problem out

    You need to sign up for google maps API here : http://code.google.com/apis/maps/signup.html, get your API key. You need this otherwise it will not work. Thendownload the SDK, from here:http://code.google.com/apis/maps/documentation/flash/ its on the right, on step 2, "SDK"
    the set up flash with the SDK, and then in your components inspector there will be a new folder saying google.
    Drag that component onto the stage. Then add this code: information  will need to be changed to suit your location and API KEY
    package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.geom.Point;
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    public class googlemap extends Sprite {
    var map:Map = new Map();
    public function googlemap() {
    map.key = "ABQIAAAAF5GHwa7hgxz5etSP-jJVwhSK_rP-_Usta8fEpiVtC50gLzF69hQ6_VK0zgpArekpmdsRCJK2Vnp60A";
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    map.addEventListener(MapEvent.MAP_READY, onMapReady);
    this.addChild(map);
    function onMapReady(event:Event):void {
    map.setCenter(new LatLng(45.436319770227,12.33638048172), 13, MapType.SATELLITE_MAP_TYPE);

  • Webcenter REST api

    Working on PS3 webcenter framework. The message items in the response for urn:oracle:webcenter:messageBoard have only read and delete capabilities. The update capabilities for messages from message board is missing. Is this a bug or a configuration issue?

    Please refer below :
    Using Oracle WebCenter REST APIs
    Oracle Webcenter Portal & Content Tips: Using WebCenter REST API from Java
    Thanks

  • SSL Pinning support for mobile apps ?

    Hi there
    i've just read this article and wondered if there is cross platform support for SSL pinning for mobile apps (iOS and Android) developed with AIR ?
    So far my Google research wasn't successful, therefore i ask here.
    Maybe this feature could be supported by a native extension ?
    Thank you for any hint.
    Regards
    valley

    I believe IBM has a mini version of DB2 designed for mobile Apps.
    Good Luck,
    J.Clancey
    Pats World Champs!!!

  • REST API for CCW

    Hi,
    Is there a REST API available for CCW operations? 
    Thanks
    Krishna

    Hi, do Cisco provide a REST API for accessing the CCW in the meantime?

  • Accordion navigation pane for mobile apps

    Hey,
           Is there a way to create an accordion pane in a android mobile app using Flash Builder? I know you could do it flash web pages. But, for mobile app, I am not sure. I apologize if this is a stupid or redundant question.
    Any direction is greatly appreciated.

    I was thinking about this, for no reason other than I was meant to be doing something else.
    My initial idea was that you could probably achieve something that would give you reasonable flexibility in an accordion like control by creating a custom item renderer for an s:List. EG: Override public function set selected(b:Boolean):void; in the item renderer to add the display clip when selected and remove it when deselected. You could then supply your item elements as an IList with an Array of IVisualElement as its source. I knocked up a quick test and bar resizing the renderer (which I would need to think about a bit) it worked pretty effectively.
    Then, although it is a bit less elegant, it occurred to me you could use a simple s:VGroup swapping the relevant child elements in and out of the display list based on clicks on the label buttons.
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:accordion="accordion.*">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.IVisualElement;
                                  protected function setClipIndex(selectThis:int):void
                                            for(var i:int=0;i<listOfClips.length;i++) {
                                                      var ive:IVisualElement = listOfClips.getItemAt(i) as IVisualElement;
                                                      if(i==selectThis) {
                                                                if(!accordionVG.containsElement(ive)) {
                                                                          // Add at item position plus one to allow for the button
                                                                          accordionVG.addElementAt(ive,i+1);
                                                      } else {
                                                                if(accordionVG.containsElement(ive)) accordionVG.removeElement(ive);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
                        <s:ArrayCollection id="listOfClips">
                                  <fx:Array>
                                            <s:Scroller width="100%" height="100%" toolTip="A group..." id="defaultGroup" >
                                                      <s:VGroup >
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                      </s:VGroup>
                                            </s:Scroller>
                                            <s:Scroller width="100%" height="100%" toolTip="A different group..." >
                                                      <s:VGroup width="{width}">
                                                                <s:Button />
                                                                <s:Label text="Different text in some other buttons..." />
                                                                <s:Button />
                                                      </s:VGroup>
                                            </s:Scroller>
                                            <s:Scroller width="100%" height="100%" toolTip="Yet another group..." >
                                                      <s:VGroup width="{width}">
                                                                <s:Button />
                                                                <s:Label text="Some other stuff..." />
                                                                <s:Button />
                                                      </s:VGroup>
                                            </s:Scroller>
                                  </fx:Array>
                        </s:ArrayCollection>
              </fx:Declarations>
              <s:VGroup id="accordionVG" top="0" left="0" right="0" bottom="0" creationComplete="setClipIndex(0)">
                        <s:Button width="100%" label="{listOfClips.getItemAt(0).toolTip}" click="setClipIndex(0)" />
                        <s:Button width="100%" label="{listOfClips.getItemAt(1).toolTip}" click="setClipIndex(1)" />
                        <s:Button width="100%" label="{listOfClips.getItemAt(2).toolTip}" click="setClipIndex(2)" />
              </s:VGroup>
    </s:View>
    [/code]

  • Request for Webcenter demo (viewlets) for Mobile devices (PDA/iPhone)

    Hi ,
    We are working on a deal opportunity for webcenter suite.
    We are looking for a demo artifacts (recording/viewlets/live vm) for webcenter integration with mobile devices (pda/ iPhones etc).
    Please advise.
    Thanks and regards
    Rahul

    904559 wrote:
    Hi,
    Our client would like to access workflows of WebCenter in Mobile devices like IPhone, Android devices, Blackberry, Nokia etc. Is there any generic way we can develop workflows for all devices or should we develop it specific for each devices.
    An immediate response would be higly appreciated
    regards
    RafiqueMobile development is a bit more involved than simple WebCenter. :-)
    In short, the best approach at present to have mobile access is to create a "mobile" site based on HTML5. You will likely need to re-design your application to be mobile-accessible, either creating a simplified WebCenter app/skin for mobile applications (e.g. the 320 px screen, etc.) targeted at the smartphone-type screen. This does not solve the feature-phone problem. (Nokia?)
    The other approach is to use RESTful services that you can either use or create in order to serve mobile clients that are either native apps or HTML5/JS apps that are created with a tool like PhoneGap. (This would allow for non-web-browsing access.)
    There are also some inklings that a new "ADF Mobile" is coming that will allow for a more ADF-like mobile development approach.

  • How to use WebCenter REST API to like or comment a activity

    Hi all
    I want to know how to realize like or comment function with REST APIs.
    I execute a REST call with following url, but the 'like' counter is not be increased.
    http://cdcjp77vm3.cn.oracle.com:8888/rest/api/activities/services/oracle.webcenter.community/objectTypes/groupSpace/objects/(s2518c69b_1989_4a63_8886_c32075c76b9c)/likes?&utoken=FDNA-Z7ekZuPnVSNoPWOqTJ2IzAE_w**
    Is there anything i missed?
    Can anyone give me an example about how to use this API to like or comment a activity?
    Thanks
    Qian

    So Qian;
    looking through the code this is how you can
    Post a comment (POST)
    /rest/api/activities/services/{serviceId}/objectTypes/{objectType}/objects/({objectId})/comments?startIndex={startIndex}&itemsPerPage={itemsPerPage}&utoken=blah
    {key:val}
    {text:'this is my comment)
    Edit a comment (PUT)
    So I haven't tried it but it should do the trick.. although I don't see update under capabilities so you may get blocked.
    /rest/api/activities/services/{serviceId}/objectTypes/{objectType}/objects/({objectId})/comments?startIndex={startIndex}&itemsPerPage={itemsPerPage}&utoken=blah
        id: {commentId},
        text: 'changed my comment.. magic'
    Delete a comment (DELETE)
    /rest/api/activities/services/{serviceId}/objectTypes/groupSpace/objects/({objectId})/comments/{commentId}?utoken=blah
    Like POST
    /rest/api/activities/services/{serviceId}/objectTypes/{objectType}/objects/({objectId})/likes?startIndex={startIndex}&itemsPerPage={itemsPerPage}&utoken=blah
    I passed it an empty object {} seemed to work for me.
    Unlike (DELETE)
    /rest/api/activities/services/oracle.webcenter.community/objectTypes/groupSpace/objects/({objectId})/likes/({likeId})?utoken=blah
    Let me know if this works for you

  • How to create and use Data Vault with HTML/JavaScript (SAPUI5) for Mobile Apps?

    Hello,
    I am creating a demo Enterprise Mobile App, for cross platform and I want to use the Data Vault.
    I am not able to figure out how to implement the Data Vault with HTML/JavaScript i.e. SAPUI5 for cross platform mobile apps I have a tutorial, but it is for Android based apps. Where as I want it for iOS as well. I guess, in this case, implementing the Data Vault using SAPUI5 over HTML and JavaScript would be  better.
    If anyone has any links or sample code to implement Data vault in HTML/JavaScript (SAPUI5) or specific for iOS apps, it would be great.
    Thank you.

    Hi,
    This is the "SAP Mobile Documents" community, so this seems to be the wrong place for asking your question related to Data Vault / SAPUI5.
    Maybe you should post your question here: http://scn.sap.com/community/developer-center/front-end.
    best regards,
    Ingo

  • Using the REST API for files, how do I get information on all the folders and files in a folder?

    I have an app that can successfully get a list of a folders content. However, by default the list is limited to 200 entries. I luckily ran into this limit when getting the list on a folder that contained 226 entries and realized I needed to then request
    a list of the next items but it wasn't obvious from the REST API document how to do that. I tried sending the skipToken query parameter and setting it to 0 initially and incrementing each time I sent the request but always got the same 200 items back. So,
    how do I get the list of files and folders beyond the initial list?

    In SP2013 the skiptoken query parameter does not work with list items. You can look at the link below which discusses using the "__next" parameter.
    http://stackoverflow.com/questions/18964936/using-skip-with-the-sharepoint-2013-rest-api
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Does Dreamweaver CS5.5 support in-app purchases for mobile apps?

    I am starting to take a look at developing a mobile app for my business and Dreamweaver CS5.5 looks like the platform I am going to use.  My question is this: do apps built this way have support for in-app purchases? 
    Thanks.

    If you are asking can you develop it I don't see why not.  Just refer to the documentation from the appropriate Marketplace for details on setting up in-app purchasing restrictions and requirements.  If you are asking if there is a built-in function to make an easy "in-app purchase button" I would lean towards the No on this answer because I don't believe that is in DW.

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • Joining tables for Mobile apps

    can i access multiple table(like normal join) from one CallResponder's token for my mobile apps(flex 4.6)..if we can ,then how can we do this..i think, there is some solution,but i'm not aware of it.. please give me a short demo or link..how can you join table,by data binding.. thanks..

    +1 for this. it's taking a while to lad on my 2 year old ipad mini, so this would probably help. though in my case, it's going to be an iOS install that needs to ho on a diet.i haven't worked out if it's the player part of the spp that's swelling or additional social aspects of the app that sre growing in size unecessarily.all things said, a music player shouldn't really need to be 75mb+.the android install on my htc m8s is about 13mb, by comparision, less than 2 thirds of the install size.

  • REST API for download event

    Is there a way to get events using REST API when ever a file is downloaded.

    Hi,
    Seems that there is no such method in REST API can monitor the download event of file at this moment:
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    I would suggest you send a feedback to Office Developer Platform if there any expectation about SharePoint APIs or capabilities:
    Customer Feedback for the Office Developer Platform
    http://officespdev.uservoice.com/
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • Output trigger in invoice

    Hello, The problem i am facing is when invoice was created initially print output was not triggered automatically. This was due to user exit in the system. This porblem is rectified, There are some 1000 faulty invoices where print output was not trig

  • How to switch from data guard really time apply (redo) to archive log

    Hi Standby database configured with broker and applying the redo in really time; however, I want to change this to archive log apply mode without losing the broker configuration. Is it possible? If it is not possible to use broker to do archive log a

  • Managing Smart Cards (alladin + crypto provider)

    hi Does anyone know how to get work cards Aladdin, with crypto provider (CryptoPro (http://www.cryptopro.ru/) or signal-com (http://signal-com.ru/)) in windows 2003r2 or 2008r2?

  • Hiding Query Region Using PPR

    Hi All, Have used POV to create a boolean trannsient attribute and the value for that is changing perfectly, but when I'm trying to set it as value for Rendered property of Query Region, that is not working as expceted, not able to hide Query Region

  • Upgradation Path for 4305G DMP 5.2.1 to 5.3

    Hi , I have a DMP 4305g running on firmware 5.2.1 and DMM 5.3 ! So i understood that we have to upgrade the firmware of DMP  to 5.3 version. Shall i directly upgrade 5.2.1 -> 5.3 or I have to go for 5.2.3 as a upgradation path. Honestly i am not able