0% found this document useful (0 votes)
63 views

Chapter#6 - Web Technologies

The document discusses various technologies used for web applications, including: 1) Client/server communication protocols like SMTP, HTTP, and session tracking techniques like cookies and URL rewriting to maintain state. 2) Document markup languages like HTML and style sheet language CSS to separate document structure and presentation. 3) Client-side scripting languages like JavaScript to dynamically manipulate web pages. 4) Server-side technologies like PHP, Java servlets, ASP, and ASP.NET for generating dynamic web content. 5) Web services architecture involving service providers, requestors, and registries using standards like UDDI, WSDL, and SOAP.

Uploaded by

Aisha Anwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Chapter#6 - Web Technologies

The document discusses various technologies used for web applications, including: 1) Client/server communication protocols like SMTP, HTTP, and session tracking techniques like cookies and URL rewriting to maintain state. 2) Document markup languages like HTML and style sheet language CSS to separate document structure and presentation. 3) Client-side scripting languages like JavaScript to dynamically manipulate web pages. 4) Server-side technologies like PHP, Java servlets, ASP, and ASP.NET for generating dynamic web content. 5) Web services architecture involving service providers, requestors, and registries using standards like UDDI, WSDL, and SOAP.

Uploaded by

Aisha Anwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

LECTURE BY:

TECHNOLOGIES
ENGR.PRIHA
BHATTI(SED,SSUET) FOR WEB
APPLICATIONS
INTRODUCTION

❏ Web technology refers to the means by which computers


communicate with each other using markup languages and
multimedia packages. It gives us a way to interact with hosted
information, like websites.
CLIENT/SERVER COMMUNICATION ON WEB
CLIENT/SERVER COMMUNICATION ON WEB

SMTP (Simple Mail Transfer Protocol)


