webMethods

webMethods

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.

 View Only
Expand all | Collapse all

Subscribing 2 Document and making LIST

  • 1.  Subscribing 2 Document and making LIST

    Posted Wed September 29, 2004 05:52 PM

    Kitt,

    Once you have the resultset from the DB ,Why can’t you publish whole list by wrapping it into a publishable record and subscribe the whole doc containing the list and then loop thru the recordlist and create a flatfile(this FFSchema will have delimiter (new line) for every record and after mapping to this FFSchema/IS Record do a convertToString and FTP this string.

    HTH,
    RMG.


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


  • 2.  RE: Subscribing 2 Document and making LIST

    Posted Wed September 29, 2004 06:15 PM

    Yeah that Right
    But when I get result set from Database I need to map each result set into Canonical Document (Xcbl Record Structure ) ,
    for that reason I created Document Type from that DTD and I am using that document to map from Database to Canonical document.
    For example I have 3 record set I am getting 3 canonical and publish 3 canonical document,
    I thought of appending 3 document into a list and Publishing it.
    But when I subscribe it I am just getting Single record .
    Is there any other way of handling document and Publishing Document List to Broker.

    Regards,


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


  • 3.  RE: Subscribing 2 Document and making LIST

    Posted Wed September 29, 2004 06:34 PM

    Kitt,

    Make that Xcbl recordstructure as recordlist(publishable document) and so map the 3recordset to the structure above and publish it to Broker and subscribe the same publishable document(recordlist).

    or else

    In the subscribing service upon receiving the Canonical document then in the beginining steps use recordReference or documentReference and make that cannonical document as recordlist and so using appendToRecordList or appendToDocumentList(inputs map Canonicaldocument(record) to fromItem and map Canonicaldocument(recordlist)to ToList and output map the ToList to Canonicaldocument (recordlist) and make sure you drop the fromItem(canonicaldocument).So that this will not overwrite instead appending will takeplace.

    HTH,
    RMG.


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


  • 4.  RE: Subscribing 2 Document and making LIST

    Posted Thu September 30, 2004 02:08 PM

    Thanks RMG
    I made a Publish Doc with a list so when I publish I am able to receive the list of document. I appreciate for your advice.

    Regards.


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


  • 5.  RE: Subscribing 2 Document and making LIST

    Posted Thu September 30, 2004 03:44 PM