First in the open IIS, and then in the Default Web site properties –http Header –mmie Mapping – File type – Add the type of registration file:
Copy Code code as follows:
Associated Extension MIME Type
WML TEXT/VND.WAP.WML
WMLC APPLICATION/VND.WAP.WMLC
Wbmp image/vnd.wap.wbmp
WMLSC APPLICATION/VND.WAP.WMLSCRIPTC
WMLS Text/vnd.wap.wmlscript
WSC APPLICATION/VND.WAP/WMLSCRIPTC
Now you can add WML files to your site. You can use the mobile phone simulator to browse, or Opera browser browsing. If your host is released externally, you can use your mobile phone to browse your site.
If you are using ASP to generate WML, you must include this sentence:
Copy Code code as follows:
<% response.contenttype= "TEXT/VND.WAP.WML"%>
For example, this example: test.asp
Copy Code code as follows:
<%@ language=vbscript%>
<% response.contenttype= "text/ VND.WAP.WML "%>
<?xml version= 1.0″?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en"
"Http://www.wapforum.org/DTD/wml_1.1.xml" >
<wml>
<card id= "main" >
<p>
Just A test on my WAP site!
</p>
</card>
</wml>