Home | | Internet & World Wide Web HOW TO PROGRAM | | Internet Programming | | Web Programming | Phone Simulator and Setup Instructions

Chapter: Internet & World Wide Web HOW TO PROGRAM - Wireless Internet and m-Business

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

Phone Simulator and Setup Instructions

Several free browsers are available for the development and testing of WAP applications. Openwave and Nokia® are the two most popular WAP browsers.

Phone Simulator and Setup Instructions

 

Several free browsers are available for the development and testing of WAP applications. Openwave and Nokia® are the two most popular WAP browsers. The Openwave Software Development Kit is available at

 

developer.openwave.com/download/license_41.html

 

and the Nokia Wireless Toolkit is available at

 

forum.nokia.com/main/1,6668,1_1,00.html

 

The Openwave Simulator is part of Openwave’s Software Development Kit (SDK), a group of tools for wireless developers. The Openwave Simulator replicates the behavior of the Openwave browser that is used on actual wireless devices. Openwave’s UP.SDK Getting Started Guide, which facilitates the installation and use of the SDK, is available at devel-oper.openwave.com/htmldoc/41/getstart.

 

In this chapter, we use the Openwave UP.Simulator. To install the Openwave UP.SDK on a machine running Windows 2000, perform the following steps: [Note: More detailed installation instructions are available on the Deitel & Associates, Inc., Web site, www.deitel.com.]

 

         Go to the Openwave Web site, and click the Download button.

 

         Check the Save this program to disk option, and click OK.

 

         Select a name and location for the file, and click OK.

 

         Once the document is complete, click Open to begin the installation process.

 

         When the Welcome screen of the installation program appears, click Next.

 

         Read the license agreement, and click Yes.

 

         Read the SCREENSHOTS AND IMAGE USE AGREEMENT, and click Yes.

 

         Read the text of the Safe Country Verification dialog, and check the Yes box before clicking Next.

 

         Choose a destination folder in which to install the Openwave browser by clicking the Browse button, or select the default folder (recommended). Click Next to continue.

 

Specify the name of the folder to appear in the Start menu, and click Next.

 

Setup is now complete. To view the README file and launch the Openwave browser (UP.Simulator), check each respective option. Click Finish.

To simulate WAP applications by using the Openwave and Nokia browsers, WAP doc-uments must be requested from a Web server (see Chapter 21), such as Apache or Internet Information Services (IIS). Visit the Downloads and Resources page on our Web site (www.deitel.com) to access Web server installation and configuration instructions. The following instructions cover the configuration of the Internet Information Services Web server. Apache configuration instructions can be found at our Web site.

 

In IIS, copy the files from the Chapter 23 examples directory on the CD-ROM that accompanies this book to C:\Inetpub\wwwroot. Alternatively, these files can be placed in a directory referenced by a virtual directory. We discuss the creation of virtual directories in detail in Chapter 21, Web Servers.

 

To configure IIS to respond to requests for WAP documents, perform the following:

 

         Right click the Windows task bar, click Properties and select the Advanced tab. Under Start Menu Settings, select Display Administrative Tools, and click OK.

 

         Click the Start button on the Windows task bar and select Programs, then Ad-ministrative Tools, then Internet Services Manager.

 

         In the Internet Information Services dialog, double click the computer name, or click the plus sign next to the computer icon to expand the list.

 

         Right click Default Web Site, and select Properties.

 

         Click the HTTP Headers tab, and select the File Types... button, which is lo-cated within the (MIME): Map Frame Settings box.

 

         Click the New Type button.

 

         In the Associate Extension text box, type wml. In the Content type {MIME} text box, type text/vnd.wap.wml. This allows the server to map WML docu-ments to the .wml file extension.

 

         Click OK.

 

         Click the New Type button.

 

In the Associate Extension text box, type wmls. In the Content type (MIME): text box, type text/vnd.wap.wmlscript. This allows the server to map WMLScript files to the .wmls file extension.

 

Click OK.

To request a document, it is necessary to launch the Openwave Simulator. This is achieved by typing localhost/fileName.wml, in the Openwave Simulator’s Go field and pressing Enter. For example, to request our first WML document (Fig, 23.2), type localhost/fig23_2.wml. If the document is located in a wwwroot subdirectory or in a virtual directory, the folder name or virtual directory name must precede the docu-ment’s file name (e.g., localhost/folderName/fileName.wml).

 

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.