SlideShare a Scribd company logo
Xml and webservice
By miss saba sumreen
xml
• XML is a software- and hardware-independent
tool for storing and transporting data.
• What is XML?
• XML stands for eXtensible Markup Language
• XML is a markup language much like HTML
• XML was designed to store and transport data
• XML was designed to be self-descriptive
• XML is a W3C Recommendation
• <hasnanin>
• <hobby>kch nhi</hobby>
• <profession>kch n</profession>
• </hasnain>
Xml and webservice
Xml and webservice
Xml and webservice
Xml and webservice
Xml and webservice
Xml and webservice
Xml and webservice
Xml and webservice
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003
/05/soap-envelope/"
soap:encodingStyle="http://www.w3.
org/2003/05/soap-encoding">
<soap:Header>
...
</soap:Header>
<soap:Body>
...
<soap:Fault>
...
</soap:Fault>
</soap:Body>
</soap:Envelope>
Xml and webservice
System.Web.Services Namespace
• The System.Web.Services namespace consists of
the classes that enable you to create XML Web
services using ASP.NET and XML Web service
clients. XML Web services are applications that
provide the ability to exchange messages in a
loosely coupled environment using standard
protocols such as HTTP, XML, XSD, SOAP, and
WSDL. XML Web services enable the building of
modular applications within and across
companies in heterogeneous environments
Classes
Class Description
WebMethodAttribute Adding this attribute to a
method within an XML Web
service created using ASP.NET
makes the method callable
from remote Web clients. This
class cannot be inherited.
WebService Defines the optional base class
for XML Web services, which
provides direct access to
common ASP.NET objects, such
as application and session
state.
WebServiceAttribute Used to add additional
information to an XML Web
service, such as a string
describing its functionality.
WebServiceBindingAttribu
te
Declares a binding that defines
one or more XML Web service
methods. This class cannot be
inherited.
Important points
• hTTP is a widely used protocl by the web service.
• SOAP message in the form of XML format
• There are three aspect of developing web service
development.
o creating the web service
o creating a proxy
o consuming the web service
Web service extension is .asmx
If a method needs to expose to a client that should be declare
with [web method] attribute. And the method must be public
• .
• public class my1stwebservice : System.Web.Services.WebService
• {
• [WebMethod (Description="this method for multplication")]
• public int multiplication(int a,int b)
• {
• return (a*b);
• }
• [WebMethod(Description="this method for sum")]
• public int sum(int a, int b)
• {
• return (a + b);
• }
• [WebMethod]
• public int minus(int a, int b)
• {
• return (a - b);
• }
• }

More Related Content

PPTX
Introduction to WebServices
PPTX
WebServices Basic Overview
PPTX
SOAP by luv
PPTX
Web Services
PPTX
Web services
PDF
Web Services
PPTX
WSDL in Mule Esb
PPTX
Web Services - A brief overview
Introduction to WebServices
WebServices Basic Overview
SOAP by luv
Web Services
Web services
Web Services
WSDL in Mule Esb
Web Services - A brief overview

What's hot (20)

PPT
PDF
ITI004En-Introduction to XML (III)
PPTX
WebServices
PPTX
PPTX
Dataweave
PPTX
Intro To Web and Web Services (REST Series 01)
PPT
Ajax presentation
PPTX
SOAP vs REST
PPTX
Webservices Workshop - september 2014
PPTX
Webservices divya 1
PPTX
Webservices divya
PPT
PPTX
Web services soap and rest by mandakini for TechGig
PPTX
Overview of AJAX
PPT
Cetpa dotnet taining
PPT
Project First presentation about introduction to technologies to be used
PPT
Http utilize
PDF
SOAP vs REST
ITI004En-Introduction to XML (III)
WebServices
Dataweave
Intro To Web and Web Services (REST Series 01)
Ajax presentation
SOAP vs REST
Webservices Workshop - september 2014
Webservices divya 1
Webservices divya
Web services soap and rest by mandakini for TechGig
Overview of AJAX
Cetpa dotnet taining
Project First presentation about introduction to technologies to be used
Http utilize
SOAP vs REST
Ad

Similar to Xml and webservice (20)

