Location: PHPKode > projects > Filebased News Mangagement > filebased-news-mangagement/doc/wap-documents.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Creating WAP Documents</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<BODY text=#000000 vLink=#800000 aLink=#800000 link=#800000 bgColor=#ffffff>
<DIV align=center>
    <TABLE width=600 border=0 cellpadding="10" cellspacing="1" bgcolor="#009900">
        <TD><b><font color="#FFFFFF" size="4">Creating WAP Documents</font></b></TD>
        <TD bgcolor="#FFFFFF"  face=Tahoma, Arial> <FONT size=2>
          <P>WAP (Wireless Application Protocol) is a protocol that allows wireless
            devices access to information and services over the Internet. WAP
            makes it possible to deliver Web content through a WAP gateway server
            directly to a wireless Web-enabled device. By using already existing
            Internet technology such as XML and IP, WAP allows access to Internet
            content and services to wireless clients. With WAP, clients can obtain
            Internet content and services through devices such as, mobile phones,
            PDAs, pagers, two-way radios, smart phones, communicators, and terminals.
            The protocol is developed by <A href="http://www.wapforum.org/">WAP
            Forum</A>, an organization of some of the most powerful Internet and
            telecom companies.</P>
          <P><B><FONT size=3>Configuration</FONT></B></P>
          <P>It is quite easy to enable a Virtual Server web server to serve WAP
            (Wireless Application Protocol) documents. The gateway is usually
            on the cellular network, so all that your web server needs are the
            correct MIME Types.</P>
              <P>Connect to your Virtual Server via Telnet or SSH and use an online
                editor, like <I>pico</I>, to open your web server configuration
                file (<I>~/www/conf/httpd.conf</I>). Or, download your web server
                configuration file via FTP, making sure to download (and upload)
                in ASCII format. Then make the following additions to the configuration
              <BLOCKQUOTE><FONT face="courier new, courier" size=2>AddType text/vnd.wap.wml
                AddType image/vnd.wap.wbmp .wbmp<BR>
                AddType application/vnd.wap.wmlc .wmlc<BR>
                AddType text/vnd.wap.wmlscript .wmls<BR>
                AddType application/vnd.wap.wmlscriptc .wmlsc<BR>
              <P>You might also want to add <FONT face="courier new, courier"
        size=2>index.wml</FONT> to the <FONT face="courier new, courier"
        size=2>DirectoryIndex</FONT> directive, like this:</P>
              <BLOCKQUOTE><FONT face="courier new, courier" size=2>DirectoryIndex
                index.wml index.html </FONT></BLOCKQUOTE>
          <P><B><FONT size=3>Testing</FONT></B></P>
          <P>Create a <I>~/www/htdocs/hello.wml</I> test file to verify that you've
            set things up right. The following sample code show how to create
            two sample cards using Wireless Markup Language (.wml).</P>
          <BLOCKQUOTE><FONT face="courier new, courier" size=2>&lt;?xml version="1.0"?&gt;<BR>
            &lt;!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"<BR>
            &lt;card id="card1" title="My Wap Page"&gt;<BR>
            &lt;p&gt;Hello world - this is my first wap card!&lt;/p&gt;<BR>
            &lt;p&gt;&lt;a href="#card2"&gt;Go to the second card&lt;/a&gt;&lt;/p&gt;<BR>
            &lt;card id="card2" title="Second Card"&gt;<BR>
            &lt;p&gt;This is my second wap card!&lt;/p&gt;<BR>
            &lt;p&gt;&lt;a href="#card1"&gt;Go back to the first card&lt;/a&gt;&lt;/p&gt;<BR>
          <P>When you develop WML pages, you should always check the page in one
            of the SDKs available.</P>
          <UL type=disc>
            <LI><A href="http://www.forum.nokia.com/main/1,6668,1_1_2,00.html">Nokia
              WAP Developer Tools</A>
            <LI><A href="http://www.ericsson.com/developerszone/">Ericsson Developers
            <LI><A href="http://www.phone.com/products/upsdk.html">Phone.com UP.SDK</A>
          <P>In order to view your new WAP document, you need a WAP-enabled cell
            phone or a WAP emulator. There are many WAP emulators available, including
          <UL type=disc>
            <LI><A href="http://www.gelon.net/">Wapalizer</A> - WAP Browser
            <LI><A href="http://www.waptiger.de/waptiger/">WapTiger</A> - Java
              WML-to-HTML converter </LI>
          <P><B><FONT size=3>More Information</FONT></B></P>
          <P>For more information and resources see the following.</P>
          <UL type=disc>
            <LI><A href="http://www.wap.com/">Wap.com</A> - Your guide to the wireless Internet</LI>
            <LI><A href="http://www.gelon.net/">Gelon.net</A> - WAP resources</LI>
            <LI><A href="http://www.wap-resources.net/">WAP Resources</A> - The WAP developers network</LI>
            <LI><A href="http://www.waptiger.de/download.html">WapTiger WBMP Converter</A> - Convert BMP files to WBMP</LI>
            <LI><A href="http://wap.z-y-g-o.com/tools/">Zygo Communications WAP Tools</A> - XML verifier, and more </LI>
            <LI><A href="http://wap.colorline.no/demos.html">Test routines for WAP phones</LI>
Return current item: Filebased News Mangagement