IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Conversion Object to DocumentList

  • 1.  Conversion Object to DocumentList

    Posted Thu December 14, 2006 12:31 PM

    How does one convert an object into a documentlist?
    The object has been created from a documentlist and now needs to be converted back into a documentlist. Is there some inbuilt service for the same? If not then what can be the alternative for it?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Conversion Object to DocumentList

    Posted Thu December 14, 2006 02:21 PM

    How was the object “converted” from a documentlist to begin with?

    Mark


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Conversion Object to DocumentList

    Posted Thu December 14, 2006 03:19 PM

    The document list was directly mapped to the object. The object was thus created and it got the values of the documentlist. Mappinig the object back into the documentlist doesnot seem to be working. Is there some other solution?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Conversion Object to DocumentList

    Posted Thu December 14, 2006 04:39 PM

    Does anything else affect the object in between the original mapping into the object and the desired mapping out of it?

    I have a resultSet documentList from an adapter service that is directly mapped to an object in the pipeline, and then several lines down, I map it back to a new documentList and it works just fine. I would suspect something must be affecting the object upstream if it cannot map back out.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Conversion Object to DocumentList

    Posted Fri December 15, 2006 10:03 AM

    There’s nothing affecting the object. It is not used once it has been created. The object is created from a documentlist, and then published in a document. This document is subscribed by another service. It is in this service that the object needs to be converted back into a documentlist. Simply mapping it back into a documentlist doesnot seem to be working out.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: Conversion Object to DocumentList

    Posted Fri December 15, 2006 03:12 PM

    Why are you converting a document list into an object again???


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: Conversion Object to DocumentList

    Posted Fri December 15, 2006 03:37 PM


  • 8.  RE: Conversion Object to DocumentList

    Posted Fri December 15, 2006 04:26 PM

    I just tried this to see if there was something the Broker may do to it that causes a loss of structure, but it worked just fine. Here’s what I did:

    1. Created a publishable document containing an object.
    2. Created a flow service that mapped a documentList to the object in the publishable document and then published the document to the Broker.
    3. Created a handling service that mapped the object from the document to a documentList, looped through the list, and wrote results to the server log.
    4. Created a trigger subscribing to the document, and calling the handling service.
    5. Finally… ran the mapping/publishing service and watched as the handling service received the object and mapped it to a docList with no problems.

    So this should work.

    The only way I could get it to fail was to map the object to a documentList of a slightly different structure that the original docList.

    Are both docList structures (on the publish side and the subscribe side) exactly the same?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 9.  RE: Conversion Object to DocumentList

    Posted Mon December 18, 2006 09:54 AM

    It finally worked! Thanks alot for your suggestion.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods