.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wbmp image/vnd.wap.wbmp
一般我是在Windows Server 2000或者2003的IIS下配置WAP站点:
开始-〉程序-〉管理工具-〉Internet 信息服务(IIS)管理器-〉选择建立的WAP站点-〉鼠标右键“属性”-〉HTTP头-〉MIME类型-〉新建以下几个:
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmls text/vnd.wap.wmlscript
.wmlsc application/vnd.wap.wmlscriptc
.wbmp image/vnd.wap.wbmp
建立一个最简单的WML页面,代码如下:
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="hello" title="This is a test page" newc></card>
<p mode="wrap">Hello World!</p>
</wml>