Hi,
I am creating a RESTful service which has to create WAP pages dynamically. I am wondering if it is possible to create a generic "wml" object with members representing wap elements (for example card, option...) so the service could simply return a wap page, for example:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Tutorial">
<do type="accept" label="Answer">
<go href="#card2"/>
</do>
<p><select name="name">
<option value="HTML">HTML Tutorial</option>
<option value="XML">XML Tutorial</option>
<option value="WAP">WAP Tutorial</option>
</select></p>
</card>
<card id="card2" title="Answer">
<p>You selected: $(name)</p>
</card>
</wml>
I haven't tried to do this yet so I would appreciate if anyone could suggest a good way to dynamically create a content similar to the example above using REST service.