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
  • 1.  passing String list to service through DSP

    Posted Tue April 21, 2009 11:32 AM

    Hi guys,

    I need to pass String list to service through dsp page.
    Anybody knows how to collect inputs in string list and pass it to service through dsp.


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


  • 2.  RE: passing String list to service through DSP

    Posted Tue April 21, 2009 02:32 PM

    You can use either checkboxes with same name or a combox with multiple select enabled or hidden variables with same name. When submitted to a flow service you will get a list, like ‘hiddenParamList’ if your variable name in the form is ‘hiddenParam’. If you want to pass list through query string then you can use same param name multiple times like <<http://server:port/invoke/serviceName?param1=a&param1=b&param1=c>>

    Cheers
    Guna


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


  • 3.  RE: passing String list to service through DSP

    Posted Wed April 22, 2009 10:48 AM

    Can you show simple example where we will take inputs through multiple comboboxes or check boxes and pass them to service


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


  • 4.  RE: passing String list to service through DSP

    Posted Wed April 22, 2009 11:43 AM
    <html>
    <head>
    <title>Submit list data</title>
    </head>
    <body>
    <form name="upload" method="post" action="http://server:port/invoke/rbgunatest.subflows:receiveForm">
    
    <input type="hidden" name="hdn" value="1"/>
    <input type="hidden" name="hdn" value="2"/>
    <input type="hidden" name="hdn" value="3"/>
    <input type="hidden" name="hdn" value="4"/>
    <input type="hidden" name="hdn" value="5"/>
    Select one or more:<select name="comboBox" multiple>
    <option value="1">One</value>
    <option value="2">Two</value>
    <option value="3">Three</value>
    <option value="4">Four</value>
    <option value="5">Five</value>
    <option value="6">Six</value>
    </select><br/><br/>
    
    one<input type="checkbox" name="checkbox" value="1"/>&nbsp;
    two<input type="checkbox" name="checkbox" value="2"/>&nbsp;
    three<input type="checkbox" name="checkbox" value="3"/>&nbsp;
    four<input type="checkbox" name="checkbox" value="4"/>&nbsp;
    five<input type="checkbox" name="checkbox" value="5"/>&nbsp;<br/>
    <br/><input type="submit" value="Submit">
    
    </form>
    </body>
    </html>

    Just replace your servername, port and service. You will see the incoming results as string lists. Just save pipeline.

    Cheers
    Guna


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


  • 5.  RE: passing String list to service through DSP

    Posted Thu April 23, 2009 08:34 AM

    Hi,

    Thanx for such a great help.
    Its working…! :slight_smile:


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