You are on page 1of 27

Unit-5

WAP
Wireless Application Protocol(WAP)
WDP-Wireless Datagram Packet
- Service Primitives
WTLS - Wireless Transport Layer Security
…cont WTLS
WTP - Wireless Transaction Protocol
• WTP Class 0 transaction
WTP Class 1 transaction, without user ACK
WTP class 1with user acknowledgement
WTP class 2, no user acknowledgement
WTP class 2, withuser acknowledgement
WIRELESS SESSIONPROTOCOL [WSP]
1.WSP/B SESSION ESTABLISHMENT
2.WSP/B SESSION SUSPENSION AND RESUME
3.WSP/B SESSION TERMINATION
4.WSP/B METHOD INVOKE
5. WSP/B UTILIZATION OF WTP AS LOWER LAYER
6.WSP/B ASYNCHRONOUS , UNORDERED REQUESTS
7. WSP/B - Non-confirmed push
8. WSP/B - Confirmed push
WSP/B –CONNECTIONLESS SESSION SERVICE
WIRELESS APPLICATIONENVIRONMENT(WAE)
WIRELESS MARKUPLANGUAGE [WML]
• <?xml version="1.0"?>
• <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN“
• <wml>
• <card id="card_one" title="Simple example">
• <do type="accept">
• <go href="#card_two"/>
• </do>
• <p>
• This is a simple first card!
• <br/>
• On the next one you can choose ...
• </p>
• </card>
• <card id="card_two" title="Pizza selection">
• <do type="accept" label="cont">
• <go href="#card_three"/>
• </do>
• <p>
• <select value="Mar" name="PIZZA">
• <option value="Mar">Margherita</option>
• <option value="Fun">Funghi</option>
• <option value="Vul">Vulcano</option>
• </select>
• </p>
• </card>
• <card id="card_three" title="Your Pizza!">
• <p>
• Your personal pizza parameter is <b>$(PIZZA)</b>!
• </p>
• </card>
• </wml>
WML SCRIPT
• Validity check of user input:

• Access to device facilities:

• Local user interaction:

• Extensions to the device software:


SAMPLE CODE
• function pizza_test(pizza_type)
• {
• var taste = "unknown";
• if (pizza_type = "M")
• {
• taste = "well... ";
• }
• else {
• if (pizza_type = "V")
• {
• taste = "quite hot";
• };
• };
• return taste;
• };
Six libraries of WML script

• 1.Lang- characterSet(),float(), isFloat(), isInt(),


max()
• 2.Float- sqrt(), round(), pow(), ceil(), floor()
• 3. String- charAt(), find(), squeeze(), insertAt(),
removeAt(), replaceAt()
• 4.URL
<scheme>://<host>:<port>/<path>;<parameters>?<query>#<fragment>
http://www.xyz.int:8080/mypages;5;2?j=2&p=1#crd.
• 5.WMLBrowser - go(), prev(), next(),
getCurrentCard(), refresh(), getVar(), setVar()
• 6.Dialogs- prompt(), confirm(), alert().

You might also like