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

Calling DSP with empty variable

  • 1.  Calling DSP with empty variable

    Posted Thu February 24, 2005 04:14 PM

    Hello all,

    I have service which allows to have empty string as input parameter.
    When I try to invoke this service through dsp page I am not getting the same result as in developer.

    Case is like that
    input string variables are var 1 and var2
    when I call it with dsp page I am getting *.dsp?var1=&var2= In this case I am getting empty page as result.
    when I call with filled variables that result is the same.

    How can I invoke service with empty variables as input?

    TIA

    Gordan


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


  • 2.  RE: Calling DSP with empty variable

    Posted Tue March 01, 2005 07:08 AM

    Can you call the dsp without the variable names in the url (just *.dsp)?

    You can also use an invoke command in the beginning of the page, rather than pass the variables in directly?

    For example, when you do something (such as have a form input data), you have two text boxes with the names var1 and var2. Then set a hidden variable within the form to someVar. When the invoked dsp page loads, check for the hidden variable (someVar) and invoke a service. The values of var1 and var2 will be in the pipeline of the service that is invoked. This is how the webMethods Administrator DSPs are coded, and how I have always done them. You can see samples of this method inside most of the DPSs in the WmRoot package.

    Does *.dsp?var1=‘’&var2=‘’ or *.dsp?var1=“”&var2=“” work?


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