Now, the mobile Internet is more and more popular, so I want to be a WAP website that belongs to myself a certain day. But I have never learned WAP. It doesn't matter, today's society is a social society, there is nothing to learn. Let's understand what is WAP.
WAP is a referred to as a wireless application protocol. Its mode and HTTP are almost. HTTP is a protocol working on the Internet, while WAP is an agreement on mobile networks such as IntertEnet and GPRS. Mobile terminals such as mobile phones are in touch with the WAP gateway, while the WAP gateway is responsible for converting the WAP request of the mobile terminal into an HTTP request, then spread on the Internet. The WAP server receives the request back response, the WAP gateway is responsible for converting the response returned by the server into a file that meets the WAP protocol to the mobile terminal.
To make a WAP website build a WAP server, this is easier, which can be easily deployed on IIS. Let's talk about the specific steps.
Open Control Panel -> Administrative Tools -> "Internet Server", create a virtual directory, then open the property panel of the cover directory, find the MINE type, then add some of the WAP protocol file type, specific :
WML text / vnd.wap.wml
WBMP image / vnd.wap.wbmp
WMLC Application / VND.WAP.WMLC
WMLS text / vnd.wap.wmls
WMLSC Application / VND.WAP.WMLSC
This way the server is constructed. The next step is the specific written file. Can be written in Notepad. Below, a HelloWorld program is written in the following. The program content is as follows:
xml version = "1.0"?>
Hello World! p> card> wml> The meaning of the document and the grammar rules are introduced in the future. Save the file as Hello.wml, save it to the virtual directory that has just been established. The next step is to browse the effect of the file. You can browse with the simulator on the PC. More popular WinWap and M3gate, WinWap is a three-day trial version, while M3gate generally has no deadline. The browsing results are as follows: