Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Handhelds Software Apache Hardware

Serving WAP Pages? 16

kfs27 asks: "One of my professor with some of his Java students would like to get into handheld devices and WAP interfaces. They want to first start with building pages which can be viewed on a WAP enabled device. How does one go about serving these pages. Is there a specific WAP webserver or are there modules to Apache? What are the choices and any other suggestions you may have regarding WAP programming."
This discussion has been archived. No new comments can be posted.

Serving WAP Pages?

Comments Filter:
  • Try Cocoon (Score:5, Informative)

    by Roullian ( 156510 ) <julien@juliTEAen ... m minus caffeine> on Friday September 28, 2001 @10:37AM (#2363501) Homepage
    Cocoon is a project from the Apache Software Foundation (xml.apache.org), which, amongst many other things, let you create WML pages.
    • For the lazy, that's xml.apache.org [apache.org].
    • (insert huge frelling disclaimer here. - i did this all on my desktop NT 4 workstation at work...)

      i tried both cocoon 1.8 and cocoon2 out on my tomcat 3.2.1 at work (java jdk1.3.1) and i got REALLY horrid performance from cocoon2. it sucked what life was left in my NT box. what kicked ass were the chock full o samples that cocoon2 has, and also the ease with which it installed. MUCH easier to install than cocoon1. cocoon1 has you converting your whole tomcat over to a cocoon enabled server, while cocoon2 is a simple drop in .war file which is just for that context.

      anyone else have the same issues with performance on cocoon2 ? or was it just some funky situation i ran into on my box?

  • by Kelson ( 129150 ) on Friday September 28, 2001 @11:25AM (#2363766) Homepage Journal
    If you have a recent version of Apache, you might already have these in your mime.types file. If you intend to serve any static content, you'll need at least these mappings:

    application/vnd.wap.wmlc wmlc
    application/vnd.wap.wmlscriptc wmlsc
    image/vnd.wap.wbmp wbmp
    text/vnd.wap.wml wml
    text/vnd.wap.wmlscript wmls

    WAP sites are generally regular HTTP servers. The end-user's device contacts a gateway which then makes an HTTP request, compiles the data if it hasn't been already, and sends the compacted version on to the device.

    So it is actually possible to serve static WAP content using nothing more than the base Apache distribution and some added MIME types.
  • read about wap first (Score:2, Informative)

    by gnurd ( 455798 )
    http://developer.openwave.com

    the phones get their wml pages off of any normal http server via a proxy (wap gateway).
  • There's no difference between WML pages and HTML pages other than the MIME type that is used and the format in which they're written. Hence Apache can be used to serve them.

    If, on the other hand, you wish to make a dialin gateway that WAP devices can talk to, you'll need something like Kannel [kannel.org].

  • by friscolr ( 124774 ) on Wednesday October 03, 2001 @05:32PM (#2385740) Homepage
    The Spring 2001 issue of the Perl Journal had an article about developing wireless applications-
    http://www.samag.com/documents/s=1131/sam05040004/ [samag.com]
    which outlines useful perl modules, how to configure apache to play well with wml, and sample code for wireless appilcations.
  • by Anonymous Coward
    Check it out on PHPBuilder.com

    http://www.phpbuilder.com/columns/mike20010118.p hp 3
  • WAP is very dead - but if you really want - then:
    1) go to openwave and download the simulator
    2) then just use whatever web server and scripting pages you want - asp, jsp, php, whatever, just make sure your headers output that it is a wml page and then it will render just dandily on a WAP device.

    speaking from experience, I ported an entire asp site over to a wap device (not so hard if you write the site with functionality classes and display classes - then you can just add a wap display class and use the logic to pass either to that or the html pages based on what the client is).

    I just got a new assignment today that looks like I will now likely get the job of porting our newest software over so that it outputs via an xsl translation (of xml - duh) out to wml - which I think is silly since WAP is dead - but it will be easy enough to either add to this module, or replace it with whatever G3 tech comes popular soon enough.

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...