1. A mobile terminal (such as a WAP mobile phone) with the WAP user proxy function sends a WAP service request to a website through a micro browser running internally. This request is first intercepted by the WAP Gateway and encoded and compressed to reduce network data traffic. At the same time, the WAP protocol is converted to the HTTP protocol as needed.
2. The Protocol transfers the processed requests to the corresponding WAP Server. On the WAP server side, the requested page is directly interpreted by the server script based on the page extension and other attributes, and then output to the user through the gateway.
I introduced some knowledge about how to build the development environment. Because I used php and apache to develop wap sites. Therefore, add the following section to the AddType section of the http. conf file of apache.
AddType text/vnd. wap. wml. wml
AddType application/vnd. wap. wmlc. wmlc
AddType text/vnd. wap. wmls. wmls
AddType application/vnd. wap. wmlsc. wmlsc
AddType image/vnd. wap. wbmp. wbmp
AddType image/vnd. wap. wbmp. wbmp
Restart Apache. this is OK.
Tested code
<? Php
Header ("Content-type: text/vnd. wap. wml ");
Echo ("<? Xml version = "1.0"> ");
Echo "<! DOCTYPE wml PUBLIC "-// WAPFORUM // dtd wml 1.1 // EN" \ "http://wapforum.org//DTD//wml_1.1.xml”> ";
Echo ("<wml> <card> <p> ");
Echo date ("l dS of f y h: I A"). "<br/> ";
Echo 'Hello World !, Hi ';
Echo ("</p> </card> </wml> ");
?>