At first, u must have a wap gateway. Second, u must add wap special header info to response. Whatever u are using servlet or asp, php etc, u must do these two steps. After that, the biggest diffrence between wap and normal cgi programming is generating diffrent format text output. (in fact, wap1.1 cannot support a lot of normal web option, such as security,frame,embbed object...).Nokia wap tookit is a easy tool for design wap page. There are a lot of free WBMP toolkit to design image for wap. Wap spec document u can get from phone.com, ibm, nokia etc. The wap header infor, u can get that by some tools such as netants (in fact, u can telnet that server by port 80, type http command to get response from the server, so u can get that message).
Nokia had a wap gateway downloadable. u can construct a real wap server with a pc and a modem with phone line. :)To LongLong:
     Sorry to write in english. My english is poor. But i cannot input in chinese with chinese star, now.