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

How to test Flow Service having null child Doc containing a mandatory subfield?

  • 1.  How to test Flow Service having null child Doc containing a mandatory subfield?

    Posted Tue March 01, 2011 09:56 AM

    Hi,

    My Flow Service takes input a document similar to this(this is a simplified form):

    -FlowInputDoc (Root, Document, Mandatory[Required=true])
    – SubDocument1 (Document, Optional[Required=false])
    ---- Priority1 (Mandatory, String)
    ---- Age1 (Optional, String)
    – SubDocument2 (Document, Optional[Required=false])
    ---- Priority2 (Mandatory, String)
    ---- Age2 (Optional String)

    Now the subdocuments 1&2 are optional, as I want to test this service by sending only one of either of subdocuments. But when I test it using Run option from Developer, I have to check mark the box accept Empty String values(gives error that Priority is mandatory otherwise) and The other subdocument(whose values I dont specify) is also included with Priority as Empty String value(whereas I dont want the other subdoc to exist at all).
    Hope I’m making some sense.

    Kindly Help.
    Thanks!!


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


  • 2.  RE: How to test Flow Service having null child Doc containing a mandatory subfield?

    Posted Tue March 01, 2011 04:48 PM

    One way is to create a test FLOW service that calls the service setting the inputs as desired for your test.


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