WML

WPF Tutorial

WML Basic Tutorials

WPF Examples

WML Basic Example

WPF Projects

WML Project

WML Interview Questions And Answers

More interview questions and answers

How you define WAP?

  WAP is stands for Wireless Application Protocol. Using WAP protocol we display internet contents on wireless users.example: mobile phone, i-pod etc.

Some basic information about WAP are given below:

1.WAP is used as an application communication protocol.
2.Using WAP we can access services and information
3.We can inherited WAP from Internet standards.
4.WAP is designed for handheld devices Like: mobile phones, i-pod etc.
5.Using WAP we can made micro browsers.
6.WAP support the WML(Wireless Markup Language) language to create applications.
 

How you define WAP Micro Browsers?

We use WAP Micro Browsers for small handhold wireless devices,Like: mobile phone.It is a small software than it can work with small hardware CPU and memory.

 Using Micro Browsers we can read the WMLScript which is reduced version of JavaScript.

What do understand from WML?

WML is a reduced name of Wireless Markup Language. Using WML we can write the application that work on WAP. 

Web Pages that we create using WML are called as \'Decks\' here Decks are the set of Cards.We can say that WML is based on XML but it has also inherited some art of HTML

How to format text in WML?

 I have you example which shows how to format text usig WML.
Example:
<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card title=\"TextFormat\">
<p>
normaltext<br/>
<em>emphasizedtext</em><br/>
<strong>strongtext</strong><br/>
<b>boldtext</b><br/>
<i>italictext</i><br/>
<u>underlinetext</u><br/>
<big>bigtext</big><br/>
<small>smalltext</small>
</p>
</card>
</wml>

How to create table using WML?

We can create table using WML

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML.1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card id=\"no1\" title=\"card1\">
<p>
<table column3=\"2\" boder=\"1\">
<tr>
<td>Cell1</td>
<td>cell2</td>
<td>cell3</td></tr>
</table>
</p>
</card>
</wml>

What do you understand from WMLScript?

 Using WMLScript we can run small code on WAP browsers used in small wireless devices.We can say that WML Script is a small code JavaScript language.It is use to store the reference of script Url.


Before run WML Script in to the WAP browsers, we should compiled WML Script into byte code on server. 

Give us some example of WAP?

 I have given some basic example of WAP. These are given Below:

1.Using WAP we can get information of train time-table.
2.Using WAP can purchase tickets.Like: movie,journey ticket etc.
3.Using WAP we perform task like that Flight check in
4.We can also viewing traffic information.
5.We can get information about current weather condition.
6.Using WAP we can do also trading of shares.
7.We can also display sport results on our small wireless devices.

What is the WML tags?

 We write WML code inside the <wml> tag. Generally, we use WML to write text but use of tables and images are slickly prohibited in WML.

We save file of WML Application by .WML extension.
We start WML code with <wml> and ends with </wml> tag. In WML each started tag should be closed. We can\'t write<WML> behalf of <wml>.

How you define WML Decks and Cards?

 Each WML pages is called as Deck.they can build as a set of cards in which each Deck is linked with others. 

When we accessed WML page from mobile phone than all the cards related to the page are downloaded to from web server.

Using an Example tell me how to create an WML document?

 I have given you an example which shows you how to create an WML document.

Example:
<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card id=\"JavaScript\" title=\"JavaScript Tutorial\">
<p>
Using JavaScpt we can make our HTML page dynamic. </p>
</card>
<card id=\"CSS\" title=\"CSS Tutorial\">
<p>
Using CSS we can insert some interactive features into the HTML page.</p>
</card>
</wml>

How to use Paragraph and Line break into the WML?

 I have given you example which show you how to use paragraph and Line break in WML.

Example:
<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card title=\"Paragraph\"> <p>
Here write a paragraph
</p>
<p>
This is first line<br/>This is second line
</p></card>
</wml>

How to create tables using WML?

 We can also create table using WML language. Like that,

Example:
<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card title=\"Table\"><p>
<table columns=\"3\">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</table>
</p>
</card>
</wml>

How you use Links and Images in WML?

 We Link WML pages by <anchor> and <a> tag.

We use <anchor> tag when we want to perform some specific task like that \'next\', previous\' or \'refresh\'.

Where using <a> tag we always performance a \'next\' tag without using variables.

How to get input from user in WML?

 We can get input from user in WML in the form of input fields,select and option,field set etc.


I have given a xample to show you how create input fields.

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card title=\"InputField\">
<p>
User_Name: <input name=\"User_Name\" size=\"15\"/><br/>
Email_Id:  <input name=\"Email_id\" size=\"20\" format=\"*N\"/><br/>
Mobile_No:  <input name=\"Mobile_No\" size=\"10\"/>
</p>
</card>
</wml>

 

