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

Create EDI XML

  • 1.  Create EDI XML

    Posted Sat October 29, 2011 12:11 AM

    Hi WmUsers,

    Is there a way to convert the complete EDI document including interchange and group headers to XML?
    When EDITPA splitoption = ‘Transaction’ we will only have the transaction segment(ST) in the pipeline but not the interchange and group.

    So if I have the steps in my flow

    wm.b2b.editn:getTspace
    wm.b2b.edi.util:convertToValues
    pub.xml:documentToXMLString

    I get …

    I am looking for something like below which has interchange and group segments






    Thanks,
    Suresh


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 2.  RE: Create EDI XML

    Posted Wed November 02, 2011 06:39 PM

    Suresh,

    This is an off-beat approach but will work

    Invoke envelopeProcess, to retrieve the ISA/GS document structure from the document
    Then do your convertToValues using the EDIFFSchema, and since your schema contains only ST level, you will receive the data at ST level
    Map the ISA/GS to a temporary document, and also map the ST level document
    convert the temporary document to XML string

    Regardless of the above thing, i still fail to understand the need for converting the entire structure to a XML. Is it something very specific?

    Regards,
    Pradeep


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Create EDI XML

    Posted Wed November 02, 2011 07:30 PM

    Thanks Pradeep. I will try it out.
    Yes, I agree with you but it is part of the requirement, not sure what they need it for.


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 4.  RE: Create EDI XML

    Posted Fri November 04, 2011 03:34 PM

    Yes use the envelopeProcess service to grab/extract the ISA/GS information and your steps above convert to XML is intact:

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 5.  RE: Create EDI XML

    Posted Sat November 05, 2011 12:20 AM


  • 6.  RE: Create EDI XML

    Posted Mon November 07, 2011 03:28 PM