WAPing around the block tonight.

1 Conversation

OK off for a short time, with busted digit, = Bored.

Time for a project, me thinks……!!!

Hum <eureka> something I’ve never wanted to do.

Parts.......
One or two WAP phones.
One 2K A Server.
One BB connection to the internet,
<evilgrin>
A 56K modem.
A land lines.

Step one........Get dial in to my In-house network first.

First, setup a second web server and test <ok>
Second, setup dial in accesses to it . <ok>

First Problem?

Normal Web content can't be displayed on the majority of cell phones. This is not only because cell phone displays are small, (somewhere between 84 pixels wide by 48 pixels tall, and/or 176-pixel by 208-pixel screen resolution) but also because the majority of them can display only grayscale or monochrome images.

These issues will play havoc with your Web site contents. And as if that wasn't bad enough, the processing power of cell phones to render Web content is low; the bandwidth available for transferring content is low (a maximum of 14.4 kilobits per second and often considerably less because of interference); connections may be lost; and the latency can be high.

In short, the wireless environment could be described as "very <blessing> hostile" for Web access. <ok> small, dull, pages then, well for now.

HTML is a format that is hard for the majority of WAP browsers on cell phones to handle. Wireless Markup Language, (WML) the native tongue of my WAP browser Thus, if you want to offer information to my WAP browsers, I really need to create WML documents. Luckily, this is not very difficult.

Wireless Markup Language could be thought of as a variant of HTML (think of it as HTML Light), although technically it is a type of Extensible Markup Language (XML). Thus WML documents should start with a Document Type Definition (DTD) declaration:

i.e. <? xml version="1.0"?> <! DOCTYPE wml PUBLIC"....... ">

This is the current standard for all WML documents. The rest of a WML document appears inside <wml> ... </wml> tags. Within these tags is a new concept called: the deck.

A WML deck is a group of related Web pages called cards that are stored in a single WML page, which is downloaded by the WAP browser.

Each card is delimited by <card> ... </card> tags.

And looks like this:

<wml>

<card id="Card_1" title="Welcome!">

<p>Hello WML World!</p>

</card>

</wml>

The id attribute is effectively a bookmark—a named reference that a link in another card in the deck can point to. (The id must be unique in the deck, and 18 characters is the maximum length due to display limitations.) The title attribute gives the WML card a name to display.

You can have as many cards in a deck as you like.


Rules for WAP/WML Displaying Content.

•Keep it simple! WAP browsers are significantly limited, so don't expect to make your WAP site look like your regular Web site.

•Always include alt text. If the user's browser doesn't display images, or the images get corrupted because of communications errors (far more common than on the wired Internet), then the alt text prevents the WML page from being useless.

•Keep your WML pages small. Remember, wireless bandwidth is scarce. the bigger, the longer they will take to download.

•Make sure your images are small and display well at low resolution.

• Test, test, test. Because WAP and WML are relatively new, you need to make sure that your new content really does work!


The only difference between a WEB server and a WAP server is what is known as, and called MIME types.

In a nut-shell, MIME types tell the server what to do with which type of files. WAP uses WML files, so you need to set the MIME types correctly for these types of files.

Step two..........So, in the Windows 2000 Internet Services Manager, select the web server or directory in which you want to place your WAP files, and select "Properties" from the right-click menu.

From the properties window, select the "HTTP Headers" tab, and then click on "File Types" at the bottom.

A list of registered file types will appear which will probably be blank at this stage.

Add the following MIME types.

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

It's a good idea to go to the "Documents" tab, and add one new documents with name of “index.wml". This simply sets the default document loaded if no document is specified by the browser.

(For some reason, Microsoft appears to like the name "default.htm", rather than "index.html" which the rest of the world seems to use!)


A simple test page for your server.
----------------------------------------


<? xml version="1.0"?> <!DOCTYPE wml PUBLIC”......">
<wml>
<card id="Card_1" title="Welcome!">
<p>
Hello WML World!
</p>
</card>
</wml>

-----------------------------------------
Save this document in the servers root directory as “Index.wml”


And test, test, test, “http://www.wapsilon.com/ “ <ok>, that’s the hard bit over.

Step three, cross it all over to apache on Red hat…!!!

Bookmark on your Personal Space


Conversations About This Entry

Entry

A2502677

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

References

External Links

Not Panicking Ltd is not responsible for the content of external internet sites

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more