WML Bigromu

This will help you build Learn WML,Learn WAP applications...Learn WML,Learn Wireless,Understand Markup Language Tutorial, Wireless Application Protocol Tutorial, Building WAP sites tutorial, Building Wireless Application Protocol Website tutorial, Web Site tutorial, Wap Site tutorial, Wap tutorial, WAP tutorial, Site Mobile tutorial, Mobile Site Tutorial, PDA SITE,

Friday, October 13, 2006

Sorry Forgot this ...

You can also ...

Via the Apache httpd.conf file.

You can modify the httpd.conf file only if you have control of the Apache server itself.

Locate the AddType section of the httpd.conf file and add the MIME types listed above. Then save the file and restart the server.

Review the Apache documentation for further information regarding the httpd.conf file.
Via the .htaccess file.

Just insert the MIME types into an .htaccess file and place it into the directory where your WML pages are kept.

Note: If after completing these steps you still cannot serve a WML page, contact your ISP for further information, as the server is sometimes configured to ignore .htaccess files for security reasons.

Mime Types

In order for Apache to correctly interpret the type of file (e.g. GIF, HTML, JPEG, PHP, etc...) being requested by a user, it must know its MIME type.

It is necessary for you to secure permission to modify Apache's httpd.conf file, so that Apache can correctly recognize the MIME type extensions involved with WML.

Otherwise, without permissions, you will need to place the MIME-types within a .htaccess file.

The MIME types that you will need in order to correctly serve WML documents are as follows:
# MIME Types for WAP

# For PHP 4.x, use this:
AddType application/x-httpd-php .wml

# For PHP 3.x, use this:
AddType application/x-httpd-php3 .wml

# For normal WML pages.
AddType text/vnd.wap.wml .wml

# For WML embedded graphics.
AddType image/vnd.wap.wbmp .wbmp

# End MIME Types for WAP

The above MIME types must be added to the Apache server's configuration file. There are two options for doing so:

* Via the Apache httpd.conf file
* Via the .htaccess file.

Prerequisites

It is highly recommended that you download any one of the several development toolkits available for testing a WML application. I recommend the following:

* Phone.com
Up.SDK 4.0; Available for the Windows and Solaris platforms.

* Nokia
The Nokia WAP Toolkit 2.0; Available for WinNT 4.0 with SPE and Win98. (Also requires JDK Runtime Environment 1.2.2 or higher.)