Using Select and Option in WML.
Example:

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">

<wml>
<card title=\"Select List\">
<p>
<select>
<option value=\"wml\">WML Tutorial</option>
<option value=\"htm\">HTML Tutorial</option>
<option value=\"css\">CSS Tutorial</option>
</select>
</p>
</card>
</wml>
 

When user want to select more than one option then we can write.
Example:
<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">

<wml>
<card title=\"Select List(you can choose more than one option\">
<p>
<select multiple=\"true\">
<option value=\"wml\">WML Tutorial</option>
<option value=\"htm\">HTML Tutorial</option>
<option value=\"css\">CSS Tutorial</option>
</select>
</p>
</card>
</wml>
 

We can also use fieldset in WML.
Example:

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">

<wml>
<card title=\"Fieldset\">
<p>
<fieldset title=\"Employee Info\"><input type=\"hidden\" name=\"phpMyAdmin\" value=\"1\" /><input type=\"hidden\" name=\"phpMyAdmin\" value=\"2\" />
Name: <input name=\"name\" type=\"text\"/><br/>
ID: <input name=\"id\" type=\"text\"/>
</fieldset>
</p>
</card>
</wml>

What are the WML task? How to perform them?

 WML task is that we perform an action when a event occur.

 I have given you an example which shows you how to perform next and previous task.

Example:

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card>
<p>
 <anchor>
  Next page
  <go href=\"next.wml\"/>
 </anchor>
</p>
<p>
 <anchor>

  Previous Page

  <prev/>
 </anchor>
</p>
</card>
</wml>

 

We use <refresh> tag when we want to refresh some specific card variables.

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card>
<p>
 <anchor>
  Refresh curret page
  <go href=\"currentpage.wml\"/>
  <refresh>
   <setvar name=\"v\" value=\"100\"/>
  </refresh>
 </anchor>
</p>
</card>
</wml>

 

We use Noop task when we not want to do any operations.We use <noop> tag when we want to override deck-level elements.

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card>
<p>
 <do name=\"back\" type=\"prev\" label=\"Back\">
  <noop/>
 </do>
</p>
</card>
</wml>

How to use Timer in WML?

  We can set Timer in WML.We express time unit of timer as 1/10 of a second.

 Below I have given you which will display text on WML page for 6 seconds.

Example:

<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card ontimer=\"timetest.wml\"><timer value=\"60\"/>
<p>Write some text here</p>
</card>
</wml>

What are the WML variable?How to use them?

 Use of variables in WML is that when client want to switch over card to card in a deck,than client should have to store the data into variables.
 We can use variables in WML sing two ways.
1.Can set a variable using setvar Command: Suppose that if client want to execute go,prev and refresh type task than they can use setvar command and create a variable with a specific value.

Example:
<setvar name=\"x\" value=\"9999\"/>

2.Can set a variable with an input element: If we want to set variable with an input,select, option etc input element.

Example:

<card id=\"card1\">
<select name=\"enotes\">
<option value=\"PHP\">PHP Tutorial</option>
<option value=\"CSS\">CSS Tutorial</option>
<option value=\"WAP\">WAP Tutorial</option>

</select>
</card>

 
We can use this created variable enotes into the card2.

<card id=\"card2\">
<p>You have selected: $(enotes)</p>
</card>
 
In the above example we create an variable enotes in card1 and passed the selected enotes into card2 by variable enotes.

How to perform validation in your WML?

 We can validate our wml by using Microsoft XML parser(Which is used to create wmll validator.

 Now. to prform validation we paste our wml into the text area and validate them with submit validate button.

Example:
<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card id=\"card1\" title=\"Card 1\">
<p>Hello User!</p>
</card>
</wml>
 
 

How yu define Disco and UDDI?

 DISCO is stands for Discovery.It is a web service discovery tool which is used to discover the url of Web services of XML addessed on web server and sae document on local disk according to each XML service.

 Where as UDDI is stands for Universal Description ,Discovery and Integration.It is plateform independent framework.Using UDDI web service available to the consumer by describing the web service using a WDSL document and then registering the Web service into UDDI Directory. The UDDI Directory contains pointers to the Web service and the WDSL document for the Web service. After this is done the Client Applications can discover the Web service using the UDDI Directory.

The UDDI specification calls for three elements as given below:

1.White Pages: This is used to provide business contact information
2.Yellow Pages: This is used to organize Web services in these categories like usage billing service, authorization service etc.
3.Green Pages: This is used to provide detailed technical information of pages about individual services.

 

How you define WSDL?

WSDL stands for Web Service Discovery Language. It is an markup language which is used to describe web services.

We use WSDL port to describes the interfaces (legal operations) those are exposed by a web service.

WML Interview Questions And Answers