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
  • 1.  How to update Content and Contentype based on InstanceId

    Posted Fri February 06, 2009 02:09 PM

    Hi All,

    Can any one help me to update the content of data and contenttype ,if have InstanceId in runtime in Tranding Network.

    Great help provide me piece of code.

    Regards,
    anil kumar ellendula


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 2.  RE: How to update Content and Contentype based on InstanceId

    Posted Fri February 06, 2009 04:10 PM

    I am not sure if i understood you query correctly…

    But If you are looking to add content part to a document,use this service and this needs the existing bizdoc from the pipeline…If it’s not in the pipeline use wm.tn.doc:view to retrieve the bizdoc using the document’s InternalID.

    wm.tn.doc:addContentPart (Adds a new content part to a document.)


    HTH,
    RMG


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 3.  RE: How to update Content and Contentype based on InstanceId

    Posted Fri February 06, 2009 06:41 PM

    Hi RMG,

    Sorry my question,my problem is i have instanceid at runtime,i need to update TN Content Data which is already exist in TN,i donot have BIZDOC in runtime,i have only instanceId of TN.

    Regards,
    Anil Kumar Ellendula


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 4.  RE: How to update Content and Contentype based on InstanceId

    Posted Fri February 06, 2009 06:56 PM

    No,you one can’t update/edit content which is already persisted in this case except the above mentioned scenario.

    InstanceID you mean TN InternalID isn’t??

    HTH,
    RMg


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 5.  RE: How to update Content and Contentype based on InstanceId

    Posted Sat February 07, 2009 10:41 AM

    Hi,

    Yes, instanceId is the TN Internal Id.

    Regards,
    anil ellendula


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: How to update Content and Contentype based on InstanceId

    Posted Mon February 09, 2009 03:16 PM

    If you want to udate the content part,use these steps:

    wm.tn.doc:view(using InternalID retrieve the content/bizdoc)
    wm.tn.doc:addContentPart (Adds a new content part to a document)

    HTH,
    RMG


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods