WAP Tutorial and Information
WAP
WAP (Wireless Application Protocol) is a communications protocol that allows mobile phones and other wireless terminals to access the Internet. WAP uses an XML (eXtensible Markup Language) syntax called WML (Wireless Markup Language).
WAP webpages can only be viewed by WAP enabled mobile phones and WAP compatible web browsers. Current Web browsers such as Internet Explorer and Netscape are not yet able to view these pages. You will need to use a specially configured browser to see WML webpages.
WML and WMLScript to be served from our web hosting accounts. All WAP content must be named with the appropriate extension as follows.
| Extension | Content Type |
|---|---|
| .wml | WML Source |
| .wmls | WML Script |
| .wbmp | Wireless Bitmap |
Creating a WAP pages
First create a document in a text editor (but not in a word processor like Word) and type:
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
This is the header for the WAP page and it contains the XML and document type declaration. Next add the following:
<card id="Card1" title="A WML Page">
<p>
Hello World
</p>
</card>
</wml>
The WML deck starts with <wml> and ends with </wml> tags. Each deck may contain one or more cards. The first card of WML page is displayed by the mobile phone and this card provides the links to the other cards of the deck.
WML card starts with <card> and ends with </card> tag. Attribute "id" of card element gives the identity to the card and using this id we can refer any card in the WML page. Next is <p> tag which we are using to display the paragraph. We can use <p>, <b>, <i>, <br>, <a> in our programming and these tags are identical to the HTML tags.
Now save the file, 'helloworld.wml' save the file to a directory on your hosting account.
To display the page open your WAP browser and type 'http://mydomain/helloworld.wmp', replacing mydomain with the domain you have hosted.










