Data Services - REST-ful URLs and path substitution  parameters

It is common for REST-full APIs (implemented on top of HTTPService) to require URL paths to contain substitution parameters.  For example, if my service end point is defined as 'http://...../rest/users/{id}/workspaces', then it would be nice if the generated service wrapper included a parameter for the substitution values - ie "function get_userWorkspaces(id:String) : AsyncToken "

I found a technique to achieve this using a custom Serializer for the Service Operation that overrides the "serializeURL" method.  However due to a bug (see SDK-21872 ) the technique doesnt work in FB4 beta 1.  See code snippet below...         
package services.listeningpost
import com.adobe.serializers.xml.XMLSerializationFilter;
import mx.rpc.http.Operation;
public class ListeningPost extends _Super_ListeningPost
protected var pathParams:Object = [];
public function setPathParam(key:String, value:String):void
pathParams[key] = value;
public function getPathParam(key:String):String
return pathParams[key];
private var _serializer:LPXMLSerializationFilter;
public function ListeningPost()
    _serializer = new LPXMLSerializationFilter(this);
    super;
    for each(var o:Operation in this.operations){
    if (o.serializationFilter is XMLSerializationFilter)
    o.serializationFilter = _serializer;
// Private class below provides custom Serializer
import com.adobe.serializers.xml.XMLSerializationFilter;
import mx.rpc.http.AbstractOperation;
import services.listeningpost.ListeningPost;
class LPXMLSerializationFilter extends XMLSerializationFilter{
private var _service:ListeningPost;
public function LPXMLSerializationFilter(service:ListeningPost)
super();
_service = service;
override public function serializeURL(operation:AbstractOperation, obj:Object, url:String) : String
var useUrl:String = super.serializeURL(operation,obj,url);
var keys:Array = useUrl.match(/\{([^\}]*)\}/g);
for each(var s:String in keys){
var r:String = _service.getPathParam(s);
if (r != null)
useUrl = useUrl.replace(s,r);
return useUrl;

Similar Messages

  • Hi no none of my other data services are working normally and when I try to send my picture messages it says not delivered and tells me it's unable to send.

    Hi no none of my other data services are working normally and when I try to send my picture messages it says not delivered and tells me it's unable to send.

    Hello Joe,
    I found a few resources you can use to troubleshoot the iMessage issues you are experiencing. 
    I recommend reviewing this article first:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    If your Apple ID is activated in the Messages Settings and you still cannot send and receive iMessages, I recommend following the steps in the section titled "If you still can't send or receive iMessages" in the following article:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Data Services job server crashed and won't start backup

    Hello,
    I was running some jobs on data services 4.2 sp3  windows server 2012R2 and they all failed and the job server went down. None of the jobs that failed had an trace file or error log in the management console. Now i am unable to open data services designer or data services server manager, when I try to open them nothing happens. Also the SAP Data services job service cannot be started. The job server was running fine for a few weeks before this. This has happened twice already today the first  time the only way i was able to fix it was run the repair on the dataservices install. Can someone please help me what know what is causing this and how it can be fixed.

    Hi Tyler,
    It was Windows specific issue please refer the below link & KBA
    How To Fix Windows Service Error 1053
    http://windows-exe-errors.com/how-to-fix-windows-service-error-1053/
    1986247 - Error "Windows could not start the BusinessObjects Data Services service on local computer" occurs in Data Services 4.1
    https://service.sap.com/sap/support/notes/1986247
    1992260 - Error: Windows could not start the SAP Data Services service on local computer, after upgrading SAP data services and deleting job servers SAP Data Services 4.2
    https://service.sap.com/sap/support/notes/1992260
    Hope this will help!!!!
    Thanks,
    Daya

  • Data transfer between external URL and IC WebClient

    Hi All,
    In IC web we are launching an external URL how can we fetch the data of the external URL to IC Web interaction record.
    Thanks,
    Raj.

    If it is not much data..you can use query string..

  • Creating URL and fetching the parameters

    Hi,
    In my webdynpro application I hav to create a URL that shud take me to a new IView and in that URL I have to give certain Parameters that I have to fetch as application parameters.I am not aware how to create URL and give the PCD path of the new iView and the Parameters that I hav to fetch. I have seen some of the threads but I am not able to find out the clear picture.Could anyone help me out?
    This is really urgent.
    Thanxs in advance.

    Hi,
    You can navigate from one view to another using portal navigation
    WDPortalNavigation.navigateAbsolute();
    The above method needs various parameters which are shown<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm">here</a>
    Warm Regards,
    Murtuza

  • Service Registry documentation URL and deleting published services?

    Hello,
    We are using SAP NetWeaver PI 7.1 SP 7. Do anyone know how you can control the published Documentation URL for published Service Interfaces in the Service Registry when you publish service interfaces directly from the ESR (from the WSDL tab on a Service Interface)?
    Do anyone know if you can delete published service interfaces in the Service Registry if a service interface have been deactivated/deleted/is not used any more?
    Regards,
    Markus Johansson

    Hi Markus,
    There is anothre approach to delete services using API's.
    Determine the WSDL Url of your Services Registry.
    - Open SAP NetWeaver Administrator and choose SOA Management Application and Scenario Communication Single Service Administration .
    - Search for ServicesRegistrySi and copy the Services Registry WSDL.
    Open WS Navigator.
    - In the WSDL Url field, enter the Services Registry WSDL and choose Next.
    - All Services Registry API operations are displayed.
    - Select operation hideServiceDefinitions and choose Next.
    - Enter either the UDDI key or the logical key of the service definition you want to delete and choose Execute.
    Both keys are displayed on the General tab in the Services Registry.
    In case SR shows you as having no logical key for the service you are interested in removing.
    There is another operation, findServiceDefintions, that can be used to search a name that will return the UDDI key. Take that value and plug it into the hideServiceDefintions uddiKey value.
    Regards,
    Jitender

  • How to encode the data to HexDec in url and decode back to data from HexDec

    Hi,
    Pls can any one give me solution on this.

    Do you man you need URL decoder? If so then java.net.URLDecoder.

  • On my start page a line of data, e.g., "Most Visited" - "Getting Started," 'Latest Headlines," appears between the data line containing the URL and the tab line; how can I clear this line?

    This is about as specific as I can get.

    That will be the bookmarks toolbar. To hide it, in the View menu select Toolbars, then click on the "Bookmarks Toolbar" entry to de-select it.
    You can also control-click on a toolbar and click on eh "Bookmarks toolbar" entry.

  • Whats a good way switch between a real and mock data service?

    I have a new Flex application...and am contemplating the use of the Mate mock remote object capability.
    However, I'd like the application to be able to switch back and forth between a real and mock data service without recompilation.  And without loading the mock service objects unless they are needed.
    Whats a good way to handle this switching without recompiling the application?

    The only way I can think of not having ANY mock services in the production code is to take them out manually.  Your program for mocking purposes is going to have to be able to know where these services/object are and how to contact them.  I'm sure if it had to be done , you could use some mass of modules and event maps.
    Sincerely ,
      Ubu

  • Flex Data Services tutorial error

    In the "Before You Begin" section of the Flex Data Services
    tutorial in "Getting Started with Flex", the first bullet is
    incorrect. It text should be:
    "Ensure that you have installed the Flex Data Services Beta 3
    release and that you can run the applications in the samples web
    application."
    The installation instructions are located here:
    http://www.adobe.com/go/flex2_installation
    The tutorial zip file is located here:
    http://www.macromedia.com/go/flex2beta1_quickstart_tutorial_zip
    - Mike Peterson
    Adobe Flex documentation team

    Hi, I found some more "issues" with these data services
    tutorial.
    First of working with the notes example at first I couldn't
    get the two browsers to talk to eachother until I found this
    comment by funk_sf on the livedocs:
    quote:
    after some searching, I located a link to the tutorial.zip
    here:
    http://www.macromedia.com/go/flex2beta1_quickstart_tutorial_zip.
    i unzip'd the contents into my samples directory so that I had the
    following path: C:\fds2\jrun4\servers\default\samples\tutorials
    the xml file in WEB-INF for the standalone flexbuilder 2b3 is
    located at C:\fds2\resources\config as mentioned in the comments on
    the previous page (
    http://livedocs.macromedia.com/labs/1/flex20beta3/00000129.html)
    as for creating the tutorial1.mxml file, i created a new Flex
    project with the following settings (this is from memory, so
    hopefully i recall all the steps right):
    File->New Flex Project
    How will you flex application access data? -> Flex Data
    Services -> Compile application locally in Flex Builder
    root folder: C:\fds2\jrun4\servers\default\samples
    root url:
    http://localhost:8700/samples/
    I left the build paths to their defaults (ie. blank)
    named the main application file: tutorial1.mxml
    output folder: tutorial
    output folder url: [blank]
    So I followed his advice, deleted my project and made it in
    the samples directory and the notes application started to work, so
    all appeared good.
    Until I was making the Java example and I'm now faced with
    the following errors:
    Severity Description Resource In Folder Location Creation
    Time Id
    2 Definition samples.contact:Contact could not be found.
    tutorial2.mxml Tutorials line 8 6 juni 2006 16:36:25 20
    Severity Description Resource In Folder Location Creation
    Time Id
    2 Type was not found or was not a compile-time constant:
    Contact. tutorial2.mxml Tutorials line 13 6 juni 2006 16:36:25 21
    I'm not sure what is happening, I think it can't find the
    data service files but I don't know how to make it so that it does
    find those files, the manual is still a bit vague on that and when
    I try to run this application it just shows a blue (flex) screen.
    The code I'm using is straight from the example documentation after
    tinkering around for 2 days to get this to work I thought using
    original code is the best way to go.
    My application tries to run from
    http://localhost:8700/samples/bin/tutorial2.html
    The documentation states:
    Open the following URL in two browser windows:
    [L=http://localhost:port/samples/tutorials/tutorial2.mxml
    The screenshots in the documentation show:
    Window1: /tutorial/tutorial1.mxml
    Window2: /dataservice/contact/tutorial_step4.mxml
    Now I'm just confused, tutorial1.mxml is my notes application
    which was the previous tutorial and there was no mention of a
    tutorial_step4.mxml file ?
    Someone help me please with where to place these files and
    why so I can understand what is happening here.
    Thanks :)

  • Data Services for CairgnormStore sample

    I am trying to run CairngormStore for Flex 2 end-to-end.
    It looks like the only deployment/configuration problem left
    is the configuration of Data Services.
    What is already done:
    - Flex 2 SDK is installed
    - Flex 2 builder is up and running
    - Flex 2 Data Service Express is installed with the option
    "JRun"
    - Cairngorm Library is installed
    - Project CairngormStore_2 is created in FlexBuilder (
    Project type "Flex Data Service")
    - the path to the Cairngorm Library is defined
    - the path to the JRun is defined
    - CairngormStore is build OK
    - JRun starts successfully
    Attempt to run the CairngormStore results in run-time alert
    message "Products can't be retrieved".
    Obviously my deployemnt /configuration of Data Services on
    the client and server side is not complete.
    Given pretty involved combination of declarative
    configuration parameters and configuration files it is
    not easy to figure out what the problem is and how to cure
    it.
    Any hint, advise will be greately appreciated.

    matamel, thanks for the reply.
    The point is that there the app does not crash, so there is
    not much information in the log.
    First, after the execution of
    public var model : ShopModelLocator =
    ShopModelLocator.getInstance();
    there is a log message: "didn't find all selected items"
    and later after execution of
    CairngormEventDispatcher.getInstance().dispatchEvent( new
    CairngormEvent( GetProductsEvent.EVENT_GET_PRODUCTS ) );
    there is a message issued by
    Alert.show( "Products could not be retrieved!" );
    So there is not much to analyze so far.

  • Is turning my data services on abroad costing me???

    i am abroad, using wifi with data and roaming is off. but internet or bbm is not working. soon as i turn my data services on, my bbm and internet works. Is this costing me???

    Hi and Welcome to the Community!
    Only your carrier (Orange, as per your profile) can answer your question for certain...each carrier sets their own policies about what/when billing happens. But, from what you describe, it should be that those services are transporting via WiFi. You can always check the path that BIS is using via Manage Connections > Services Status. However, even if it's via WiFi, you should still talk to Orange to see if perhaps they have some other billing scheme...I've heard of a few lately that actually seem to be blocking ALL BIS via WiFi.
    Good Luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Error while registering a new repository on Data Services 4.0

    Hi all,
    I've a BO Enterprise Platform 4.0 + Data Services 4.0 installation, and I'm trying to register a new local repository in addition to the installation default one. I followed these steps:
    1) Create a new database schema for the repository
    2) Created the local repository with repository manager
    3) Created a new job server associated with the new repository through the server manager
    4) Tried to register the new repository in the CMC
    I wasn't able to complete the step 4 since i got the following error "unable to connect to profile server".
    Any clue?
    Thank you very much
    Pietro
    Edited by: Pietro Castelli on Jan 30, 2012 12:03 PM

    what is the complete version of DS 4.0 ? also check the REPO_TYPE in AL_VERSION table, for local repo this will be NULL

  • Is BOE 4.0 integrated with Data Services XI 4.0

    Hi,
    I have gone through some blogs and documentation on Data Services XI 4.0 and some where it is mentioned that BOE 4.0 is integrated with Data Services XI 4.0. Is it true? If it is true then i want to know how can we integrate BOE 3.1 SP2 with data services XI 4.0 because right now we are using BOE 3.1 SP2, BW 7.01 and want to install Data Services XI 4.0 unless there is no compatibility issue between them.
    I need this information immediately because we have to install data services if its compatible with BOE 3.1 SP2 and BW 7.01.

    Hi Aditya,
    From the XI 4.0 Data Services Upgrade Manual:
    2.1 Major changes in Data Services XI 4.0
    Unlike previous releases of Data Services and Data Integrator, SAP BusinessObjects Data Services
    XI 4.0 introduces central user management, which relies on SAP BusinessObjects Enterprise. Users
    are authenticated against the SAP BusinessObjects Enterprise security, and repositories are registered
    in SAP BusinessObjects Enterprise.
    You can use either an existing SAP BusinessObjects Enterprise XI 4.0 installation to manage Data
    Services users and repositories, or SAP BusinessObjects Information platform services, which is availabe
    to all Data Services customers and contains the required SAP BusinessObjects Enterprise services for
    user management.
    For information about installing SAP BusinessObjects Information platform services, see the SAP
    BusinessObjects Data Services Installation Guide.
    So it sounds like you can't use an exisiting BOE XI 3.1 CMC, but would need to upgrade it to XI 4.0 or use the SAP BusinessObjects Information platform services, which is included with XI 4.0 Data Services.

  • Can we install Business Objects Data Services XI 3.2 with BOE 3.1 SP2

    Hi,
    I want to install SAP Data Services XI 3.2 and BW 7.1 and BOE 3.1 SP2 are already in place. I want to know befor installation of Data Services that it is compatible with BOE 3.1 SP2. The documentation for Data services tell only about the compatibility of BW and not about BOE. If anybody has installed Data Services XI 3.2 with BOE 3.1 or knows about version compatibility, please shed some light.

    Yes,
    I have tried install BOE 3.1 SP2 and DS 3.2 SP2 together on 1 machine Windows 2003 64 bit before.
    They works fine together.
    Just make sure you deploy Tomcat correctly for DS Management Console.
    Hope this helps,
    Henry Le

Maybe you are looking for

  • Need help with SMS message telling me I have a voice mail, need to get rid of that

    I have done a few searches on the internet and have found nothing that fixes my problem. I use two message boxes/folders, one is for phone calls and the other is for SMS/MMS messages.  I need to keep these this way (I am not searching though 100 text

  • 11.5.10.2 concurrent requests

    Hi All, OAM application Dashboard request is ending with phase completed and status Error,below is the log file of the same. Application Object Library: Version : 11.5.0 Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved. FNDOAMCOL mod

  • Remove HTML tags from a string

    I have a string that contains a couple of HTML or XHTML tag, for example lv_my_string = '<p style="something">Hello <strong>World</strong>!</p>'. For a special use case, I want to remove all HTML from that string and process only the plain text lv_my

  • Optimization PDF, make compatible with

    With Acrobat Pro, there is a command(order) (as we can make File, Register(Record) for example) in programming, to make the equivalent of: optimization PDF, Make compatible with and to choose a previous version of acrobat?

  • RF loop through failing when high eco kicks in

    I took delivery of my shiny tiny G4 2100 on Friday - it's immense! However, it does seem to have a bug in its handling of RF loop through... Last night I dropped the box into standby and switched to my TV's on-board tuner. My G4 was configured for hi