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.

 View Only
  • 1.  wm.tn:receive error due to special char

    Posted Fri February 29, 2008 02:26 PM

    I am using IS_6-5_SP3, TN 6.5.

    When there is ‘&’ in the xml input data to TN, I am getting below error.

    Service Name:wm.tn:receive

    Error Message
    com.wm.app.tn.err.EXMLException: wm.tn.doc:recognize com.wm.app.tn.doc.BizDocTypeException Couldnt get document bytes (0) com.wm.lang.flow.WattEvaluationException: com.wm.lang.xml.WMDocumentException: [ISC.0042.9332] Malformed entity reference:…

    Is there a way to set the encoding in TN to avoid this error.

    -Pauly


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


  • 2.  RE: wm.tn:receive error due to special char

    Posted Wed March 31, 2010 02:01 PM

    use a substitute for you special character which webMethods does not refer to as a special character while you are sending you data to the TN Receive service. Also check advantage there should be a service pack available as well to get you around this issue.


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


  • 3.  RE: wm.tn:receive error due to special char

    Posted Mon July 19, 2010 11:51 AM

    Hi Pauly,

    This malformed exception/error normally happens if the XML document contains special character, in this case ‘&’ (this is also true in Java handling of XML document).

    Below might give you an idea:

    1: you may want to include a call to stringToDocument with encoding = true to encode all ‘&’.
    2: or write a java service to replace the ‘&’ with ‘&’ and other related XML special characters.

    Hope this helps.

    Kind Regards,
    Meann


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


  • 4.  RE: wm.tn:receive error due to special char

    Posted Tue July 20, 2010 08:17 PM

    Request your partner to send HTML encoded for spl chars in the xmldata field
    values …

    to name some:

    & to &
    to <

    The same where you set documentToXMLString (encode=true)

    HTH,
    RMG


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