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.  Convert XML file to Java Object

    Posted Tue July 23, 2019 05:05 AM

    Im trying to load an xml file and convert it to a java object using a flow service and i didn’t find out how to do it.
    So what is the solution to this problem ?

    Thanks


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 2.  RE: Convert XML file to Java Object

    Posted Tue July 23, 2019 08:15 AM

    Still waiting for an answer to my question please !!!

    its a shame to looking in the documentation and find nothing about that!

    No Docs No Furum help !


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Convert XML file to Java Object

    Posted Tue July 23, 2019 08:35 AM

    AFAIK, there is no OOTB service to convert xml string/file to java object and you need to write a custom java service to do this.

    May I know your requirement and need for java object?


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: Convert XML file to Java Object

    Posted Wed July 24, 2019 11:59 AM

    Hi,

    I would advise you to create a specific document type that matches your Java object/class as closely as possible, so you can create an XML->Document flow service conversion, and then create a Java service to make a Document->JO conversion service.

    Depending on the complexity of the original XML file and the target object, some conversions are easier to do explicitly in Flow or Java, and others are easier to do using an XSLT service.

    Good luck.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 5.  RE: Convert XML file to Java Object

    Posted Wed July 24, 2019 12:14 PM

    Thank you so much, that was helpful!

    Thank you


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods