Code samples for using HTTPServices in Cairngorm framework

Hello there,
Does anyone have any samples for retrieving data through
HTTPServices using the cairngorm framework model. All samples on
the web, as far as I have searched, lead only to remote services
mode of communication only.
Any help here would be greatly appreciated.
Thanks,
Arun B
[email protected]

I wrote a sample code modifiying the Remote Object examples
.. I got this working now . Please ignore this message, just incase
anyone needs my sample just email me..

Similar Messages

  • Code sample for using change document function modules

    Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS?  I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material.  I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
    Thanks!

    hi check this..
    CHANGEDOCUMENT_READ_HEADERS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    CHANGEDOCUMENT_READ_POSITIONS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    Check this link.
    http://www.sap-img.com/mm001.htm
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM

  • Why do so many code samples here use Arrays?

    I've seen many code samples here use Arrays. Why? I much prefer to use ArrayLists, and Vectors if I need synchronization or HashSets if I require uniqueness. I don't understand why people are using Arrays when the Collection classes are so useful. You can change the underlying datastructure without changing any of the access code.

    I guess they are faster...
    public class Test1 {
         public static void main(String[] args) {
                Integer zero = new Integer(0);
                   long start = System.currentTimeMillis();
                   for (int j = 0; j < 1000; j++) {
                        Integer[] array = new Integer[10000];
                        for (int i = 0; i < 10000; i++) {
                             array[i] = zero;
                   long finish = System.currentTimeMillis();
                   System.out.println(finish - start);
                   start = System.currentTimeMillis();
                   for (int j = 0; j < 1000; j++) {
                        ArrayList arrayList = new ArrayList();
                        for (int i = 0; i < 10000; i++) {
                             arrayList.add(zero);
                   finish = System.currentTimeMillis();
                   System.out.println(finish - start);
    }~460 ms for array
    ~1600 for ArrayList
    Still, the benefit of the Collections interface and the better OO design of code that uses these classes is probably worth it in most cases, IMO.

  • Code samples for SSLEngine?

    I am attempting to re-implement the SSL support in our product under the new non-blocking I/O model. SSLEngine seems to be the starting point...but I can't find any code samples anywhere showing it working.
    Anybody have any ideas where to look?
    There used to be a whole suite of samples in the JSSE...but don't know where they are, now that the JSSE is part of J2SE :(

    SSLEngine is new in tiger (JDK 1.5), and as such, hasn't been released
    publically yet. I believe they are looking at sometime in Q1 2004 for the first
    public beta, and ships later in 2004. If you're a licensee, you can get early drops.Yup...I'm currently working with JDK1.5 b30.
    Anyway, SSLEngine will eventually have sample code, but nothing has been produced yet.
    On the whole, the non-blocking model takes some care to use correctly. The SSLEngine
    is pretty straightforward, but it's not as simple as SSLSocket.I'm aware of that - we've already rewritten our product to utilize java.nio. That's why I was
    hoping to find some code samples for the new SSLEngine class.
    To answer your other (implied) question, the sample
    code for JDK 1.4 can be found in the JSSE Reference Guide. See:
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#CodeExamples
    Thanks for the link...I guess I should have looked in the OLD jdk docs. The 1.5 docs
    don't include most of the 'guide' folder from previous releases.

  • Code Samples for SDK programming in Java

    I need a complete set of Code Samples for SDK programming in Java, like the one that is available in VB and .Net.
    For Example, if you look at the following directory of machine where SDK is installed,
    C:\ProgramFiles\SAP\SAP Business One SDK\Samples\COM DI\VB.NET
    we have following Sample programs in C Sharp, VB6, VB.Net
    01.BasicOperations
    02.MetaDataOperations
    03.UsingSBObob
    04.SerialAndBatch
    05.OrderAndInvoice
    06.ObjectsSchemas
    07.Permissions
    08.LoadFromXML
    09.BudgetEditor
    10.Messages Service
    11.Basic Company Settings
    12. Report Layout Service
    13.SaveXML
    14.ItemCycleCount
    15.ApprovalStagesAndTemplateServices
    16.Alert Management Service
    Iam looking for Samples like what is available above so that we can understand JCO better.

    Hi Sridharan,
    The only JCO samples I know of are posted in the [thread|;.
    Regards,
    Vítor Vieira

  • Tutorial & Code Sample for Developping Composites with CAF

    Do you have tutorials & Code samples for developping composites with CAF like Webdypro for Java as on this SDN site:
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Thanls, regards, peter

    Take a look at https://www.sdn.sap.com/irj/sdn/developerareas/xapps?rid=/webcontent/uuid/7b9b3834-0801-0010-6a9a-dc53e0db37f2">the [original link is broken] [original link is broken].
    cheers,
    Marilyn

  • Java code sample for uploading file

    Guys can some one give me a java code sample for uploading more than 1 file .
    I have a working example but that is only for one file.
    thanks
    M

    Throw it away. Go to the [http://commons.apache.org/fileupload] and carefully read both 'User Guide' and 'Frequently Asked Questions' sections.
    And please, please also carefully read this article: [http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html].

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • Dreamweaver as code generator for use in other applications?

    Hello and thank you in advance for your time and your help!
    I realize and apologize for this lengthy post but I had to explain my issue thoroughly...
    I've just begun teaching myself to use Dreamweaver CS3 (on an iMac running OS X 10.5.8 - Leopard) with the  "Dreamweaver CS3 Missing Manual". I don't know HTML or CSS but am very  willing to learn as much as I can. In the near future, I hope to create a  new website for my domain in Dreamweaver. However, I have an urgent and  immediate need and would like to know whether Dreamweaver can serve a specific purpose...
    My question is whether I will still be able to accomplish the following (even if it is by different means) once I convert to Dreamweaver from FrontPage AND whether or not I should abolish all of the current files at my web server and remove FrontPage extensions before I invest any time into making Dreamweaver my new tool for website development and maintenance.
    I have a domain hosted by GoDaddy and a rather old website that I created using FrontPage 2002 (on a Windows XP desktop). For over 5 years now, I've used FrontPage so that I can work WYSIWYG to generate HTML code that I use in my eBay auction listings. Recently, however, the "network folder" for my web server (on the Windows XP desktop) stopped accepting my password and I cannot find a fix for it. It's my opportunity to finally break from FrontPage but I'm hoping that, before I do, someone can tell me whether or not Dreamweaver can serve my interim and long-term purposes.
    I've been uploading image files using the "network folder" in Windows XP that I set up with FrontPage over 5 years ago. I "drag and drop" or "cut and paste" image files from my computer to my web server in Windows Explorer via the "network folder". Once the images are on the web server, I open FrontPage and ensure that the images show up in my web server files. I then open an existing .html document that I have saved on my hard drive, replace text and images within the file, save the file under a different file name, and then switch to code view where I copy the code directly from FrontPage into my eBay listing. This works perfectly well and has for over 5 years. I do not publish these .html files to the web, nor do I upload the .html files to my web server. They exist only on my hard drive and simply to provide the underlying HTML code for the eBay listings and nothing more. This method allows the images in my eBay auctions to be automatically sourced to their location on my web server without requiring me to do anything more than insert the image(s) from my web server into the .html document/file.
    I think I'm discovering that Dreamweaver works specifically with websites and I'm wondering whether I can use it more generically in this way. If I'm learning correctly, Dreamweaver is quite particular about web server files having an exact match to a root folder on my hard drive. I've defined my site within Dreamweaver and I've since downloaded all existing files from my web server to my hard drive within a folder that is designated as the root folder. However, when I now open an existing .html document (one originally created in FrontPage and stored on my hard drive only) and replace an image (by cutting the existing image and dragging the other from the "remote view" of the "files" pane) with one that exists both on my web server and in my root folder, Dreamweaver makes the source/reference path point to the image file on my hard drive and, as you know, that won't do if I transfer that code to my eBay listing. So I've uploaded the actual .html file to the web server within Dreamweaver (something that I never had to do with FrontPage) and now I can change the HTML code manually (or the source in the "properties" panel for the image) for the image source to include "http://mydomain/..." (it doesn't include that automatically as FrontPage did). That now seems to make the code work but I have to store my .html files on the server and I have to make that manual change.
    My question is whether I will still be able to do accomplish  the following (even if it is by different means) once I convert to  Dreamweaver from FrontPage AND whether or not I should abolish all of  the current files at my web server and remove FrontPage extensions  before I invest any time into making Dreamweaver my new tool for website  development and maintenance.
    Thank you very sincerely for taking the time to read this and for your response and good advice!

    Get Turbo Lister (a free page editing and listing tool from eBay).
    http://pages.ebay.com/turbo_lister/
    eBay uses some seriously flawed markup on their auction pages.  In fact, they don't even ALLOW you to use good code. You're better off using their proprietary tools for this.   IMO, DW is not the right tool for creating eBay pages.
    When you're ready to build a serious web site, come back to Dreamweaver.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Code samples for all

    I just wanted to share with the community there is a huge code base at
    koders.com
    Over 2 million lines of code....
    that has tonz of examples from almost every language. Check it out. It's pretty neat stuff if you have time to search through the code.

    Choosing between CMP or BMP depends on the business requirements.
    If your application has a lesser complex mapping, development time is less or there is no benefit is achieving a greater control over database transactions, CMP would be preferred. However, if you wish to have a greater degree of control over the database transactions and/or the database has complex mappings, it is better to opt for BMP.
    As for the code samples, you coild find hundreds of them if you do a Google search.
    Regards
    xH4x0r

  • Code sample for rtp server. please!

    hi
    I need to get a rtp server code, may it simple, in order to learn from it. Did not find anything from browsing. could anyone send me a sample or a link?
    thanx a lot

    Hi,
    thanks for the link. I have aleready checked that, i should have specified more..
    The thing is that these examples require that we have the client IP and port . But in case of a NATed client, I don t see how to get this client IP.
    I looked in JMF API desperately for getting client info. But the only thing I get is the Participant class. No IP address nor a port to work with.
    'Anyone has a clue, or a code sample of a small server that listen for clients and retrieve dynamically their IP/port? would help a Lot
    thanx

  • Any sample for using Captcha with Oracle ADF ?

    Hi
    Thank you for reading my post
    is there any sample available for using captcha with adf faces ?
    thanks

    Hi,
    nott hat I am aware of. However, I started a project to build a custom JSF component using
    http://jcaptcha.sourceforge.net/
    Not sure when I have this finished, but the goal is to have this working with ADF Faces (not sure if it makes sense to bind the component to ADF though)
    Frank

  • Any code samples for inputting content into content manager 8.1?

    Does anybody know where to find code samples of adding content to the Content Manager
    via the Java API?
    The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
    not 8.1.
    It's not clear from the documentation what the Repository and Path are supposed
    to be named. Perhaps we had a working example, this might help.
    Thanks
    Dave

    Does anybody know where to find code samples of adding content to the Content Manager
    via the Java API?
    The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
    not 8.1.
    It's not clear from the documentation what the Repository and Path are supposed
    to be named. Perhaps we had a working example, this might help.
    Thanks
    Dave

  • Code sample for body height on kinect v2

    Someone have a good code sample to get the body height on kinect v2?
    Regards.

    have you looked at:
    https://social.msdn.microsoft.com/Forums/en-US/eba64c3f-ab99-4ccc-932e-df82740a885d/kinect-height-measurement?forum=kinectv2sdk
    Carmine Sirignano - MSFT

  • Java code samples for java mappings

    Dear all,
    Can you please send me a sample scenario in which you used the java mapping.
    How do we assign the source structure,the target structure.
    How do we map source->target
    Do we give the source and target interface names in execute method)?
    if so where do we map the same.
    we have one to one mapping in graphical,message mappings which i worked with.
    is there any tool for making the same thing in java?
    Kindly send me the documents if any on java mapping to [email protected]
    Please clarify.....

    ref:
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    and
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingSample+Code&

Maybe you are looking for