Wireless mark-up language (WML) is a mark-up language for wireless devices that adhere to Wireless Application Protocol (WAP) and have limited processing capability. Just like HTML is a mark-up language that renders content for desktop browsers, WML renders content for wireless devices that do not have appropriate processing capabilities. It does this by defining the protocol stack and WWW based Internet access for wireless devices. WAP also has sites written in WML like HTML-based sites.
WML is designed to handle issues like small display size, limited user input capabilities, narrowband network connection with high latency, limited memory and computational processing power.
WMLScript is a weakly typed language that provides no type checking during the compile time or the run time.
WMLScript uses the data types as follows: –
- Boolean: this is the data type used for the values like true or false and it usually deals in decision making.
- Integer: this is a data type containing the numerical values
- Floating-point: this is the data type used to provide the value in decimal points like 1.00, 1 e-10.
- String: this is the data type that stores the values in the form of characters in a contiguous memory location.
- Invalid: is the data type that describes the value of a function valid or invalid.
WML Script is also known as Wireless Markup Language Script that is used for the client side. It is a light weight script that runs on wireless devices for some processing and computation.
The components used in WMLScript are as follows:
- WML Script Operators: they are used to provide the operators to make it work on operands.
- It includes operators like Arithmetic, comparison, logical, etc. operators to make the writing of the script easier.
- WMLScript also provide the use of control statements that used to control the sequence and iterations made in the program.
Control statements of WMLScript provide a way to control the sequence of the program. – It also manages the iterations information used in the program to write the code more efficiently.
The control statements used in the program are as follows:
- Statement: it is the description about the program that helps in executing according to the code written.
- If-else: is used for the conditional branching where the decision of one branch over another takes place.
- For: this allows self incrementation of the loop over some lines of codes to make it execute.
- While: this is used to create a variable that provides iteration loop over the codes of lines.
The standard libraries are used for inbuilt functions and there usage that provides a way to use all that in the programming.
The standard libraries that exist are as follows:
- Lang: this is the library that provides the support for different language functions that are related to the WMLScript core language.
The functions that are used as follows: abs (), abort (), characterSet (), float (), isFloat (), isInt (), etc.
- Float: this is the library that allows the built-in functions to perform the floating point operations.
The functions that are uses as follows: sqrt (), round (), POW (), ceil (), floor (), int (), maxFloat (), minFloat ()
- String: it is the library that provides the functions for creation and manipulation of strings.
The functions that are uses as follows: length (), charAt (), find (), replace (), trim (), compare (), format (), etc.
- URL: this is the library that is used to provide the URL’s for manipulation and consists of the functions like: get Path (), getReferer (), getHost (), getBase (), escapeString (), isValid (), etc.
- WMLBrowser: this consists of the libraries that used to provide the group of functions controlling the data on the browser by using the functions like: go (), prev (), next (), etc.
- Dialogs: this is the library consisting of the user interface and related functions like: prompt(), confirm(), alert()
The commands allow the statements to be written in an object oriented manner and it also provide other provisions to make the code look short.
WML commands used in WMLScript are as follows:
Formatting commands:
- <p>: this is used to design the paragraph according to the requirements.
- <b>: this is used to make the paragraph bold according to the requirements.
- <big>: this is used to make the paragraph appear large according to the requirements.
- <em>: this is used to emphasize on the paragraph according to the requirements.
- <I>: this is used to make the paragraph italics according to the requirements.
Inserting images:
<img src=”image-path/image – name” alt=”Hello” />
Using Tables:
- <table>: this defines the table and used in the beginning of the table area to display it.
- <tr>: it defines the row of the table.
- <td>: it defines the data of the row that is presented in the table.
- <Thead>: it defines the table header of the table.
DISCO is stands for Discovery. It is a web service discovery tool which is used to discover the URL of Web services of XML addressed on web server and sae document on local disk according to each XML service.
Whereas UDDI is stands for Universal Description, Discovery and Integration. It is platform 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:
White Pages: This is used to provide business contact information
Yellow Pages: This is used to organize Web services in these categories like usage billing service, authorization service etc.
Green Pages: This is used to provide detailed technical information of pages about individual services.