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.  Questions related to DSP and JSP

    Posted Sat August 27, 2005 03:52 AM

    Hi ,

    Can somebody help me in getting the answer for the following question:
    I need to invoke a FLOW service passing a single input value , how do I pass this variable from dsp page to the service I invoke ?

    Thanks in advance.


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


  • 2.  RE: Questions related to DSP and JSP

    Posted Sun August 28, 2005 03:53 AM

    See page 53 of the “Dynamic Server Pages and Output Templates Developer’s Guide Version 6.1”.

    The most common methods are to pass in the value on the URL in the form of “?name=value” or to use an HTML form.

    Mark


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


  • 3.  RE: Questions related to DSP and JSP

    Posted Fri March 31, 2006 08:51 PM

    Hi,

    I am planning to write a DSP which reads config details from a CNF file.Any ideas how to do it? Is there any documentation or Sample on DSP’s using a CNF file to read properties.

    Thanks
    Vij


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


  • 4.  RE: Questions related to DSP and JSP

    Posted Fri March 31, 2006 09:10 PM

    Alternative way is code a java/flow service that reads properties from any cnf file and invoke this service in DSP with passing necessary input parameters and extract the result output and show it in dsp page.

    HTH,
    RMG


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


  • 5.  RE: Questions related to DSP and JSP

    Posted Fri March 31, 2006 09:48 PM


  • 6.  RE: Questions related to DSP and JSP

    Posted Fri March 31, 2006 10:13 PM

    What code are you looking for to read property file?

    HTH,
    RMG


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


  • 7.  RE: Questions related to DSP and JSP

    Posted Wed April 05, 2006 01:36 AM

    DSP is meant for input/output of data… as RMG suggested, you will need a service to read the config file and display it using a DSP. Since its a config file you are interested in reading, I presume that its location would be static - You can create a flow service with ‘configString’ as ouput. In this flow make a call to pub.file:getFile (you may hardcode the filename here - based on assumption), then use bytesToString service to convert the bytes from getFile into a string - map this string to output ‘configString’.

    Create a dsp, that invokes your flow service and displays the output ‘configString’.

    HTH, Rohit


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