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

Creating a new TN document type from WM designer

  • 1.  Creating a new TN document type from WM designer

    Posted Mon September 21, 2020 08:55 AM

    Hi,

    It should be very simple. I’m trying to create a TN document type using WMTN service,

    wm.tn.doctype:add

    For the input parameter, type (of Object type), i’ve created a document initially (document reference: wm.tn.rec:BizDocType) and populated the values necessary.

    And i’ve converted that document to bytes,which is then passed as the input to the mentioned TN service < wm.tn.doctype:add> and i got the below error:

    wm.tn.doctype:add

    • *
    •  <JavaClass>java.lang.ClassCastException</JavaClass>*
      
    •  <Message>[B cannot be cast to com.wm.app.tn.doc.BizDocType</Message>*
      
    •  <StackTrace>java.lang.ClassCastException: [B cannot be cast to com.wm.app.tn.doc.BizDocType*
      
    • at wm.tn.doctype.add(doctype.java:204)*

    #webMethods-designer
    #Integration-Server-and-ESB
    #Trading-Networks
    #webMethods
    #B2B-Integration


  • 2.  RE: Creating a new TN document type from WM designer

    Posted Tue September 22, 2020 07:50 AM

    Hi Venkata,

    if I have to create TN doc types via Designer, first I create a regular IS DocType.
    Then I go to MWS (with TN UI applied) to create the TN variant there and point it to the IS DocType as a Reference.

    See TN Users Guide for further informations.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #Trading-Networks
    #webMethods-designer
    #webMethods
    #B2B-Integration