Grandstream Networks, Inc.
XML Application Guide
Page 21 of 24
Last Updated: 3/2009
Each softkey is bound by a URI, and pressing the soft key will call the corresponding URI. If the second
softkey is pressed
http://www.XMLquestionnaire.com/questionnaire.php?ans=yes
is called. The server now
knows the client response because the URI given to each soft key is unique. Once the answer is received,
the server will send a 200 ok with another XML attached.
<GS_XML_Application>
<Display>
<Screen>
<DisplayString
valign=”Center”>
<X>0</X>
<Y>0</Y>
<DisplayStr> Thank you for taking the </DisplayStr>
</DisplayString >
<DisplayString
>
<X>0</X>
<Y>10</Y>
<DisplayStr>Survey</DisplayStr>
</DisplayString >
<DisplayString
halign=”Right”
valign=”Bottom”>
<X>0</X>
<Y>0</Y>
<DisplayStr>Surveyor</DisplayStr>
</ DisplayString>
</Screen>
</Display>
<SoftKeys>
<SoftKey>
<Label>Previous</Label>
<Action>
<UseURL>
<URL>
http://www.XMLquestionnaire.com/questionnaire.php?do=prev
</URL>
</UseURL>
</Action>
</SoftKey>
<SoftKey>
<Label>Quit</Label>
<Action>
<QuitApp/>
</Action>
<SoftKey>
</SoftKeys>
</GS_XML_Application>
In this XML, note that the last word, “Survey”, displayed at the center of the screen is in a new Line element.
Otherwise, it would be displayed off the screen and look like this screen:
Do you have a
spouse?
Previous Yes No Next