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.  NULL values not coming through in XML

    Posted 03/11/04 11:51 PM

    Hi all,

    I am using the FTP polling service to get XML files and send them to TN. Even though some mandatory fields are left blank in the XML file (e.g. <name/> instead of <name>ACME</name>) webMethods thinks that there is a character in there. Hence, my validation is failing.

    I am using pub.client.ftp:get service to get the file. I have tried many different ways of validation (including pub.schema:validate) but the retrieved file definitely has values where it should have nothing.

    Hope you can help,

    Umit


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: NULL values not coming through in XML

    Posted 03/12/04 01:42 AM

    Just an update on this one. I have since discovered that <name&#62; will actually give you a blank in XML notation and not a null.

    Does anyone know if there are any services in webMethods that can convert blank values into null values?

    Thanks,

    Umit


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: NULL values not coming through in XML

    Posted 03/12/04 11:53 PM

    I don’t know of anything to do it automatically, but it’s a fairly simple procedure to write a Java service that loops through every field in the document and deletes out those that are empty.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: NULL values not coming through in XML

    Posted 04/16/04 03:34 AM

    Just a thought, you may want to use replaceString and reqular expression to replace those <something/> tag before giving to xmlStringToDocument


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services