Просмотр файла mynews/doc/wap-documents.htm

Размер файла: 6.12Kb
<!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">
</HEAD>
<BODY text=#000000 vLink=#800000 aLink=#800000 link=#800000 bgColor=#ffffff>
<DIV align=center>
<CENTER>
    <TABLE width=600 border=0 cellpadding="10" cellspacing="1" bgcolor="#009900">
      <TR>
        <TD><b><font color="#FFFFFF" size="4">Creating WAP Documents</font></b></TD>
      </TR>
      <TBODY>
      <TR>
        <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>
          <OL>
            <LI>
              <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
                file.</P>
              <P>
              <BLOCKQUOTE><FONT face="courier new, courier" size=2>AddType text/vnd.wap.wml
                .wml<BR>
                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>
                </FONT></BLOCKQUOTE>
              <P></P>
            <LI>
              <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>
              <P>
              <BLOCKQUOTE><FONT face="courier new, courier" size=2>DirectoryIndex
                index.wml index.html </FONT></BLOCKQUOTE>
              <P></P>
            </LI>
          </OL>
          <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>
          <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>
            "http://www.wapforum.org/DTD/wml_1.1.xml"&gt;<BR>
            &lt;wml&gt;<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&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>
            &lt;/card&gt;<BR>
            &lt;/WML&gt;<BR>
            </FONT></BLOCKQUOTE>
          <P></P>
          <P>When you develop WML pages, you should always check the page in one
            of the SDKs available.</P>
          <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
              Zone</A>
            <LI><A href="http://www.phone.com/products/upsdk.html">Phone.com UP.SDK</A>
            </LI>
          </UL>
          <P></P>
          <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
            these:</P>
          <P>
          <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>
          </UL>
          <P></P>
          <P><B><FONT size=3>More Information</FONT></B></P>
          <P>For more information and resources see the following.</P>
          <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>
          </UL>
          </FONT></TD>
      </TR>
      </TBODY>
    </TABLE>
  </CENTER></DIV></BODY></HTML>