|
|
|
|
|
|
|
Author Rank :
|
|
|
Page Views :
|
38529
|
|
Downloads :
|
0
|
|
Rating :
|
Rate it
|
|
Level :
|
Intermediate
|
|
Introduction:
This article presents a general idea of the WAP (Wireless Application Protocol) and developing mobile Web application with .NET. Let me first explain the basic principles of WAP and a sample WML code and the same code in the .NET Mobile Web SDK.
History of WAP:
WAP is a global standard and is not controlled by any single company. Ericsson, Nokia, Motorola, and Unwired Planet founded the WAP Forum in the summer of 1997 with the initial purpose of essential an industry-wide specification for developing applications over wireless communications networks.
At first Phone.com, Ericsson, Nokia and many others began developing standards separately of each other, but soon they understand that it would make more sense to focus improvement around a common standard. They all wanted to establish a common layout for Internet transfers to mobile telephones, without having to modify the Internet pages for the particular display on every different mobile telephone or personal organizer. With WAP Forum they were able to find such a protocol.
What is WAP?
The Wireless Application Protocol (WAP) is an open, global specification that empowers mobile users with wireless devices to easily access and interact with information and services right away.
The WAP is a specification for a set of communication protocols to standardize the way that wireless devices, such as cellular telephones and radio transceivers, can be used for Internet access, including e-mail, the World Wide Web, and newsgroups.
What is WAP Forum?
The WAP Forum is the industry association comprising over 500 members that has developed the in effect world standard for wireless information and telephony services on digital mobile phones and other wireless terminals.
The primary goal of the WAP Forum is to bring together companies from all segments of the wireless industry value chain to ensure product interoperability and enlargement of wireless market.

The WAP architecture.
To access a Web site on a mobile phone, we have to type the URL in the browser. Using Wireless Transport Layer Security (WTLS), the mobile phone browser generates an encrypted URL request and sends it over Wireless Session Protocol (WSP) to a WAP gateway server. WSP is a variant of HTTP that transfers information in binary format, rather than text-based format.
The WAP gateway server interprets the request, translates it into a conventional HTTP request, and sends it to the Web server.
After getting the request, the Web server interprets it and determines which resources to retrieve or execute. If the URL indicates a file, the server sends the file to the client. If the URL indicates an ASP page, then the Web server executes the ASP code before sending the results to the WAP gateway server. In this method the returned content must be in the form of a WML document.
The gateway server removes the unnecessary headers, translates the WML document into binary, and sends the response to the mobile phone browser. The browser interprets the WML and displays it to the user. This is the architecture behind the WAP.
WML (WIRELESS MARKUP LANGUAGE)
WML (Wireless Markup Language), previously called HDML (Handheld Devices Markup Language), is a language that allows the text portions of Web pages to be presented on cellular phones and personal digital assistants (PDAs) via wireless access. WML is part of the Wireless Application Protocol (WAP) that is being proposed by several vendors to standards bodies. Any programmer with working knowledge of HTML, CGI scripts, and SQL queries should be able to write a presentation layer using WML. A filter program can be written or may be available from a vendor that will translate HTML pages into WML pages.
In summary the WML is
- Tag-based browsing language.
- Screen management (text, images).
- Data input (text, selection lists, etc.).
- Inherits technology from HDML and HTML.
- W3C XML-based language.
- Hyperlinks & navigation support.
. NET Mobile Web SDK:
In November 2000, Microsoft released Beta 1 of the .NET Mobile Web SDK. After installing the .NET platform, install the .NET Mobile Web SDK. In this article I show you that how to create a simple mobile web application.
Let us see first how to create in WML language.
Let's see the typical Hello INDIA, as a mobile application written in WML. Most important here is the header. The absolutely first character that is received by the browser must be the < character that starts the line <?xml version="1.0">. Any other characters, even a space or a carriage return or other will break the card.
<?xml version="1.0"> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" http://www.wapforum.org/STS/wml_1.1.xml> <wml> <card id="mycard" title="My first card arungg"> <p> HELLO,INDIA! </p> <card> </wml>
Now let's see it implemented in the .NET Mobile Web SDK.
<%@ Page Inherits="System.Mobile.UI.MobilePage" Language="C#" %> <%@ Register TagPrefix="mobile" Namespace="System.Mobile.UI" %> <mobile:Form runat="server" ID="Form1" NAME="Form1"> <mobile:Label runat="server" ID="Label1" NAME="Label1"> HELLO, INDIA! </mobile:Label> </Mobile:Form>
Place this code in the Notepad and name it as HelloINDIA.aspx document in a virtual directory you create for Internet Information Services. It appears that, the code doesn't seem alike to WML. However the displayed result is the same.

The output is like the above one.
That's all in creating a simple Mobile Web application.
Conclusion
Using Visual Studio .NET, you will be able to develop Mobile Web applications easily. Microsoft has integrated the .NET Mobile Web SDK directly into the Visual Studio .NET environment and makes it easy to create Mobile Web applications.
I believe that this article provides you a little bit information about WAP, WML and creating Mobile Web applications.
|
|
Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post
Here.
|
|
|
|
|
Login
to add your contents and source code to this article
|
|
|
|
|
|
|
|
|
|
|
|
G Gnana Arun Ganesh
G.GNANA ARUN GANESH, an ECE graduate (1997-2001) seeking a profession in either Software or Hardware Company. During Campus interview selected as a Software Engineer at GREEN MICRO SYSTEMS Chennai, a German collaboration company. Due to down stream in software market they have cancelled the offer. His skills includes VB, COM/DCOM, ASP, VB.NET, C# and Embedded systems. He is also a writer of numerous articles for many technical Web sites.
|
|
|
|
|
|
|
|
|
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional
consulting company, our consultants are well-known experts in .NET and many of them
are MVPs, authors, and trainers. We specialize in Microsoft .NET development and
utilize Agile Development and Extreme Programming practices to provide fast pace
quick turnaround results. Our software development model is a mix of Agile Development,
traditional SDLC, and Waterfall models.
|
|
Click here to learn more about C# Consulting. |
|
|
|
|
|
|
|
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon.
Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees.
As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
|
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
|
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
|
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
|
|
|
|
|
|
|
|
|
|
|
|
|