Should I return the JSON object or object java SOA?

Hi gurus,

A question that I hope makes sense - can SOA return a JSON object JAVA object, not XML?

Thank you

Anatoliy


First "SOA" is not a thing, so it's difficult to give a Yes or no

This is a technical product feature if it will be possible to expose data in xml/json/etc. formats

When we look at the Oracle portfolio, we have a preview for example Oracle SOA Suite and Oracle Service Bus (other Oracle products can do the same thing).

With these two products, you will be able to represent your data in other formats in addition to XML.

some links to help you get started.

https://blogs.Oracle.com/jeffdavies/entry/using_json_with_oracle_service

http://Biemond.blogspot.nl/2010/05/HTTP-binding-in-SOA-Suite-11g-PS2.html

http://javaoraclesoa.blogspot.nl/2012/12/receiving-JSON-requests-in-Oracle-BPEL.html

Oracle Service Bus can also store Java objects in jms queues, so, like, that you can carry your data too.

http://www.xenta.nl/Blog/2011/09/01/Oracle-service-bus-processing-Java-object-messages-with-JMS-transport/

Hope it will be a little helpful

Tags: Fusion Middleware

Similar Questions

  • The use of SQLite to store the JSON object

    Hello

    Can someone guide on how to store a JSON object returned after the use of the Adobe provide parser JSON which returns the native object

    as

    resultobject = JSON.decode (data)

    Where the data is a JSON string.

    The 'result' object is a complex subject, but I would like to keep this object because it is in the SQLite database.

    I tried BLOB for the column type but doesn't seem to work to store this object. Ideally, I prefer to use this way to avoid the redesign of the main code as I am currently using the SharedObject method.

    Any ideas?

    Can you just store the data as a BLOB string?

  • How to return the sprite object?

    I want to load both image and add each image to each sprite object, like photo one sprite1 and photo b to spriteb, I know that I can load a pictue with the following code:

    loadImage ('a');
    loadImage ('b');
    private void loadImage(imagePath:String):void {}
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);
    Loader.Load (new URLRequest (imagePath));
    }
    private void onImageLoaded(event:Event):Sprite {}
    var loaderInfo:LoaderInfo = event.target as LoaderInfo;
    _loadedBitmap = LoaderInfo.Content as Bitmap;
    Return runPostImageLoad (_sprite);
    }
    private void runPostImageLoad(_sprite:Sprite):Sprite {}
    ... photo of //load
    }

    But I want to make my code like the following, because I want to use sprite1, sprite2 for something else:
    var sprite1:Sprite = loadImage ('a');
    var sprite2:Sprite = loadImage ('b');

    I don't know how to change the loadImage function to return the sprite object. Could someone tell me how to do?

    Thank you

    use:

    private var _sprite:Sprite;

    .

    .

    private void loadImage(imagePath:String):Sprite {}

    var loader: Loader = new Loader();

    Loader.Name = "Loader";

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);

    Loader.Load (new URLRequest (imagePath));

    _sprite = new Sprite();

    _sprite. AddChild ("Loader");

    return _sprite

    }

    private void onImageLoaded(event:Event):void {}

    var loaderInfo:LoaderInfo = event.target as LoaderInfo;

    _loadedBitmap = LoaderInfo.Content as Bitmap;

    runPostImageLoad();

    }

    private function runPostImageLoad (): void {}

    just draw the shape of the irregular part

    If (_loadedBitmap...) {

    _sprite.removeChild (_sprite.getChildByName ("loader"));

    _sprite. Graphics.drawRect (...);

    }

    }

    p.s. Please check the correct and useful.

  • How to check the JSON object properties available

    Hi I have a JSON of WebService object.

    How to check the available JSON object?

    ex JSON:

    {

    name: "someName".

    DESC: 'someDesc '.

    }

    How to check the available name?

    Because sometimes not available from the server name properties

    void MyClass::httpFinished(QNetworkReply* reply)
    {
    QString data = (QString) reply->readAll();
    bb::data::JsonDataAccess jda;
    QVariant variant = jda.loadFromBuffer(data);
    QVariantMap variantMap = variant.value();
    QString name = variantMap.value("name").toString();
    }
    

    I want to hide component Label on my .qml if name not available from webservice.

    Thank you

    Kaz32 wrote:

    Hi I have a JSON of WebService object.

    How to check the available JSON object?

    ex JSON:

    {

    name: "someName".

    DESC: 'someDesc '.

    }

    How to check the available name?

    Thank you

    If you want to check if the name is available, you must use

    bool nameExists = variantMap.contains ("name")

  • Unable to return the Contact object!

    Nice day

    In trying to return to a contact in the address book, I get a runtime error that States "push modal screen is called from a thread not event," I know very well off the coast. In this case, I decided to use the trick of invokeAndWait update a screen on the thread of the Main Event. But now, even if the address book is displayed, he refuses to return to a contact. To return to my application, the only way is by the "ESC" key, which, of course, does not return a contact object.

    Does anyone know of a work around that? It's confusing me now,

    1) tap address book to the queue of the event.
    (2) turning a contact to the application without entering the key "ESC".

    See you soon,.
    Nik

            UiApplication.getApplication().invokeAndWait
            (
                new Runnable ()
                {
                    public synchronized void run()
                    {
                        try
                        {
                            final BlackBerryContactList list = (BlackBerryContactList)
                                PIM.getInstance().openPIMList(PIM.CONTACT_LIST,PIM.READ_WRITE);
    
                            Contact contact = list.choose(null, BlackBerryContactList.AddressTypes.EMAIL,false);
    
                            if (contact != null)
                            {
                                String email = contact.getString(Contact.EMAIL, 0);
                                System.out.println ("Name is : "+email);
                            }
                        }
                        catch (PIMException pe){}
                    }
                }
            );
    

    AW... Is not serious... think about it...

    If the contact does not have an e-mail address, it selects it, rather than the contact does is display.

    Use the method BlackBerryContactList.choose (No params).

    See you soon,.

    Nik.

  • Cannot return the custom object method in the module of the application

    Hi all

    I use Jdeveloper 11 g R2 (11.1.2.3) & Weblogic 10.3.5.0

    I need to add a method with a custom object as return in my application module sometingh like this:

    public MyObject-myMethod (line myRow) {}
    my code...
    }

    After add request module is not displayed in the Client interface, so I'm not able to expose to view projects

    But if I change it to:

    public Long myMethod (line myRow) {}
    my code...
    }

    so it's OK

    Can someone tell me I expect much? or a bad thing?
    Is that more than a service of class of the interface?

    Thank you
    Mohsen

    Your custom class must be serialized, otherwise it will not be displayed as a client method.

    Timo

  • I would like to know, why should I return the original HARD drive.

    the original HARD disk, which was replaced by a new
    subsequently to repair a reclamation of the software problem

    ... problem was with a WINDOWS 10 installation, without aquiering the development of 100% of the WINDOWS UPDATES.
    what ended up as a dead end...
    But if the HARD drive is priceless, why should I give it.

    and one of the reasons why t I returned...
    I JUST DON T WANT :)

    Thank you for answering,
    AND HAVE a GREAT DAY, please
    :)

    Nowak

    Hello!  If Dell sent you a replacement HARD drive, you have to send it back as the old HDD becomes the property of Dell.  They refer to the manufacture for diagnosis and testing for future products.  Technically, you can keep the old HDD, but Dell will charge you for him and he can score your account in which they can ask that future repairs are made by a technician on site if you have this warranty package or you may be forced to send your computer using the guarantee, if it happens in the future.

  • How to add a JSON object in the body of a HTTP POST request

    Hello

    I use Java 8 ME incorporated and I would add a Json object in the body of an http request.

    I would like to do something like:

    -----------------------------------------------------------------------------------------

    HttpClientBuilder clientBuilder = HttpClientBuilder.getInstance ();

    HttpClient client = clientBuilder.build ();

    HttpRequestBuilder requestBuilder = client.build ("my_URI");
    requestBuilder.setHeader (HttpHeader.ACCEPT, "text/plain");

    [...]

    requestBuilder.setMethod (HttpMethod.POST);


    HttpRequest request = requestBuilder.build ();

    creating the Json object to be sent in the body of the http request
    JsonObject myJsonObj = Json.createObjectBuilder)
    . Add ("firstname", "John")
    . Add ("lastname", "XXX")
    . Build();

    This part, I'm a little confused: how to get the OutputStream where I should put the Json object?

    JsonWriter jsonWriter = Json.createWriter (java.io.OutputStream of);

    jsonWriter.writeObject (myJsonObj);

    jsonWriter.close ();

    invoking the http request

    HttpResponse response = request.invoke ();

    -----------------------------------------------------------------------------------------

    Have a tip, please?
    Thanks in advance.

    Bruno

    We need to create the class for this interface

  • How to convert XMl to JSON object in jsx?

    Is anyone know how can I convert an xml file to the json object. any help or any jsx library that can help please let me know if possible?

    Thank you

    Upendra

    I was able to create this script with your help, which is a generic XML to JSON converter xml obj passes just in the service.
    Thanks for your suggestion Silly-V

    function xmlToJson(xml) {
      // Create the return object
      var obj = {};
      if (xml.nodeKind() == "element") {
      if (xml.attributes().length() > 0) {
      for (var j = 0; j < xml.attributes().length(); j++) {
      var attributeName = xml.attributes()[j].name();
      obj[attributeName] = String(xml.attributes()[j]);
      }
      }
      } else if (xml.nodeKind() == "text") {
      obj['text'] = xml.text();
      }
      if (xml.children()) {
      for (var i = 0; i < xml.children().length(); i++) {
      var item = xml.child(i);
      if (xml.children()[i].nodeKind() == "text") {
      obj['text'] = xml.children()[i].toString();
      } else {
      var nodeName = item.name();
      if (typeof(obj[nodeName]) == "undefined") {
      obj[nodeName] = xmlToJson(item);
      } else {
      if (typeof(obj[nodeName].push) == "undefined") {
      var old = obj[nodeName];
      obj[nodeName] = [];
      obj[nodeName].push(old);
      }
      obj[nodeName].push(xmlToJson(item));
      }
      }
      }
      }
      return obj;
    };
    

    Thank you

    Upendra Stifler

  • How the binary objects are sorted

    Live treatment image "IMAQ particle analysis" and "IMAQ MaskToROI.vi" returns the characteristics of binary objects detected in a specific order. My question is how objects are sorted before results are returned.

    Look at the following example. I'm totally confused why two screws returned the second object in the first row first?

    I was trying to get the centers of each object (and their contours) and assuming that they were sorted by their positions on the y-axis first and then positions itself on X. It is most of the time, until you see here on the first line. What happened here? Why the second object is sorted as the first object? HOW the binary objects are sorted anyway?

    I got it. It has to be sorted by the corner up and left of the rectangle of the object.

  • ExtendScripts JSON object is not suddenly defined?

    I've been passing data quite fluently back and forth between a panel of HTML5 and ExtendScript, making use of customized JSON.stringify

    All of a sudden, today the JSON object is coming as undefined in the context of ExtendScript.

    I know that it worked, and now it doesn't.  Why on Earth?

    Given the stringify implemented manually, but be able to use JSON.parse & .stringify was extremely convenient.

    Found very practice JS of Crockford library: GitHub - douglascrockford/JSON-js: JSON in JavaScript via this forum thread: Re: HTML5 Panel pass the JSON javascript data

    The Crockford file generates a JSON obj when there isn't.  So far, works very well.

  • Minor "PEEM", after you have placed the image in the Image object is no longer valid

    Or,

    "How I stopped worrying and learned to love the India Pale Ale.

    I am having some problems. I think they are pretty basic.

    for (var i = 0, i < myDoc.pageItems.length; i ++)

    {

    document.pageItems [0] is an Image

    myDoc.pageItems[i].place(File("/foo/bar/baz/MyColoRectalScanInLivingColor.jpg")); //! Huzzah, it works.

    myDoc.pageItems [i] .fit (FitOptions.FILL_PROPORTIONALLY); IN CASE OF FAILURE! Oh no.!

    }

    fails, 'Object is invalidEngine. Why my object is not valid, and how do I make valid I can do groovy-neat with her, as she things fit(), transform() etc etc?

    Thank you!

    A simple (but don't feel bad, everyone including me falls for this one).

    'place' does not return the placed object. Because you can place many elements with a songle 'place' command, it returns a * table *. (And guess its length if you place a single image).

  • Unable to access the doc object

    Hello

    I'm unable to access the doc object, as in doc.mailForm ().

    I tried to access this object as follows, a field event and a global module:

    This.doc (undefined)

    App.doc (undefined)

    Event.Target.doc (undefined)

    doc (blocks JavaScript).

    The app object is OK, I can use app.alert ().

    I use Designer version 8.2.1, using a dynamic XML form.

    Just use event.target which will return the doc object.
    See the code example below
    var doc = event.target;
    doc. Print();
    doc.saveAs ();
    doc.closeDoc ();

    Nith

  • How to return the QML C++ bb::cascades:Control as a property object?

    Hi all

    I need to return the value of the property QML in C++ code, problem is that this value is object of bb::cascades:Control

    Look at the example:

    import bb.cascades 1.2
    
    Page {
     property NavigationPane currentNavigationPane: tab1.navHandle
     property int testprop:0
    }
    

    In C++, I need to retrieve the value of currentNavigationPane property (I suppose it must point to NavigationPane *)

           QVariant const   prop=__current_page->property("currentNavigationPane");
            NavigationPane* nav_p=prop.value();
            if (nav_p!=NULL){
                qDebug()<<"nav_p is not NULL";
            }
            qDebug()<
    

    As a result of this code: nav_p is the null pointer and app crashes without any note of debugging on qDebug()<>

    I found the solution by Exhibitor class c ++ in QML and I can call its methods with pointer to bb::cascades:Control as a parameter

    QML

    Page {
    id:this_page
        onCreationCompleted: {
            mainCPP.UpdatePage(this_page);
        }
    }
    

    C++

    Q_INVOKABLE void UpdatePage(bb::cascades::Page *call_back_page){
    if(call_back_page){
    qDebug()<<"Page is valid";
    }
    }
    

    By this method, I can use control of Cascade in C++

     

  • Function returning the tree used with the object type

    Hi guys!

    I'm fighting for some time now of a function that should return the tree structure of the employees. Let me clarify...
    I have a table say Manager and employees (two columns for an example)
    MANAGER_ID
    EMPLOYEE_ID

    Example:

    MAN_ID - 1; EMPLOYE_ID - 2;
    MAN_ID - 2; EMPLOYE_ID - 3;
    MAN_ID - 2; EMPLOYE_ID - 4;
    MAN_ID - 4; EMPLOYE_ID - 5

    The purpose of my function is back for a specified MAN_ID everyone in the tree...

    Example:

    RETURN_TREE (1) return {2,3,4,5};
    RETURN_TREE (2) returns {3,4,5};
    RETURN_TREE (4) returns {5};

    How to get there?

    With respect,

    PsmakR

    And use BULK COLLECT or the COLLECT function to build the collection:

    create type emp_table as table of number(6);
    /
    
    DECLARE
     v_emp_list emp_table;
    BEGIN
     select cast(collect(employee_id) as emp_table)
     into v_emp_list
     from employees
     connect by prior employee_id = manager_id
     start with manager_id = :p_man_id
    
     -- or
     /*
     select employee_id
     bulk collect into v_emp_list
     from employees
     connect by prior employee_id = manager_id
     start with manager_id = :p_man_id
     */
    END;
    /
    

Maybe you are looking for

  • Product key required - had to do a reinstall

    I have a Toshiba Satellite Pro L300 who would nt boot in windows / safe mode or anything like that - nothing could fix. I had to wipe the hard drive and do a reinstall BUT my product key was used and the train to say that I only have 9 days left. Is

  • HP 553dn: failed to update HP kills all printers

    Last week, I bought a new printer HP 553dn Enterprise. It installed fine with the installation on windows pro 10 and 7 systems pro disc. Over the printer HP weekend update attempted to install and failed on Windows 7 systems. Since then every time yo

  • How can I install Linux or Win7 on my PC of h8-1534 HP ENVY?

    Hi all I try to install Linux or Win7 in my office h8-1534, because I really don't like Windows 8 System. I was working on this for the whole weekend, but I failed. By installing the Linux system, I followed the instructions step by step: http://www.

  • Configure the cDAQ by programming with LabVIEW

    I have a chassis cDAQ with two modules. I want to (for reasons peculiar, too complicated to enter in ) to be wheat to programmatically configure the MAX configuration for it. And I mean everything. I need, in my LabVIEW application, to be able to tel

  • When I try to play a video I have a video with no sound

    original title: Windows Vista/windows media player/videonosound my windows media player will play a dvd with the sound when I try to play a video that I have a video with no sound. I tried to upload an ogg codec so I can get a little sound of my vide