home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Book HomeWeb Design in a NutshellSearch this book

Chapter 32. WAP and WML

Both mobile devices and the Internet have exploded into widespread use in the past few years, so it stands to reason that the two would be combined. One technology for delivering information to wireless devices (primarily mobile phones, but also pagers and personal digital assistants) is WAP, the Wireless Application Protocol. WAP is a collection of protocols and specifications that work together to give mobile phones access to Internet-like information.

One part of the WAP standard is the Wireless Markup Language (WML), which is used to create wireless applications just as HTML is used to create web pages. WML is an application of XML, meaning that it is defined in a document type definition, or DTD (for more information on XML, see Chapter 30, "Introduction to XML").

The goal of WAP is not to port existing web sites onto mobile phones, because the small screen size and limited bandwidth make that impractical. Rather, it is a system for creating special applications tailored to handheld devices. That is why you often see the phrase "Internet-like information" used in regards to WAP. WAP is good for delivering short, pithy bits of data, such as stock prices, sports scores, movie times, and so on. It is not useful for the complex documents with visual layouts that have made the World Wide Web what it is today.

Many traditional web designers feel pressure to keep up with the Web as it extends into the world of wireless devices. The truth is that unless you make a career shift into wireless application development, it is unlikely that you will be required to design specifically for handheld devices. Still, it is helpful to be familiar with the basics of what is going on in the wireless space.

This chapter begins with a brief introduction to WAP and application development. The second half focuses on WML and how it works, including a summary of the elements and attributes in the current WML specification.

32.1. About WAP

As I just mentioned, WAP is not a single entity, but rather a list of protocols and specifications. It is being developed under the guidance of the Wireless Application Protocol Forum, originally founded by wireless industry leaders Nokia, Motorola, Ericsson, and Unwired Planet (which evolved into Phone.com and is currently Openwave). The WAP Forum web site (http://www.wapforum.org) is a good resource for the current state of wireless communications, including the complete WAP specification documents.

32.1.1. The Wireless Environment

WAP addresses the special limitations and requirements of mobile phones and similar devices. The distinguishing characteristics are:

  • Small screen size. Only a small amount of information can be displayed at once.

  • Limited processing power.

  • Lack of a full keyboard, making it awkward for the user to enter information. There are some handheld devices that feature a full keyboard, but they are the exception.

  • Slow connection speeds. Currently, wireless connection speeds are around 9600 bits per second.

  • Costly access. Users are generally paying by the minute or the kilobyte to use a wireless application. It is important to allow them to access information quickly.

All of these factors guide the development of WAP technology and the design process of WAP application developers.

Alternatives to WAP

While WAP is gaining worldwide support, it is not the only system out there for delivering information to wireless devices. Before WAP, pages were delivered using HTTP connections and a mobile-friendly markup language called HDML (see the sidebar "About HDML" later in this chapter). Many phones still support standard HTML content.

iMode (created by NTT DoCoMo, http://www.nttdocomo.com) is another wireless communication system that has taken off like wildfire in Japan. iMode phones typically have full-color displays that are capable of displaying graphical layouts and even games. iMode documents are created using a subset of HTML elements (see http://www.nttdocomo.com/i/tag/index.html for a complete list).

Many people see the current version of WAP as an interim solution that will eventually be replaced by IPv6 on the protocol side and XML on the markup side. Of course, in the telecom world, once an interim solution gets out in the market, it can have a surprisingly long life, so WAP as it stands today is likely to be around for a while.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.











??????????????@Mail.ru