Web Services
  Home arrow Web Services arrow Page 2 - WML: An Introduction
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

WML: An Introduction
By: Frank Manno
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 16
    2004-02-11

    Table of Contents:
  • WML: An Introduction
  • Deal 'Em, Baby!
  • Shuffle That Deck
  • Would You Like My Special Offer
  • Welcome Aboard!
  • Wrap It Up

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    WML: An Introduction - Deal 'Em, Baby!


    (Page 2 of 6 )

    We’ll start by building a simple deck of cards. Remember, a deck is simply a group of WML cards. It’s that simple.



    <?xml version=&quot;1.0&quot;? >

    <!DOCTYPE wml PUBLIC &quot;-//OPENWAVE.COM//DTD WML 1.3//EN&quot; &quot;http://www.openwave.com/dtd/wml13.dtd&quot;></p>
    <p> </p>
    <
    p><!-- WML file created by the Openwave SDK -->



    </p>
    <
    p><wml>

     
    <card title=&quot;Home Card&quotid=&quot;home&quot;>

      
    <big>Our First Card</big>

      
    <p>Welcome to our first WAP-enabled page.  We're using WML1.3 to construct this deck of cards!</p>

      <p>Here'
    s a 

     
    </card>

    </wml>


    In the example above, we created a simple single-card deck that, when executed, will display a welcome message to our device.  As you can see, WML is very similar to HTML – most WML tags are derived from HTML.  We open our document with an XML declaration, followed by the location to the DTD we’ll be modeling our page after.  If you’re unfamiliar with XML documents and/or DTDs, feel free to read one of our XML tutorials. Next, we open our deck using the <wml> tag.  To create our card, we use the <card> tag, and simply make use of a couple of HTML tags, including the <big> tag to increase the font size, as well as our standard paragraph (<p>) tag.

    Here’s what the output would look like:

    WML & WAP

    In case you’re wondering what type of cell phone I’m using, I’ll take this time to introduce a development environment suited for WML: Openwave SDK.  Openwave is a company providing open software products and services for the mobile market.  Here’s a snip from their website:

    "Openwave products include phone software, multimedia messaging, Email, location, device management and mobile gateways. As one of the foremost innovators and market leaders in the mobile field, Openwave has gained worldwide experience and deep industry expertise.

    "Openwave leverages that expertise through a set of strategic and operational services. Our broad product portfolio and industry experience combine to make operators and device manufacturers successful by improving the end user experience."

    Openwave SDK is a free download and is a great tool for developing WML-based sites.  The SDK comes with various emulators, each with their own set of features, allowing you to test your sites on various phones.

    More Web Services Articles
    More By Frank Manno


     

    WEB SERVICES ARTICLES

    - Safety, Idempotence, and the Resource-Orient...
    - The Resource-Oriented Architecture in Action
    - Features of the Resource-Oriented Architectu...
    - The Resource-Oriented Architecture
    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek