WAP Basics

原创 2004年11月02日 18:56:00

The WAP protocol was designed to show internet contents on wireless clients, like mobile phones.

What you should already know

Before you continue you should have a basic understanding of the following:

  • WWW, HTML and the basics of building Web pages
  • JavaScript
  • XML

If you want to study these subjects first, before you start reading about WAP and the wireless markup language WML, you can find the tutorials you need at W3Schools' Home Page.

What is WAP?

The wireless industry came up with the idea of WAP. The point of this standard was to show internet contents on wireless clients, like mobile phones. 

  • WAP stands for Wireless Application Protocol
  • WAP is an application communication protocol
  • WAP is used to access services and information
  • WAP is inherited from Internet standards
  • WAP is for handheld devices such as mobile phones
  • WAP is a protocol designed for micro browsers
  • WAP enables the creating of web applications for mobile devices.
  • WAP uses the mark-up language WML (not HTML)
  • WML is defined as an XML 1.0 application

The Wireless Application Protocol

The WAP protocol is the leading standard for information services on wireless terminals like digital mobile phones.

The WAP standard is based on Internet standards (HTML, XML and TCP/IP). It consists of a WML language specification, a WMLScript specification, and a Wireless Telephony Application Interface (WTAI) specification.

WAP is published by the WAP Forum, founded in 1997 by Ericsson, Motorola, Nokia, and Unwired Planet. Forum members now represent over 90% of the global handset market, as well as leading infrastructure providers, software developers and other organizations. You can read more about the WAP forum at our WAP Forum page.

WAP Micro Browsers

To fit into a small wireless terminal, WAP uses a Micro Browser.

A Micro Browser is a small piece of software that makes minimal demands on hardware, memory and CPU. It can display information written in a restricted mark-up language called WML.

The Micro Browser can also interpret a reduced version of JavaScript called WMLScript.

What is WML?

WML stands for Wireless Markup Language. It is a mark-up language inherited from HTML, but WML is based on XML, so it is much stricter than HTML.

WML is used to create pages that can be displayed in a WAP browser. Pages in WML are called DECKS. Decks are constructed as a set of CARDS.

What is WMLScript?

WML uses WMLScript to run simple code on the client. WMLScript is a light JavaScript language. However, WML scripts are not embedded in the WML pages. WML pages only contains references to script URLs. WML scripts need to be compiled into byte code on a server before they can run in a WAP browser.

Visit our WMLScript tutorial to learn more about scripting in WML documents.

Examples of WAP use

  • Checking train table information
  • Ticket purchase
  • Flight check in
  • Viewing traffic information
  • Checking weather conditions
  • Looking up stock values
  • Looking up phone numbers
  • Looking up addresses
  • Looking up sport results

FAQ about WAP

These are frequently asked question about WAP:

  • What is WAP?
  • Who is WAP for?
  • How does WAP relate to standardization bodies?
  • How is WAP related to Internet standards?
  • What is the status of WAP?
  • What is the future of WAP?

We will try to answer most of these questions. In the meantime read the answers at: http://www.wapforum.org/faqs/index.htm


WAP Homepages

WAP homepages are not very different from HTML homepages. The markup language used for WAP is WML (Wireless Markup Language). WML uses tags - just like HTML - but the syntax is stricter and conforms to the XML 1.0 standard.

WML pages have the extension *.WML, just like HTML pages have the extension *.HTML.

WML Tags

WML is mostly about text. Tags that would slow down the communication with handheld devices are not a part of the WML standard. The use of tables and images is strongly restricted. 

Since WML is an XML application, all tags are case sensitive (<wml> is not the same as <WML>), and all tags must be properly closed.

WML Decks and Cards

WML pages are called DECKS. They are constructed as a set of CARDS, related to each other with links. When a WML page is accessed from a mobile phone, all the cards in the page are downloaded from the WAP server. Navigation between the cards is done by the phone computer - inside the phone - without any extra access trips to the server.

Example WML document:

<?xml version="1.0"?>


<card id="HTML" title="HTML Tutorial">
Our HTML Tutorial is an award winning 
tutorial from W3Schools.

<card id="XML" title="XML Tutorial">
Our XML Tutorial is an award winning 
tutorial from W3Schools.


As you can see from the example, the WML document is an XML document. The DOCTYPE is defined to be wml, and the DTD is accessed at www.wapforum.org/DTD/wml_1.1.xml.

The document content is inside the <wml>...</wml> tags. Each card in the document is inside <card>...</card> tags, and actual paragraphs are inside <p>...</p> tags. Each card element has an id and a title.

ffmpeg学习二:《FFmpeg Basics》读书笔记(上)

为了更好的理解ffmpeg工程,官方推荐了一本书:《FFmpeg Basics》。完整的读完这本书,应该对这个工程能有一个基本的理解了。本菜英文不好,姑且从这本书中提炼出一些比较常用的知识,做个笔记吧...
  • u011913612
  • u011913612
  • 2016年11月29日 16:48
  • 1320

Coursera deeplearning.ai 深度学习习题1-2-Neural Network Basics

  • tuzhen301
  • tuzhen301
  • 2017年12月06日 22:33
  • 152

coursera 吴恩达 -- 第一课 神经网络和深度学习 :第二周课后习题 Python Basics with numpy (optional)

  • qq_25436597
  • qq_25436597
  • 2017年12月18日 22:57
  • 111

Andrew Ng's deeplearning Course1Week2 Neural Networks Basics(神经网络基础)

2.1 二分2.1.1 举一个识别猫的例子输入一个图片,判别有猫或无猫,这就是一个简单的二分分类。为了将图片转换成一个特征向量,大家都知道图片由红绿蓝三个像素矩阵组成,假设这个矩阵是64*64的,我们...
  • u012867545
  • u012867545
  • 2017年10月19日 22:08
  • 282

coursera 吴恩达 -- 第四课 卷积神经网络 :第一周课后习题The basics of ConvNets

不知道是不是更新了 现在提交了没法看自己的答案 于是只能提交前截个图 答案是正确的哈...
  • qq_25436597
  • qq_25436597
  • 2018年02月18日 11:29
  • 254

coursera 吴恩达 -- 第四课 卷积神经网络 :第一周 Convolution model - Application - v1

  • qq_25436597
  • qq_25436597
  • 2018年02月18日 22:01
  • 79

Python入门的36个例子 之 32 -> OOP – Inheritance 继承

 源代码下载:下载地址在这里 A Byte Of Python 中关于继承有这样的文字: Suppose you want to write a program which has to keep t...
  • zhangning876
  • zhangning876
  • 2009年09月12日 14:58
  • 640

MongoDB - Basics

MongoDB is a cross-platform document-oriented database program. It is written in C++ and aiming at p...
  • bettyHHUC
  • bettyHHUC
  • 2017年10月09日 16:47
  • 214

Coursera 深度学习 deep learning.ai 吴恩达 神经网络和深度学习 第一课 第二周 编程作业 Python Basics with Numpy

Coursera 深度学习 deep learning.ai 吴恩达 第一课 神经网络和深度学习 第二周 编程作业 Python Basics with Numpy...
  • justry24
  • justry24
  • 2017年10月02日 15:21
  • 971

[翻译]Java Garbage Collection Basics Java 垃圾回收基础 之7 总结

总结在本文中,关于java jvm的垃圾回收系统有了一个大的了解。首先,你应该了解了为啥垃圾回收器和堆死Java JVM的关键部分。一旦你了解了这个过程,你可以通过Visual VM工具来观察。最后,...
  • scugxl
  • scugxl
  • 2016年04月24日 14:56
  • 633
您举报文章:WAP Basics