Creating XML as output template

I’m creating a service which takes a record list (QUESTIONS) which has one field (QUESTION) and one string variable (DUEDATE) and inserts the variables into the XML template specified on the settings tab.

My XML looks like this:

<?xml version="1.0" encoding="utf-8" ?>

<STW_SearchesRequestMessage>



http://

%value DUEDATE%




%loop QUESTIONS%
%value QUESTION%
%end%



</STW_SearchesRequestMessage>

But when I try to run this in the browser none of the variables appear and the tag %value QUESTION% doesn’t even appear. Am I doing something wrong? I’m quite new to this type of service so bear with me.

Any suggestions are appreciated.

The following link is useful

http://www.ariscommunity.com/users/safch/2011-03-10-passing-input-parameter-mash-zone-apps-webmethods-integration-server