A simple example of RESTful webservice in atg

Hello

I'm looking for a simple example create a RESTFul Web service in atg. I went through the documentation of the atg, but there little confusing and complicated to start with.

Please help me.

In the ATG, we deal with some core components that has references to java classes.

Jersy unknown components of atg abt nuclues and there by cannot take advantage of core component.

And we must write annotation in each class/method in Jersy.

But with ATG rest MVC, just using configurations (actors) you can do just about any rest service component without touching the java class.

Peace

Shaik

Tags: Oracle Applications

Similar Questions

  • Simple examples of analog output USB-6343

    I've tried passing by 'find' examples and does not know how to find what I want.

    I'm doing a simple analog output on a USB-6343.  Examples of waveforms say they work with the USB-6343, but I really don't want a waveform, just analog of output does not exceed 10 Hz speed of renewal.  Some of the more simple examples show that they work with the pcie-6343 but do not list USB-6343.

    I worked with USB-6009 in the past, but when I try to use an analog output task that uses 1 sample on request, I get the error "not buffered operations clocked by the hardware are not supported for device and channel type.»  Set the size of greater than 0 buffer, do not set up the timing of the sample clock or the value Type of sample On Demand time"

    I tried samples N, 100 samples to write to 10 Hz - the same error.  Samples of continuous - same error.  1-sample - timed HW - same error.

    There is a series of examples of I/O for the X series?  Is it possible to search the device examples rather than go through all the examples and by checking the list of devices individually?

    Is 'size of the buffer' the 'writing samples"in MAX?

    After contacting the support I was provided with the names of the more simple examples for analog i/o:

    Analog output-Gen power Update.vi

    Analog Input-Acq & chart voltage-Int Clk.vi

    They are found in the getting started screen of

    Click 'Find examples' near the lower right corner

    Filter the results to material by clicking on the menu drop down for the material in the lower left corner and selecting USB-6343 (only connected equipment will be displayed)

    Don't forget to check the box "limit results to material" below.

    In the center pane, double-click 'Material Input and Output'

    Double-click DAQmx

    Path for the analog input - double-click Acq & chart analog measures - double click on tension - tension-Int Clk.vi

    Double click on analog generation - double click on Power - Gen Update.vi of analog channel output voltage

    The examples are for the single data point.  Samples and exit multiples are produced by putting the writing or reading VI inside a loop.  The beginning and the clear functions should be out of the loop.

    Additional information, I need technical support was how material-filter results and identification of more simple examples which were not obvious from the examples of names.

  • Simple example of child to access the Parent data

    Hi all

    Im trying to explore and make sense of OOP.  Ive been learning as much as I can, but why cant seemt to extract data from a class parent child.  Ive put the child to inherit from the parent and creates an accessor parent to read and write.  I write the data in the parent class and then try to read data from the child's class. Is there something im missing? Anyone have or know a link to a simple example of this?

    Thank you

    Matt

    Ok.  I think you have a misunderstanding of the works the POO here.  The idea with OOP is that you can pass the child object in the parent methods and is in any case on this object.  Your drawing should look like this:

  • Simple example of narrow Panel? in the Structure of the event does not work - please advise

    I'm trying to implement a close interception single panel.   In the LabVIEW 2010 VI joint, I expect to see a dialog box indicating now 'close [filename]' which will then stop the VI but NOT closing the Panel.

    Instead, I see the program to run in to highlight up to the loop, execution mode then when I press the button window close Windows (X) in the upper right window of the façade, two program windows close immediately.

    Can someone tell me why this discrepancy? does not work?

    OK, this version works as expected.  I was able to find the reference 'this VI' to the title of the programming VIs and functions - functions and Application control screw - VI reference server.  (Not easy to find the help of LabVIEW.  I actually copied it from another VI.)

    It displays the message 'Now close [filename]' then put a Boolean True to stop the loop of the file.

    Thanks to those who pointed out I was making reference to an array of screws rather than a single VI.

    I think it is a very simple example that should be able to find by searching for ways to replace the narrow Windows file service.

  • A simple example of filling the data from Json to a ListView.

    I want a simple example to inflate a listview with Json data.

    Examples of the sample do not work

    as we have a code example

    App.cpp

    App::App()
    {
        Page *root = new Page;
        ListView *listView = new ListView;
    
        // Create the data model, specifying sorting keys of "firstName" and "lastName"
        GroupDataModel *model = new GroupDataModel(QStringList() << "firstName"
                                                   << "lastName");
    
        // Create a JsonDataAccess object and load the .json file. The QDir::currentPath()
        // function returns the current working directory for the app.
        JsonDataAccess jda;
        QVariant list = jda.load(QDir::currentPath() +
                                 "/app/native/assets/employees.json");
    
        // Insert the data into the data model. Because the root of the .json file is an
        // array, a QVariant(QVariantList) is returned from load(). You can provide a
        // QVariantList to a data model directly by using insertList().
        model->insertList(list.value());
    
        qDebug()<<"the size of model is "<size()<<"\n";
    
        // Set the data model for the list view
        listView->setDataModel(model);
    
        // Set the content of the page and display it
        root->setContent(listView);    Application::setScene(root);
    }
    

    with the file employees.json of assets

    [
        {
            "firstName" : "Mike",
            "lastName" : "Chepesky"
            "employeeNumber" : 01840192
        },
        {
            "firstName" : "Westlee",
            "lastName" : "Barichak"
            "employeeNumber" : 47901927
        },
        {
            "firstName" : "Jamie",
            "lastName" : "Lambier"
            "employeeNumber" : 51239657
        },
        {
            "firstName" : "Denise",
            "lastName" : "Marshall"
            "employeeNumber" : 41239520
        },
        {
            "firstName" : "Matthew",
            "lastName" : "Taylor"
            "employeeNumber" : 01963597
        },
        {
            "firstName" : "Mark",
            "lastName" : "Tiegs"
            "employeeNumber" : 65321951
        },
        {
            "firstName" : "Karla",
            "lastName" : "Tetzel"
            "employeeNumber" : 03266987
        },
        {
            "firstName" : "Ian",
            "lastName" : "Dundas"
            "employeeNumber" : 29472012
        },
        {
            "firstName" : "Marco",
            "lastName" : "Cacciacarro"
            "employeeNumber" : 56446691
        }
    ]
    

    On the run, it shows a white screen with no list control.

    Thank you all for your answers, actually problem was not in the code. The problem is in the employees.json file I downloaded from developer site.

     

    [
        {
            "firstName" : "Mike",
            "lastName" : "Chepesky"      // after this ',' is missing
            "employeeNumber" : 01840192
        },
        {
            "firstName" : "Westlee",
            "lastName" : "Barichak"      // after this ',' is missing
            "employeeNumber" : 47901927
        },
        {
            "firstName" : "Jamie",
            "lastName" : "Lambier"    // after this ',' is missing
            "employeeNumber" : 51239657
        },
    
    ....................so on]
    

    means the error occurred when parsing json. Error very stupid . I have checked it sooner.

    So who uses this example json file in their applications. Please correct first, and then use.

     

  • How to call the REST Webservices via native J2ME app.

    Hi, can someone help me how to call REST Webservices via native J2ME app. I don't want to use the HTTP request. Is there a possible way to call via AJAX, if so how? I use only the RIM and the J2ME API. Thank you, joy

    JSON is just the format fo the data returned.  So all you do is make a standard HTTP call, get the data and analyze using JSON.  OS 6.0 includes JSON, but OS 5.0 doesn't work, then you will need to get a JSON library if you want to use in the 5.0 OS.

    You might find them useful:

    http://supportforums.BlackBerry.com/T5/Java-development/JSON-library/m-p/573687

    http://supportforums.BlackBerry.com/T5/Java-development/sample-code-implementing-JSON-in-your-applic...

  • The Post of Restful Webservice method using

    Hi all

    I use jdev 12.1.3

    I'm new to the MAF.

    I want to use the Post of Restful webservice to MAF method. I have a variable defined in the service binding Restful web and if I use it with a HTTP client works not very well.

    Please let me know how to use the Post of service Restful MAF method.

    I made a data control to the Get method with json respose. Can I use the same data control with a different method for the position.

    Kind regards

    KP

    It depends on what awaits your REST webservice as input.

    You can try passing param1 = 123 & param2 = abc & param3 = load useful s bat

    The first feature film in references of function in the file application.xml - MAF is displayed by default.

  • Response of ATG10.1.1 REST webservices with respect

    Hello world


    I'm under ATG 10.1.1 REST webservieces to access the giftlist of user particular. when I run the service with http://localhost: 8080/rest/repository/atg/commerce/gifts/Giftlists/gift-point

    This URL. I get a respose as below.

    which returns

    {"article-gift": []}

    {

    "atg-rest-component-path': ' / atg/commerce/gifts/Giftlists."

    "atg-rest-point-descriptor': 'article-gift."

    'atg-rest-repository-id': 'gi140001 '.

    },................

    1. how to change or use this response for the name of Giftlist?

    as I'm naïve to REST Web services. can someone explain to me please better in this REST.

    2. we have a module Mobile REST to ATG 10.1.1 in that I found a few jsp how can we use these jsp?

    Thank you and best regards,

    Ravi

    Try this URL for the name property of access

    http://localhost: 8080/rest/repository/atg/commerce/gifts/Giftlists/gift-point/gi140001/displayName

    See the following URL for more information:

    URL of Oracle ATG Commerce Web Services - REST Web

    Get the items from the repository

  • Secure RestFul WebService call with basic authorization via https

    Hello

    is it possible to call a secure RestFul WebService with basic authorization via https to APEX?

    Database: Oracle 11g XE
    APEX: 4.2.1

    I have a solution by calling the Java Web service, which was called from the database via a scheduled task (run).

    As my hosting partner does not support Java, I'm looking for another option.

    Concerning
    Markus

    Hello

    Oracle XE can USE a wallet with utl_http without problem. Just create a portfolio from a version supporting the creation of the portfolio and copy this portfolio to your XE machine and use it. It really works.

    ---
    Lavenu
    MaxApex accommodation
    http://www.maxapex.com

    Published by: Richard on January 23, 2013 23:32

  • Simple example of a combobox control displays data in a CF data source

    Can someone tell me a simple example of a Flex 3 combobox that displays data from a ColdFusion data source?  I can't find a simple example.  As always, thank you!

    I'm sure that's what you're looking for

    http://blog.tygate.com/?p=463

  • Is there a simple example, I can see how to connect to a database using actionscript and Flash 8? (not with components)

    I've looked everywhere for a simple example "hello world", on how to connect to a database, pass a parameter and returns a dataset object. I'd like one that uses no components. (Actionscript only). Who uses ColdFusion 7.x and Flash 8. Can someone point me to one?

    Thanks Craig, I noticed the example, but it was meant for Flash MX, and Flash 8 documentation, the NetServices is now obsolete. Anyway, I posted my question on another site and some provided me with a simple example. Here is the url if anyone is interested... sample

  • Simple examples out there using external resources JMS?

    We designed the project with EJB3 and need a way to communicate back with AquaLogic 6.0. We'll do this via JMS, I was wondering if anyone had any simple examples of using JMS like that?

    Here is a link to a zip file which may help you: http://www.4shared.com/file/138563568/ed8cdb75/MQ_Series_with_ALBPM.html

    Inside of this zip, there is a PDF that documents how to hit MQ of ALBPM. It is not official Oracle documentation, but is what we wrote a few years when we were working with MQ JMS integration.

    He wrote for ALBPM 5.7, but three external resources, you will need are documented:

    you will need an external resource Java that introspects the POJO Java 6

    a JNDI provider / J2EE Application Server and

    a JMS queue / JMS Messaging Service

    Be sure to use the generic JMS client application I've included with this zip. This allows to quickly test connectivity for WebSphere MQ (or any other JMS broker). You sometimes find you spend hour trying to integrate with back-end services (be it a JMS broker or another type of integration) to find out hours later that the parameters provided were incorrect. Once it has been tested and work ouside Oracle BPM, it is usually easy to get things working inside the Oracle BPM.

    Hope this helps,
    Dan

  • Simple example to configure read-only (materialized view) replication

    Hello world

    Can someone provide me with simple example to configure read-only (materialized view) replication?

    Also we have to manually re-create all indexes of the replicated database?

    Thank you
    Ken

    See

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14226/repmview.htm#i34980

    A MV is separated from the source table. You don't have to 'recreate' index. You can create separate (or the same) index on the MV - don't forget a MV can be a join of tables 2 or more! (Do not create a Unique Index on the MV)

    Hemant K Collette

  • RESTful Webservice - Page not found

    Using web services in the SQL Studio wizard, I created a simple Restful web service with a query GET the resource Type of media. The SQL statement Gets the mime_type and a blob value in a table via a parameter ID. The code works fine in my standalone environment (apex 4.2 listener 2.1) but on the cloud, when I bind the variable: ID and press the test button, it always returns "Page not found". Even when I call the ws via APEX_WEB_SERVICE. MAKE_REST_REQUEST, it returns, "Page not found".

    The test screen creates the following URL: https://database-xxxxxx.us1.oraclecloudapps.com/apex/export/get/1

    If I run the present in the browser, it also returns "Page not found". By looking at the URL, it seems wrong. Usually, the workspace is also a part of the url (after the/apex/piece). Here it is absent. However, even when I add, the error is "Page not found". I checked that the workspace has enabled Restful web services and I connect with the admin user who has all three SQL Dev granted permissions.

    Anyone seen this before? I have I have some missing permission or something wrong?

    Thank you

    Steve

    Hi Steve,.

    + > The code works fine in my standalone environment (apex 4.2 listener 2.1) +.
    Just to clarify things, which I assume is the version that you have installed locally, Oracle Application Express Listener 2.0.1 is the latest available listener and is running on the cloud. Oracle Application listener 2.0 adds support for connecting to multiple databases and includes support for a number of different strategies for routing requests to the appropriate database, each of which is described in the earphone Installation and Configuration Guide (see http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/config.htm#CBDCHGDF). All the strategies are based on the review of the request URI and choose the database based on some sort of football game against the URL and according to the chosen strategy, the URL will be different.

    + >... when I bind the variable: ID and press the test button, it always returns "Page not found"... The test screen creates the following URL: https://database-xxxxxx.us1.oraclecloudapps.com/apex/export/get/1+
    To help identify the cause of the error you see, could you please confirm if the following details correspond to your RESTful service:

    * URI model: get / {id}
    * Resource Manager method: GET
    * Type of resource manager Source: Media resources
    * Requires secure access: No.
    * Source (corresponding to the following syntax): select mime_type, tbl_nameSET from table_name where none =: id

    NOTE: If you define a variable binding for a parameter, then the 'Set Bind Variables' option should be used instead of 'Test '.

    + > Usually, the workspace is also a part of the url (after the/apex/piece). +
    In your local environment, requests are routed through the prefix setting of path to the URL of the RESTful Service (see http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/config.htm#CBDJIEGH). On your local instance, navigate to Administration > manage, set preferences for Workspace, and in the region for SQL Workshop, you will find the item Path Prefix. The default access path prefix is the short name of the workspace, which is what you see in your URL locally. However, another method of routing is used on the cloud, then you will not see the path of the prefix used it.

    Could you test the "oracle.example.hr" sample RESTful Service in your workspace and let me know if you encounter any problems by running one of the examples?

    Kind regards
    Hilary

  • Wanted: simple example of the class of data with a signal?

    Been looking for a tutorial on that in the examples and find nothing.  Maybe I missed it?

    I'm looking for an example of simple data class that has a public method to define an observer, similar to this:

    class MyDataClass : QObject // I'm guessing I would subclass QObject
    {
      public:
      int getSomeValue();
    
      signals:
       void setObserver(const QObject* receiver, ...?);
    
      private:
      int m_someValue;
    };
    
    // ...and cpp file with setting the connection
    

    There in this code example?  If this isn't the case, could someone put an example of class?

    I've seen samples in QML, but I'm looking for C++.

    Thank you!

    #include 
    
    class Settings : public QObject
    {
        Q_OBJECT
    public:
        explicit Settings(QObject *parent = 0);
        static Settings *sharedInstance();
    
        QString getTargetIPAddress();
        void setTargetIPAddress(const QString &ipAddress);
    signals:
        void targetIPAddressChanged();
    };
    
    ---
    
    #include 
    
    #include "Settings.h"
    
    const char *targetIPAddressKey = "targetIPAddress";
    
    Settings::Settings(QObject *parent) :
        QObject(parent)
    {
    }
    
    Settings *Settings::sharedInstance()
    {
        static Settings settings;
        return &settings;
    }
    
    QString Settings::getTargetIPAddress()
    {
        QSettings settings;
        QVariant v = settings.value(targetIPAddressKey);
        if (v.isNull())
            return "192.168.0.1";
        return v.toString();
    }
    
    void Settings::setTargetIPAddress(const QString &ipAddress)
    {
        QSettings settings;
        settings.setValue(targetIPAddressKey, QVariant(ipAddress));
        settings.sync();
        emit targetIPAddressChanged();
    }
    
    ---
    
    Some other class:
    
    .h:
    protected slots:
        void targetAddressChanged();
    
    .cpp:
    [...constructor...]
        Settings *settings = Settings::sharedInstance();
        QObject::connect(settings, SIGNAL(targetIPAddressChanged()),
                     this, SLOT(targetAddressChanged()));
        targetAddressChanged(); // for initial setup
    [...]
    
    void UDPClient::targetAddressChanged()
    {
        Settings *settings = Settings::sharedInstance();
        // Do something with settings->getTargetIPAddress()
    }
    

    I hope this will help.

Maybe you are looking for