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.  Document with Date object field and Developer testing

    Posted 05/22/03 09:04 PM

    I have a document structure which has an object constrained at a java.util.Date type. Is it possible to test a service that requires that field to be filled in Developer? Can the value be set through the “input pane”?


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


  • 2.  RE: Document with Date object field and Developer testing

    Posted 05/22/03 09:26 PM

    I think it likes you JVM current locale specific format. Running on the east coast my input looks like:

    05/22/2003 4:57:00 EST


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


  • 3.  RE: Document with Date object field and Developer testing

    Posted 05/22/03 09:45 PM

    Hi Fred, I tried using that format (as I’m EST too) but I still get an error. I’ve attached a screen shot.

    Thanks


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


  • 4.  RE: Document with Date object field and Developer testing

    Posted 05/22/03 10:12 PM

    I am running IS 6.0.1 with Developer Version 6.0.1 (425).

    I can cut and paste the string from my previous post into the Developer input dialog. I tried it with a single data field and with the date field inside a Document.


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


  • 5.  RE: Document with Date object field and Developer testing

    Posted 05/23/03 12:38 PM

    Hi, David.

    Try creating a Java service that instantiates the java.util.Date object and outputs the object as a String. Run the service using CTRL-R and look at the results.

    The outputted date will be in the expected format and you can use that format to plug into your example above.

    More information on the Date object is available from Sun at [url=“Oracle Java Technologies | Oracle”]Oracle Java Technologies | Oracle.


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


  • 6.  RE: Document with Date object field and Developer testing

    Posted 05/26/03 04:35 PM

    Hi All,

    Thanks for your help! I had decided to use java typing for my document fields but I noticed that in a map, it’s not possible to directly map a string field containing a number from one document to a integer java object type. Did I do something wrong? If this is “by design”, I guess I would need to write java services to do stringToInteger, stringToDate, etc and vice-vera.

    Is that the way to go?

    Thanks


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