The UP.Simulator has two principal modes that allow you to access HDML services:
devgate2 UP.Link server (devgate2.uplanet.com). This mode allows you to test the full range of UP.Link platform functionality, including notifications and faxing.
You can also load static HDML files directly from a file system in either mode using:
file://path (for example, file://c:/hdml/myfile.hdml).
The following table lists the advantages and limitations of each mode:
The following sections describe the modes of accessing HDML services in more detail.
The UP.Simulator file mode is similar to the file mode supported by most popular Web browsers. To open an HDML file, specify a URL with the following form:
path
where path is the directory path to the file. The following table provides some examples of the file mode syntax:
The following sections describe how to customize your system for HTTP direct mode.
HTTP direct is the default mode when you first run the UP.Simulator. To specify a custom Home card or switch between HTTP direct and UP.Link modes, do the following:
The UP.Link Settings dialog appears (see Figure 1-2). The default settings use a Home card on the Unwired Planet developer server and no proxy server. You can specify a different Home card by entering the URL for the deck in the Home URL field.
http:// prefix is optional), you must include it when you specify a Home URL.
FIGURE 1-2. Specifying HTTP direct mode
Some sites require a proxy server to access URLs outside of the local firewall. To determine whether your site uses a proxy server, consult your system administrator.
If your site uses a proxy server and you want to use HTTP direct mode, you must configure the UP.Simulator as follows:
For example, Figure 1-3 shows the UP.Simulator configured to use port 8080 on the proxy server zmrzlina.
FIGURE 1-3. UP.Simulator Set UP.Link dialog box configured for Proxy server
The request timeout determines how long the UP.Simulator waits for a response before generating an error. The default timeout is 30 seconds. You may want to increase this value if your network is very slow or you are submitting a request to a slow-responding service. This setting applies to HTTP direct mode only.
To change the request timeout, do the following:
To test one of your services using HTTP direct mode:
For instructions on configuring your Web server to handle HDML and other UP.Link file types, see the UP.SDK Getting Started Guide guide.
For example, you might want to configure the Web server to serve the Examples directory provided with the UP.SDK.
To request a specific URL, type it in the Go field that appears directly below the UP.Simulator menu bar (see Figure 1-1).
Suppose the domain of your Web server is http://myserver.com and you have configured it to serve the UP.SDK examples directory. To display the HDML Samples menu, you would enter the following URL:
Note that you must enter the full URL, including index.hdml. The UP.Simulator does not automatically append index.hdml if you specify only a directory path.
The UP.Simulator opens the specified URL. Figure 1-4 illustrates the results if you specify the URL for the index.hdml file.
FIGURE 1-4. UP.Simulator displaying HDML Samples menu
To use your phone UP.Simulator in UP.Link mode, you must do the following:
To run your UP.Simulator in UP.Link mode, you must register it on an UP.Link server. Unwired Planet provides an UP.Link server for use by developers who need to test advanced UP.Link functionality, such as faxing and notification.
devgate2 UP.Link server. The registration procedures for other UP.Link servers might be different; consult with the UP.Link server administrator for details.
To register the UP.Simulator on the devgate2 UP.Link server:
http://updev.uplanet.com
Note that the UP.Link server supports Netscape Navigator versions 3.0.1 (and later) and Microsoft Internet Explorer versions 3.0 (and later).
devgate2.
The username and password you enter will let you provision test subscribers on the UP.Link server and view their pending notifications and faxes.
The UP.Link Provisioning Main page appears, with buttons for the tasks you can perform on the left (see Figure 1-5).
FIGURE 1-5. UP.Link Provisioning Main Page
The Subscriber Registration form appears.
FIGURE 1-6. Subscriber Registration Form
Use the IP address of the machine where you will run the UP.Simulator as the Device ID. If the IP address has not already been registered, clicking Submit displays the Subscriber Profile form (see Figure 1-7). If it has already been registered, an error message appears. Each IP address can have only one record in the registration database.
FIGURE 1-7. Subscriber Profile
The devgate2 UP.Link server allows you to register up to five separate subscribers. This is useful if you are testing on several different computers; you register separately for each computer (using the computer's IP address).
devgate2 UP.Link server, you can only test services that are publicly available on the Internet. If your services are protected by your corporate firewall, you can't test them.
To configure the UP.Simulator to use the devgate2 UP.Link server:
The UP.Link Settings dialog appears. Note that HTTP direct is the default mode.
FIGURE 1-8. Specifying UP.Link mode
The UP.Simulator is now configured to use the devgate2 UP.Link server.
If you connect to an UP.Link server that requires encryption (devgate2 does not), the UP.Simulator displays the message shown in Figure 1-9.
FIGURE 1-9. UP.Simulator security screen
This instructs the UP.Simulator to conduct a shared key exchange with the UP.Link server. The key exchange allows the UP.Simulator and the UP.Link server to conduct secure, authenticated communication.
Key exchange normally takes less than a minute. When it is complete, the UP.Link server Home page appears (see Figure 1-10). The devgate2 UP.Link server Home card is slightly different from the UP.Link Developer Home card. It provides options for you to view alerts and view and change settings.
FIGURE 1-10.
The devgate2 UP.Link server Home card
The default port for UP.Link communication is port 8502. To use a different port, append a colon followed by the port number to the UP.Link domain name in the UP.Link Settings dialog (Figure 1-8). For example, instead of specifying devgate2.uplanet.com, you could specify devgate2.uplanet.com:8500.