PPTX
Xml web services
PPT
Mule webservices in detail
PPT
Introduction to Web Services and the cocnept
PPTX
Sia webservices
PPTX
Windows communication foundation (part1) jaliya udagedara
PPT
Detailed information on webservice by websoles
PPT
Web services Tutorial /Websoles Strategic Digital Solutions
PPT
Best Web services tutorial | Websoles Strategic Digital Solutions
PPT
Web Services - Lectures and architecture.ppt
PPT
Web service
PPT
Web Services Part 1
PPTX
Web services
PPT
PPTX
SOAP Service in Mule Esb
PPT
2310 b 13
PPTX
Web service- Guest Lecture at National Wokshop
PPTX
Unit 3 WEB TECHNOLOGIES
PDF
Web services concepts, protocols and development
PPTX
Web services SOAP
Xml web services
Mule webservices in detail
Introduction to Web Services and the cocnept
Sia webservices
Windows communication foundation (part1) jaliya udagedara
Detailed information on webservice by websoles
Web services Tutorial /Websoles Strategic Digital Solutions
Best Web services tutorial | Websoles Strategic Digital Solutions
Web Services - Lectures and architecture.ppt
Web service
Web Services Part 1
Web services
SOAP Service in Mule Esb
2310 b 13
Web service- Guest Lecture at National Wokshop
Unit 3 WEB TECHNOLOGIES
Web services concepts, protocols and development
Web services SOAP
Ad

Recently uploaded (20)

PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Business Ethics Teaching Materials for college
PDF
Classroom Observation Tools for Teachers
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Pre independence Education in Inndia.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
01-Introduction-to-Information-Management.pdf
Cell Types and Its function , kingdom of life
Business Ethics Teaching Materials for college
Classroom Observation Tools for Teachers
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Final Presentation General Medicine 03-08-2024.pptx
Microbial disease of the cardiovascular and lymphatic systems
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Institutional Correction lecture only . . .
Pre independence Education in Inndia.pdf
Week 4 Term 3 Study Techniques revisited.pptx
PPH.pptx obstetrics and gynecology in nursing
Renaissance Architecture: A Journey from Faith to Humanism
STATICS OF THE RIGID BODIES Hibbelers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025

Xml and webservice

  • 1. Xml and webservice By miss saba sumreen
  • 2. xml • XML is a software- and hardware-independent tool for storing and transporting data. • What is XML? • XML stands for eXtensible Markup Language • XML is a markup language much like HTML • XML was designed to store and transport data • XML was designed to be self-descriptive • XML is a W3C Recommendation
  • 3. • <hasnanin> • <hobby>kch nhi</hobby> • <profession>kch n</profession> • </hasnain>
  • 14. System.Web.Services Namespace • The System.Web.Services namespace consists of the classes that enable you to create XML Web services using ASP.NET and XML Web service clients. XML Web services are applications that provide the ability to exchange messages in a loosely coupled environment using standard protocols such as HTTP, XML, XSD, SOAP, and WSDL. XML Web services enable the building of modular applications within and across companies in heterogeneous environments
  • 15. Classes Class Description WebMethodAttribute Adding this attribute to a method within an XML Web service created using ASP.NET makes the method callable from remote Web clients. This class cannot be inherited. WebService Defines the optional base class for XML Web services, which provides direct access to common ASP.NET objects, such as application and session state. WebServiceAttribute Used to add additional information to an XML Web service, such as a string describing its functionality. WebServiceBindingAttribu te Declares a binding that defines one or more XML Web service methods. This class cannot be inherited.
  • 16. Important points • hTTP is a widely used protocl by the web service. • SOAP message in the form of XML format • There are three aspect of developing web service development. o creating the web service o creating a proxy o consuming the web service Web service extension is .asmx If a method needs to expose to a client that should be declare with [web method] attribute. And the method must be public • .
  • 17. • public class my1stwebservice : System.Web.Services.WebService • { • [WebMethod (Description="this method for multplication")] • public int multiplication(int a,int b) • { • return (a*b); • } • [WebMethod(Description="this method for sum")] • public int sum(int a, int b) • { • return (a + b); • } • [WebMethod] • public int minus(int a, int b) • { • return (a - b); • } • }