❏ SMTP (Simple Mail Transfer Protocol) is a TCP/IP protocol used in sending and receiving
e-mail.
❏ it is usually used with one of two other protocols, POP3(Post OfficeProtocol) or
IMAP(Internet Message Access Protocol , that let the user save messages in a server
mailbox and download them periodically from the server.
CLIENT/SERVER COMMUNICATION ON
WEB(CONT.)
HTTP – HyperText Transfer Protocol
❏ HTTP is a form of communication protocol which specifies how web clients and servers
should communicate.
❏ The basic structure of HTTP follows a request-response model.
❏ A client always initiates a request message to the server; the server generates a
response message.
HTTP Request Message
❏ Every HTTP request message has the same basic structure:
- Start Line (request method, URI, HTTP version)
- Header field(s) (one or more)
- Blank line
- Message body (optional)
SESSION TRACKING
❏ Sessions and session tracking. In general, a session is a client-server connection
that enables the exchange of information between the two computers.
❏ Session Tracking is a way to maintain state (data) of an user. It is also known as session
management in servlet. Http protocol is a stateless so we need to maintain state using
session tracking techniques. Each time user requests to the server, server treats the
request as the new request.
❏ Why is Session Tracking needed?
Because HTTP is a stateless protocol. When there is a need to maintain the conversational
state, session tracking is needed. For example, in a shopping cart application a client
keeps on adding items into his cart using multiple requests. ... So in this scenario, there is a
certain need for session tracking.
SESSION TRACKING(WAY TO TRACK)
URL Rewriting
❏ URL rewriting is another way to support anonymous session tracking. With URL rewriting,
every local URL the user might click on is dynamically modified, or rewritten, to include
extra information.
❏ The extra information can be in the form of extra path information, added parameters, or
some custom, server-specific URL change.
❏ For example, the following URLs have been rewritten to pass the session ID 123:
- http://server:port/servlet/Rewritten original
- http://server:port/servlet/Rewritten/123 extra path information
- http://server:port/servlet/Rewritten?sessionid=123 added parameter
- http://server:port/servlet/Rewritten;$sessionid$123 custom change
SESSION TRACKING(WAY TO TRACK)

Cookies
❏ A cookie is text which the Web application sends to the Web browser.
❏ The browser stores this text and sends it to the server on every HTTP request which it
makes.
❏ A cookie can generally store up to four kilobytes of any text a Web application chooses to
store in it. This text can be, for example, a unique ID to identify the user. Because the
cookie is returned to the server with every HTTP request, the unique ID can be used to
identify which user is accessing the page, and so can be used to track the user as they
move across the different pages in a Web application.
DOCUMENT-SPECIfiC TECHNOLOGIES
HTML
❏ HyperText Markup Language
❏ Primary document type for the web
- Transmitted using the HyperText Transfer Protocol
- Client sends request string (with parameters)
- Server returns a document
- Stateless protocol
❏ Describes document content and structure
- Precise formatting directives added later
- Content and structure in same document
HTML STRUCTURE
❏ HTML document is a text based representation of a tree of tags
❏ General structure:
<OUTERTAG attribute1=‘val1’ attribute2=‘val2’>
<INNERTAG attribute3=‘val3’>some text</INNERTAG>
</OUTERTAG>
CSS
❏ HTML was not meant to support styling information
- But browsers started supporting inline style changes to make web look better
❏ Inline styling information is problematic
- Difficult to change
- Lack of consistency
- No support for different display formats
- Bloats pages
- No support for some styling features
CONNECTING HTML TO CSS
❏ HTML document typically refers to external style sheet
<HEAD>
<LINK rel="stylesheet" type="text/css“ href="fluorescent.css">
</HEAD>
❏ Style sheets can be embedded:
<HEAD><STYLE type="text/css">
<!-- …CSS DEFINITIONS.. -->
</STYLE></HEAD>
XML
❏ Extensible Markup Language
- Based on SGML format
- Intended to facilitate data exchange
❏ Documents consist of tags and data
- Data is usually untyped characters
- Tags have names and attributes
❏ Document has tree structure
- Tags are nested
CLIENT SIDE: SCRIPTING
LANGUAGES(JAVASCRIPT)
❏ The most common scripting language
Originally supported by Netscape, eventually by IE
❏ Typically embedded in HTML page
Executable computer code within the HTML content
Interpreted at runtime on the client side
❏ Can be used to dynamically manipulate an HTML document
Has access to the document object model
Can react to events
Can be used to dynamically place data in the first place
Often used to validate form data
❏ Weak typing
VBSCRIPT
❏ Microsoft’s answer to JavaScript
- Never been supported by Netscape
- Less in use now
❏ Use <script type="text/vbscript">
❏ Similar to JavaScript
- Follows Visual Basic look and feel
- Possible to declare variables
- Use “option explicit” to force declaration
- Separates procedures and functions
CLIENT SIDE TECHNOLOGIES(JAVA APPLETS)
❏ Precompiled Java programs which can run independently within a browser
- Main applet class inherits from java.applet.Applet
❏ Sandboxed by a variety of security measures and functional limitations
- Cannot read/write most files on host
- Most network connections are blocked

❏ Applet API facilitates browser-related tasks

- Obtain parameters from the <APPLET> tag


- Load files relative to the applet or page URL
- Setting status messages on the browser
- Make the browser display a document.
- Play sounds
SERVER_SIDE TECHNOLOGIES(PHP)
❏ Personal Home Page tools
● Open-source language for server-side scripting
- Commercial 3rd party optimizers available
● Adopted in popular large-scale web-applications
- Software behind Wikis and WikiPedia
❏ Built-in facilities for popular protocols and services
❏ Requires special server support
- Web master must allow php scripts
SERVER SIDE TECHNOLOGIES: HIGH-LEVEL
LANGUAGES
❏ Java servlets
❏ ASP
❏ ASP.NET
JAVA SERVLETS
 Properties of Servlets :
• Servlets work on the server-side.
• Servlets are capable of handling complex requests obtained from web server.
 Execution of Servlets :
Execution of Servlets involves six basic steps:
1. The clients send the request to the web server.
2. The web server receives the request.
3. The web server passes the request to the corresponding servlet.
4. The servlet processes the request and generates the response in the form of output.
5. The servlet sends the response back to the web server.
6. The web server sends the response back to the client and the client browser displays it
on the screen.
ASP & ASP.NET
 ASP stands for Active Server Pages. It is a development framework used for building web pages.
ASP was introduced in 1998 by Microsoft as its first server-side scripting language. The file
extension of ASP pages are .asp and are normally written in VBScript. It is an old but still powerful
tool for making dynamic web pages. ASP is a technology (much like PHP) for executing scripts on a
web server.
 Example:

<html>
<body>
<%response.write("Welcome to Hello World!")%>
</body>
</html>
ASP.NET
❏ ASP.NET was released in 2002 by Microsoft as a successor to ASP. It is also a server-side web
framework, open source, which is designed for the generation of dynamic web pages. The file
extension of ASP.NET pages are .aspx and are normally written in C# (C sharp). The latest version
of ASP.NET is ASP.NET 4.6.
❏ Example:
@{
var rank = 50;
}
<html>
<body>
@if (rank < 60)
{
<p>Welcome to Hello World!</p>
}
</body>
</html>
WEB SERVICES

 The architecture of web service interacts among three roles: service provider, service requester, and service
registry. The interaction involves the three operations: publish, find, and bind.

 The service provider hosts a network-associable module (web service). It defines a service description for
the web service and publishes it to a service requestor or service registry. These service requestor uses a find
operation to retrieve the service description locally or from the service registry. It uses the service description
to bind with the service provider and invoke with the web service implementation.
 Service Provider
 From an architectural perspective, it is the platform that hosts the services.
 Service Requestor
 Service requestor is the application that is looking for and invoking or initiating an interaction with a service.
The browser plays the requester role, driven by a consumer or a program without a user interface.
 Service Registry
 Service requestors find service and obtain binding information for services during development.
WEB SERVICES(OVERALL ARCHITECTURE)
❏ UDDI
- Information on available web service
❏ WSDL
- A description of how to communicate using the web service
❏ SOAP
- Protocol for exchanging messages
UNIVERSAL DESCRIPTION, DISCOVERY, AND
INTEGRATION (UDDI)
❏ Universal Description, Discovery, and Integration (UDDI) provides the definition of a set of
services supporting the description and discovery of
(1) businesses, organizations, and other Web Services providers,
(2) the Web Services they make available, and
(3) the technical interfaces which may be used to access those services. The idea is to "discover"
organizations and the services that organizations offer, much like using a phone book or dialing
information.
 Registration consists of:

 White pages info – real address and contact information

Basic information such as a company name, address, and phone numbers.

 Yellow pages info – industrial categorization

Detailed business data, organized by relevant business classifications. The UDDI version of the yellow pages
classifies businesses according to the newer NAICS (North American Industry Classification System) codes.

 Green pages info – technical information on exposed services

Information about a company's key business processes, such as operating platform, supported programs,
purchasing methods, shipping and billing requirements, and other higher-level business protocols.
WEB SERVICES DESCRIPTION LANGUAGE (WSDL)
 WSDL stands for Web Services Description Language. It is the standard format for describing a web
service. WSDL was developed jointly by Microsoft and IBM. WSDL is written in XML

 Web Services Description Language (WSDL) is an XML-based file that basically tells the client
application what the web service does. The WSDL file is used to describe in a nutshell what the web
service does and gives the client all the information required to connect to the web service and use
all the functionality provided by the web service.

• The WSDL file contains the location of the web service and
• The methods which are exposed by the web service.
 Below is the general structure of a WSDL file
• Definition
• Data Types
• Messages
• Port type
• service
SIMPLE OBJECT ACCESS PROTOCOL (SOAP)
❏ It is an XML-based messaging protocol for exchanging information among computers. SOAP is an
application of the XML specification.
• SOAP is a communication protocol designed to communicate via Internet.
• SOAP can extend HTTP for XML messaging.
• SOAP provides data transport for Web services.
• SOAP can exchange complete documents or call a remote procedure.
• SOAP can be used for broadcasting a message.
• SOAP is the XML way of defining what information is sent and how.
• SOAP enables client applications to easily connect to remote services and invoke remote methods.
BIBLIOGRAPHY
Mandatory reading

 Chapter 6

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy