The previous chapter described how to test a static WML deck on a local file system. It is also useful to test the deck on your Web server to make sure it is properly configured for WML.
To test a simple static WML deck on your Web server:
Use a text editor to create the WML file.
For example, create a file containing the following WML deck:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
<p>
Hello, Unwired World!
</p>
</card>
</wml>
Make sure you save the file in text-only format with a .wml extension. Chapter 1, Introduction, provides a line-by-line description of this deck.
Put the file in your Web server's document tree.
To make the file accessible to the UP.Simulator, you must put it in a directory served by your Web server.
Start the UP.Simulator (see Starting the UP.Simulator).
Type the URL of your WML file in the Go field and press Enter (on your computer keyboard).
Use the same URL that you would use to load the file in a conventional Web browser. For example, if the file name is hello.wml, your URL might look like the following:
http://mycompany.com/wml/hello.wml
The UP.Simulator displays the card shown in Figure 3-4. The only difference is the URL in the Go field.