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
Expand all | Collapse all

Trading Network not recognizing incoming document type

  • 1.  Trading Network not recognizing incoming document type

    Posted Thu May 16, 2019 04:20 AM

    Hi,

    I am having this requirement where I need to process document through TN which has namespace in root tag.

    TN is not identifying the document with a namespace in root tag of input document. when I tried after removing namespace from root tag, TN is identifying the document.
    No namespace is there at field level. It is present only for the root tag.

    Sample:

    <?xml version="1.0"?>

    ns:RootTag
    value1
    value2
    value3
    </ns:RootTag>

    Any help would be appreciated to solve this issue.

    Thank you!


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


  • 2.  RE: Trading Network not recognizing incoming document type

    Posted Fri May 17, 2019 04:17 AM

    Hi,

    You XML content itself is malformed. You may check with any online XML validator tool. For example, XML Validator.

    In your case since you’re using namespace, in your xml header you should specify where the schema is and also the child node should all be using the prefix like ns:field1 etc.

    <?xml version="1.0"? xmlns:ns=[SomeURL]> value1 value2 value3 Please rectify or check with the producer from the source whether they've provided correct xml content. Then try again in TN. Regards, Mike
    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB