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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Writing XMLnode to a file

    Posted 04/21/05 03:39 AM

    Hello,

    What is the way to store an XMLnode (comming from a FilePolling port) into an XML file ?

    I’ve tested PSUtilities:objectToFile but I got
    com.wm.app.b2b.server.ServiceException: Exception occurred while writing object to file: java.io.NotSerializableException: com.wm.app.b2b.services.CValues

    Any idea ?

    Thanks & regards,

    Laurent


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


  • 2.  RE: Writing XMLnode to a file

    Posted 04/21/05 04:18 AM

    Oups, the exact message for an XML node is :

    com.wm.app.b2b.server.ServiceException: Exception occurred while writing object to file: java.io.NotSerializableException: com.wm.lang.xml.Document

    Bye

    Laurent


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


  • 3.  RE: Writing XMLnode to a file

    Posted 04/22/05 08:37 AM

    Ok, I found a way,

    1/ converting my XMLnode to a document,
    2/ converting this document to a XMLstring
    3/ writing it.

    There is a better way ?

    Laurent


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


  • 4.  RE: Writing XMLnode to a file

    Posted 04/25/05 02:28 PM

    I would convert the Node to a String using pub.xml:queryXMLNode WQL query “doc.src” to get the source back. This will give you the exact source as a String. I think it will read the bytes directly from the XML parser stream, so it won’t force parsing.


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