What is WAP?
The WAP protocol - The leading standard for information services on wireless terminals like digital mobile phones.
WML is the language used to create pages to be displayed in a WAP browser.
- 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
What is WML?
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.
WAP-WML-LINKS
Visit my WAP Page at http://pureflash.net/wap.wml
The Wireless FAQ
Configuring IIS and Apache Server
Configuring IIS Server
Start the Microsoft Management Console (Start -> Run -> MMC) and load the IIS snap-in from the c:\winnt\system32\inetsrv\iis directory. Right click on the node that matches the name of your web server and choose the properties option.
Click on the edit button next to the master properties drop down box, select the HTTP Headers tab, and click on the file types button:
Click on the file types button to see the registered file types
This will load the registered file types dialog. Click on the new type button and create five new file types using the list shown below:
- Associated extension: wml -> Content type: text/vnd.wap.wml
- Associated extension: wmls -> Content type: text/vnd.wap.wmlscript
- Associated extension: wmlc -> Content type: application/vnd.wap.wmlc
- Associated extension: wmlsc -> Content type: application/vnd.wap.wmlscriptc
- Associated extension: wbmp -> Content type: image/vnd.wap.wbmp
Click OK three times to close all of the open dialogs, and then close MMC itself. You will need to restart IIS so that it picks up our newly added MIME types.
[!] We don't have to set the MIME types for WAP content in IIS/Apache, and we can add the details of the MIME type manually to a script using by modifying its header information.
Now that our Apache/IIS web server is ready to handle requests for WAP content, let's create a simple "hello world" script using WML and WMLScript.
Configuring Apache Server
For Apache, you need to edit the httpd.conf file (which contains Apache's configuration directives) and add the following lines to the end of the file:
AddType text/vnd.wap.wml wml
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
AddType image/vnd.wap.wbmp wbmp
The AddType directive tells Apache the details of the MIME types for files with specific extensions. The AddType directive is used like this:
AddType [MIME Type] [File Extension to map mime type to]
We've just added five new MIME types to Apache's httpd.conf file. If we now create a blank file called test.wml, then when we request this file through a WAP device, Apache will set the MIME type of that request to text/vnd.wap.wml, which indicates that the file contains WMLScript.
You'll need to restart Apache so that it recognizes our newly added MIME types.
.htaccess wap wml config
AddType image/vnd.nokia.ota-bitmap ota
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType text/vnd.wap.wml wml
AddType audio/amr amr
AddType audio/mid mid
AddType audio/midi midi
AddType application/vnd.Nokie.ringing-tone rng
AddType application/vnd.symbian.install sis
AddType application/vnd.wap.wmlc wmlc
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.sic sic
AddType text/vnd.wap.si si
AddType application/vnd.wap.slc slc
AddType text/x-vCalendar vcs
AddType text/v-vCard vcf
AddType application/vnd.nokia.gamedata ngd
AddType image/vnd.wap.wmbp wbmp
AddType image/x-bmp bmp
AddType image/vnd.nok-3dscreensaver n3a
AddType text/x-co-desc cod
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType application/vnd.smaf .mmf
AddType audio/x-mpegurl m3u
WML PHP - Header Configuration
header("Content-Type: text/vnd.wap.wml");
WML ASP - Header Configuration
Response.contenttype="text/vnd.wap.wml"
xHTML, CSS