Lecture-7 WAP Dark
Lecture-7 WAP Dark
Transaction
WAP Architecture
WAP uses a layered model similar to the ISO OSI Reference Model. On top of
the bearers, which are not in the scope of WAP, the WAP Forum has defined
protocols for the following layers
• Transport Layer: Wireless Datagram Protocol (WDP);
• Security Layer: Wireless Transport Layer Security (WTLS);
• Transaction Layer: Wireless Transaction Protocol (WTP);
• Session Layer: Wireless Session Protocol (WSP);
• Application Layer: Wireless Application Environment (WAE).
Wireless Datagram Protocol
• The Wireless Datagram Protocol (WDP) layer sits on top of the transport
layer and offers a consistent interface to the security layer. To do so, WDP
has to handle the differences between the carriers and to define which
carrier services are supported by WAP. This ensures the independence of
the upper WAP layers.
Wireless Transport Layer Security
• The interaction between a client and a server is described in Figure. The client contains a
so-called WAE User Agent, like for example a micro browser, which is used to display the
content and to enter information requested by the application. The User Agent is capable
of displaying documents received in WML and executing procedures written using
WMLScript. A WML document is called a WML deck, which can consist of several cards. A
card should contain the amount of information, which fits on the display of a device. A
card could also contain WMLScripts to perform actions on the client. To request data from
a server, the user navigates through menus, which ultimately results into a WSP request to
the W AP Gateway. The W AP Gateway receives the request, transforms it into an HTTP
request, and forwards it to the HTTP server.
WML Encoder
• The server performs the requested action and returns the deck to the WAP
Gateway. If the server is not able to generate WML directly, it could also
reply sending plain text to the gateway. In this case, the gateway
transforms the plain text into WML decks. Now the gateway binary encodes
the deck into WBXML to reduce the number of bytes to be transferred to
the client.
WMLScript compiler
• WMLScript contained in the decks is also compiled into byte code. First, this
reduces the number of bytes to transfer and secondly takes workload away
from the client. Performing work on the gateway instead of on the client
also allows mobile devices with less computing power to be compliant with
WAP.
Wireless Markup Language
• The WAP Forum has defined WML as an Markup Language optimized for
mobile devices. WML is based on the Extensible Markup Language (XML). It
is also very similar to HTML.
WML Example
WML Example
WAP Binary XML Content Format
• WAP Binary XML Content Format (WBXML) is used to reduce the amount of
data to be transferred by binary encoding WML documents. During the
encoding, the document is tokenized. This means that each tag is
represented by a number and instead of transferring four bytes for a card
tag, only one byte is transferred for the token. The same happens with
attributes and entities.
WMLScript