Version: 4.2.1 +
In this tutorial, we will create a webservice application in Futurama.
Safe2Save wants a webservice that calculates the future savings, based on a starting amount, the interest rate and a number of years. These parameters will be the input of the webservice. The input of a webservice must be XML, so we have to create a sctructure that contains these parameters. Therefore we have created the following XML-structure (in which testvalues are already submitted):
In the tutorial, we will create a new Futurama-document, and within this document we will add the object Webservice. We will construct the webservice using the test-file above. to be able to refer to the future savings formula, we also have to add another new object, the subDocument. This object enables me to link to other Futurama documents, in this case, the calculations-file.
The output of the webservice has to be XML as well. Therefore we add an XMLBuilder, which generates XML, of the objects that are listed within it. Therefore we add a reference in the XMLBuilder. This reference refers to the Future Savings formula.
When we finish the entire construction of the webservice, we switch to our testtool soapUI to test it. We there see that our webservice works, and shows the correct results.
- In this tutorial one or more prefabricated files are used. You can make use of these files by downloading the end result of the tutorial series here.