Post on 21-Dec-2014
description
1
Mobile Business
Cuauhtemoc Delgado
28.11.2007
Development of Business Applications
2
Mobile Business
Presentation Contents:
Background
WAP
WML
WMLScript
Demo
3
Background (1/2)
Wireless data market and the Internet are growing very
quickly. New and exciting information services.
Users in movement. Services without desktop access.
Most of the original technology developed for the Internet
has been designed for desktop and larger computers.
Most of the designs for medium to high bandwidth,
generally reliable data networks.
source: Wireless Application Protocol Forum – WAP-210-WAPArch-20010712-a.pdf
4
Background (2/2)
Services for Hand-held devices?, but...
Less powerful CPUs,
Less memory (ROM and RAM),
Restricted power consumption,
Smaller displays, and
Different input devices (e.g., a phone
keypad).
source: Wireless Application Protocol Forum – WAP-210-WAPArch-20010712-a.pdf
5
Mobile Business
The solution ?
6
Wireless Application Protocol
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
7
Mobile Business
Presentation Contents:
Background
WAP
WML
WMLScript
Demo
8
What is WAP?
http://www.w3schools.com/wap/wap_intro.asp
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 services provided by WAP are independent of the underlying digital
wireless network technology
9
WAP outside
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
10
WAP MODEL
WAP CLIENT
WAP GATEWAY
WEB BROWSER
http://www.javaworld.com/javaworld/jw-06-2000/jw-0602-wap.html?page=2
11
WAP BROWSER
* WAP uses a Micro
Browser.
* minimal demands
on hardware, memory
and CPU.
* display restricted
mark-up language
called WML.
12
WAP GATEWAY
Intermediary between the mobile and Internet networks.
Takes care of the necessary binary encoding of content.
Can also translate WML to/from HTML
DNS resolution.
http://articles.techrepublic.com.com/5100-22-1045252.html
13
WEB SERVER
HTML
DYNAMIC HTML
WML
DYNAMIC WML
14
Mobile Business
Presentation Contents:
Background
WAP
WML
WMLScript
Demo
15
XML first...
XML stands for
EXtensible Markup
Language.
XML is designed to
describe data and to
focus on what data is.
<note>
<to>SnFco.</to>
<from>Fulda</from>
<subj>Reminder</subj>
<body>
Start working!, demo on
1st. December
</body>
</note>
16
What is WML?
http://www.w3schools.com/wap/wap_intro.asp
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.
Home pages .wml instead of .html
17
WML Overview
WML Tags
WML Decks and Cards
WML examples
18
WML Tags
WML is mostly about text.
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>)
All tags must be properly closed.
http://www.w3schools.com/wap/wap_intro.asp
19
WML Decks And Cards
WML pages are called DECKS.
DECKS are constructed as a set of CARDS.
CARDS related to each other with links.
When a WML page is accessed 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.http://www.w3schools.com/wap/wap_intro.asp
20
WML examples
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="city" title="Fulda Guide">
<p align="center"></p>
<p>
<a title="Education" href="#education">Education</a><br/>
<a title="Restaurants" href="#food">Restaurants</a><br/>
<a title="Shopping" href="#shopping">Shopping</a><br/>
<a title="Weather" href="#weather">Weather</a><br/>
</p>
</card>
<card id="food" title="Restaurants">
<p><img src="food.bwmp" alt="logo"/></p>
<p>
<a title="Chinese" href="#chinese">Chinese</a><br/>
<a title="German" href="#german">German</a><br/>
<a title="Greek" href="#greek">Greek</a><br/>
<a title="Italian" href="#italian">Italian</a><br/>
</p>
</card>
</wml>
21
WML tags summary
Paragraphs
Line breaks
Text Formating
Tables
Links
Images (.wbmp)
input fields
select an option
go, previous, refresh
set and read variables
22
Mobile Business
Presentation Contents:
Background
WAP
WML
WMLScript
Demo
23
What Is WMLScript?
WMLScript is the scripting language used in WML pages
WMLScript is a light version of the JavaScript language
WML scripts are not embedded in the WML pages. WML pages
only contains references to script URLs
WMLScript is compiled into byte code on the server before it is
sent to the WAP browser
WMLScript is a part of the WAP specification
Used to validate user input, generate dialog boxes, view error
messages.http://www.w3schools.com/wmlscript/default.asp
24
Calling WmlScript
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="no1" title="Go to URL">
<do type="options" label="Go">
<go href="check.wmls#go_url('yahoo')"/>
</do>
</card>
</wml>
/* this is check.wmls */
extern function go_url(the_url)
{
if (the_url=="yahoo")
{
WMLBrowser.go("http://wap.yahoo.com/")
}
}
25
WmlScript Summary
Dialogs Library
Float Library
Lang Library
String Library
Url Library
WmlBrowser Library
26
Mobile Business
Presentation Contents:
Background
WAP
WML
WMLScript
Demo