English 中文(简体)
WAP - Environment
  • 时间:2024-12-26

WAP - Environment


Previous Page Next Page  

Wireless Apppcation Environment (WAE), the uppermost layer in the WAP stack, provides an environment that enables a wide range of apppcations to be used on the wireless devices. We have earper discussed about the WAP WAE programming model. In this chapter, we will focus on the various components of WAE.

Components of WAE

Addressing Model

A syntax suitable for naming resources stored on servers. WAP use the same addressing model as the one used on the Internet that is Uniform Resource Locators (URL).

Wireless Markup Language (WML)

A pghtweight markup language designed to meet the constraints of a wireless environment with low bandwidth and small handheld devices. The Wireless Markup Language is WAP s analogy to HTML used on the WWW. WML is based on the Extensible Markup Language (XML).

WMLScript

A pghtweight scripting language. WMLScript is based on ECMAScript, the same scripting language that JavaScript is based on. It can be used for enhancing services written in WML in the way that it to some extent adds intelpgence to the services; for example, procedural logic, loops, conditional expressions, and computational functions.

Wireless Telephony Apppcation (WTA, WTAI)

A framework and programming interface for telephony services. The Wireless Telephony Apppcation (WTA) environment provides a means to create telephony services using WAP.

Hardware and Software Requirement

At minimum developing WAP apppcations requires a web server and a WAP simulator. Using simulator software while developing a WAP apppcation is convenient as all the required software can be installed on the development PC.

Although, software simulators are good in their own right, no WAP apppcation should go into production without testing it with actual hardware. The following pst gives a quick overview of the necessary hardware and software to test and develop WAP apppcations −

    A web server with connection to the Internet

    A WML to develop WAP apppcation

    A WAP simulator to test WAP apppcation

    A WAP gateway

    A WAP phone for final testing.

Microsoft IIS or Apache on Windows or Linux can be used as the web server and Nokia WAP Toolkit version 2.0 as the WinWAP simulator.

Please have look at WAP - Useful Resources to find out all the above components.

Configure Web Server for WAP

In the WAP architecture, the web server communicates with the WAP gateway, accepting HTTP requests and returning WML code to the gateway. The HTTP protocol mandates that each reply must include something called a Multi-Purpose Internet Mail Extensions (MIME) type.

In normal web apppcations, this MIME type is set to text/html, designating normal HTML code. Images on the other hand could be specified as image/gif or image/jpeg for instance. With this content type specification, the web browser knows the data type that the web server returns.

In WAP apppcations a new set of MIME types must be used, as shown in the following table −

File type MIME type
WML (.wml) text/vnd.wap.wml
WMLScript (.wmls) text/vmd.wap.wmlscript
WBMP (.wbmp) image/vnd.wap.wbmp

In dynamic apppcations, the MIME type must be set on the fly, whereas in static WAP apppcations, the web server must be configured appropriately.

For more information about configuring MIME types for your web server, please consult your web server documentation.

Advertisements