1 / 18

3. Wireless Application Protocol (WAP)

3. Wireless Application Protocol (WAP). Internet Protokolle und Formate 3. Wireless Application Protocol Sebastian Weber. 3. Wireless Application Protocol (WAP). drahtlose Verbindungen: Probleme mit Bandbreite, Stabilität, Erreichbarkeit, Zeitverzögerung. Problem: Wie kommen Inhalte

Download Presentation

3. Wireless Application Protocol (WAP)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3. Wireless Application Protocol (WAP) Internet Protokolle und Formate 3. Wireless Application Protocol Sebastian Weber Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  2. 3. Wireless Application Protocol (WAP) drahtlose Verbindungen: Probleme mit Bandbreite, Stabilität, Erreichbarkeit, Zeitverzögerung Problem: Wie kommen Inhalte auf mobile End- geräte? mobile Endgeräte: Probleme mit Displays, Darstellung, Speicher, Rechenleistung, Energie, Eingabeschnittstelle Betreiber: Bedarf an Interoperabilität, Skalierbarkeit, Sicherheit, Globalität Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  3. 3. Wireless Application Protocol (WAP) Lösung: WAP 3.1 Schichtenmodell 3.2 Wireless Application Environment (WAE) 3.3 WAP Infrastruktur 3.4 Programmierung 3.4.1 WML 3.4.2 WMLScript Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  4. 3.1 WAP Schichtenmodell Sitzungsschicht WSP Transaktionsschicht WTP Sicherungsschicht WTLS Träger ... SMS CSD HSCSD GPRS Anwendungsschicht WAE Transportschicht WDP Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  5. 3.1 WAP Schichtenmodell Wireless Datagram Protocol (WDP) • Schnittstelle: Träger <–> obere Schichten • spezifiziert Trägerunterstützung - gleicht Unterschiede der Träger aus Wireless Transport Layer Security (WTLS) • Funktion: Verschlüsselung, Authentifizierung, Datenintegrität, Schlüsselmanagement • optional WAE WSP WTP WTLS WDP Träger WAE WSP WTP WTLS WDP Träger Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  6. 3.1 WAP Schichtenmodell Wireless Transaction Protocol (WTP) - verbindungsorientiert • bietet: - unzuverlässige One-Way-Requests - zuverlässige One-Way-Requests - zuverlässiger Two-Way-Requests Wireless Session Protocol (WSP) • Sitzungsverwaltung • verbindungsorientiert/verbindungslos WAE WSP WTP WTLS WDP Träger WAE WSP WTP WTLS WDP Träger Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  7. 3.2 Wireless Application Environment (WAE) Wireless Markup Language (WML) • basiert auf HDML (Unwired Planet‘s Handheld Device Markup Language) & XML WAP Binary XML Content Format (WBXML) • Datenreduzierung • „Tokenizing“: Tag -> Nummer WML Script - Funktionen auf Client -> verringert Netzwerklast WAE WSP WTP WTLS WDP Träger Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  8. 3.2 Wireless Application Environment (WAE) Wireless Telephony Application (WTA) • telefonspezifische Funktionen Content Formate • vCard 2.1 • vCalendar 1.0 • Multipart Messages • WTA Events • Standard Grafikformate (TIFF, JPEG, GIF) • WBMP – Wireless Bitmap • Pictogramme WAE WSP WTP WTLS WDP Träger Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  9. 3.3 WAP Infrastruktur È À À WAP Client WAP Gateway/ Proxy HTTP Server encoded response WML Encoder / Decoder Dateien, Scripte, ... response WAE User Agent WAE Services WMLScript Compiler encoded request request drahtlose Verbindung drahtgebundene Verbindung Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  10. 3.3 WAP Infrastruktur User Agent Profile • Eigenschaften des WAE User Agent Beispiel für WSP/HTTP Header: Accept: application/x-wap.wmlc; uaprof=http://www.beispiel.de/, application/x-wap.wmlscriptc; uaprof=http://www.beispiel.de/, text/x-vcard, text/x-vcal Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  11. 3.4 Programmierung >> 3.4.1 WML <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN“ "http://www.wapforum.org/DTD/wml_1.1.xml"> <!– Prolog --> <head> <!–- Dateizugriff, Meta --> </head> <template> <!–- für alle Cards gültige Spez. --> </template> <wml> <card id="Karte1" title="Erste Karte"> ... </card> <card id="Karte2" title="Zweite Karte"> ... </card> <card id="Karte3" title="Dritte Karte"> ... </card> </wml> DECK CARD CARD CARD Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  12. 3.4 Programmierung >> 3.4.1 WML <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <cardid="home" title="Pizzadienst"> <palign="center"><imgsrc="pizza.wbmp" alt="Pizza"/></p> <p>Willkommen beim Pizzadienst</p> <p> <small><ahref="#card1">zur Bestellung ...</a></small><br/> <small><ahref="#kontakt">Kontakt</a></small> </p> </card> • <p> ... Absatz • <br/> ... Zeilenumbruch • <small>, <strong> ... Textformatierung • <a> ... Link Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  13. 3.4 Programmierung >> 3.4.1 WML <cardid="card1" title="Pizza: Schritt 1"> <p> <dotype="accept" label="Weiter: Schritt 2"><gohref="#card2"/></do> <dotype="unknown" label="Zurück zum Start"><gohref="#home"/></do> <strong>Bitte geben Sie ein</strong><br/> Name: <inputname="name" type="text" format="*A"/><br/> Anschrift: <inputname="anschrift" type="text"/> </p> </card> • <do> ... Button-Belegung • <go> ... definiert Ziel • <input> ... Eingabe-Element Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  14. 3.4 Programmierung >> 3.4.1 WML <cardid="card2" title="Pizza: Schritt 2"> <p> Hallo $(name)!<br/> Wählen Sie Ihre Pizza:<br/> <selectname="wunsch"> <optionvalue="ph">Pizza Hawaii</option> <optionvalue="ps">Pizza Salami</option> <optionvalue="pm">Pizza Magaritha</option> </select> <dotype="accept" label="Weiter: Schritt 3"><gohref="#card3"/></do> </p> </card> • $(var) ... Zugriff auf Variable • <select> ... Auswahlliste mit: • <option> ... Listenelement Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  15. 3.4 Programmierung >> 3.4.1 WML <cardid="card3" title="Pizza: Schritt 3"> <dotype="accept" label="Senden!"> <gohref="/process" method="post"> <postfieldname="name" value="$(name)"/> <postfieldname="anschrift" value="$(anschrift)"/> <postfieldname="wunsch" value="$(wunsch)"/> </go> </do> <dotype="prev" label="Neustart"><gohref="#home"/></do> <p>Daten absenden oder zurück zum Start?</p> </card> • <postfield> ... konkateniert Variablenwert und Variablenname und fügt zur URL hinzu: /process?name=Mustermann&anschrift=Teststraße&wunsch=ph Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  16. 3.4 Programmierung >> 3.4.1 WML <cardid="kontakt" title="Kontakt"> <p> Rufen Sie uns an: <ahref="wtai://wp/mc;033108154711">0331/08154711</a><br/> <ahref="wtai://wp/ap;033108154711;Pizzadienst">Tel.buch-Eintrag anlegen</a> </p> </card> </wml> • wtai://wp/mc;Nummer ... Anruf tätigen • wtai://wp/ap;Nummer;Bezeichnung ... Telefonbucheintrag hinzufügen Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  17. 3.4 Programmierung >> 3.4.2 WMLScript Funktionen • Kopf: extern function Identifier(FormalParameterList) { ... function body ... } • Aufruf: Identifier(FormalParameterList); Statements • if-then-else: if(Ausdruck) Statement else Statement; • While: while(Ausdruck) { ...Statement ... }; • For: for(Variable/Ausdruck; Audruck; Ausdruck) { Statement }; WMLScript Standard Libraries • Standard Funktionen können von Applikationen genutzt werden (Lang, String, URL, WMLBrowser, Dialogs, Float [optional]) Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

  18. 3.4 Programmierung >> 3.4.2 WMLScript WML-Seite: currency.wml <cardid="card1" title="Währungsrechner"> <p> <selectname="cur"> <optionvalue="eur2dm">EURO zu DM</option> <optionvalue="dm2eur">DM zu EURO</option> </select> <inputname="wert" type="text"/> Resultat: $(result) </p> <dotype="accept" label="Berechne!"> <gohref="currency.wmls#currency('result','$(cur)','$(wert)')"/> </do> </card> extern function currency(varName,cur,wert) { var result; if(cur == 'eur2dm') result = wert*1.9558; else result = wert/1.9558; WMLBrowser.setVar(varName, result); WMLBrowser.refresh(); } WMLScript-Datei: currency.wmls Proseminar „Allgegenwärtiges Rechnen“ Internet Protokolle und Formate

More Related