This blog is for developers who want to build browser-based clients using Dynamic Server Pages (DSPs) to format the results of services executed on the webMethods Integration Server.
What Is a Dynamic Server Page?
Working with DSPs:
Example DSP code:
The above code is similar to a HTML code. This code can be written in notepad and then save it with .dsp extension and the location of the file should be
In the above code we have invoke tag as shown below
This tag is used to invoke a service from webMethods Integration server and the service we are calling here is additionDSP which is in package VMI and folder Nanda. We need to complete path for the service. The additionDSP service looks like this with inputs num1 and num2 and output sum.
The input tags in our DSP are
These text box names should match with our service inputs.
For ex. here the inputs in service are num1 and num2 and also the text box names in DSP are num1 and num2.
And in between the invoke tags we have value which is as below
This gives the output and this also should be similar to the output of the service in webMethods Integration Service.
To process this DSP, we have to request it from a browser using the following URL format:
And the page looks like this
Then submit values
Then after submission it invokes the service from webMethods Integration server and gives the output as follows
Similarly, you can have if block in DSP code.
Where STATUS is also an output variable in the service and the page looks as follows
For example if you have a add.html file which you need to access through your web browser you need to use the link as the following
http://localhost:5555/ name>/ under pub>/ name>
the page is kept at the pub/.
In the example below the add.html file is present at Training_Templates packages’s PUB directory within which there is an folder called EXAMPLE
The sample links would look like
For A JSP page : http://10.119.3.249:5555/web/VMI_webDeployment/VMI/vmilogin.jsp For DSP Direct http://10.119.3.249:5555/VMI_webDeployment/VMI/vmilogin.dsp