|
Blog > WML and WAP Typical WML File Structure
Posted on April 28, 08 @ 05:32 am under WML and WAP and has no comments.
<!-- The xml notation -->
<?xml version="1.0"?>
<!-- DOCTYPE specification -->
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
<!-- Starting of WML Deck (set of cards) -->
<wml>
<!-- Starting of Card (screen displayed at once) -->
<card id="welcome" title="Welcome">
<!-- Everything has to be in paragraphs -->
<p>Welcome to WAP Content!!!</p>
<p><a href="page2.wml">Sample Link </a></p>
<p><a href="#contact">Contact Webmaster</a></p>
<!-- ... much more content ... -->
<!-- End of card -->
</card>
<!-- More cards if needed -->
<card id="contact" title="Contact Webmaster">
<p>Webmaster: Krishna Srikanth (a@b.c)</p>
</card>
<!-- End of WML deck -->
</wml> 
MIME Extensions for enabling WAP on Webservers
Posted on March 30, 08 @ 12:19 am under WML and WAP and has no comments.
For enabling WAP on webservers, we need to configure the mime types for WAP document extensions. The following extensions need to be configured on webserver.
EXTN - MIME_TYPE
.wml - text/vnd.wap.wml
.wmls - text/vnd.wap.wmlscript
.wbmp - image/vnd.wap.wbmp
.wmlc - application/vnd.wap.wmlc
.wmlsc- application/vnd.wap.wmlscriptc
Configuring Apache :
These extensions can be added in httpd.conf. Include this line in conf file and restart the server.
AddType <MIME_TYPE> <EXTN>
Configuring IIS:
Go to Start > Run > Inetmgr > Right click on Default Website > Properties > HTTP Headers > MIME Types. You can add or edit the MIME settings accordingly. 
WML in Nokia Toolkit
Posted on March 30, 08 @ 12:18 am under WML and WAP and has no comments.
WML cannot be opened in Nokia Mobile Internet toolkit. This is because of the JRE version incompatibility. If your system doesn't have JRE 1.4, or if you have latest version of JRE, this problem occurs.
To solve this, degrade your JRE version to 1.4. For more info, see this link.
http://discussion.forum.nokia.com/forum/showthread.php?t=65284 
Pages: [1]
|