SlideShare a Scribd company logo
1 of 23
Introduction to Web Services
Bespoke Digital Media
India Pvt. Ltd
2
Agenda
 What is a Web service?
 Technologies used
 XML, SOAP, WSDL, DISCO, and UDDI
 Walkthrough creating a Web service
 Walkthrough creating a Web service client
 References
 Q&A
3
What is a Web Service?
 A programmable application component that
is accessible via standard Internet protocols
 Web page with functions
 Available for a variety of clients
 Examples: stock quotes, traffic conditions,
calculators, news, weather, et cetera
4
Technologies Used
 Standard way to represent data
 XML (and XML schemas)
 Common, extensible message format
 SOAP
 Common, extensible contract language
 Web Services Description Language (WSDL)
 Way to discover site services
 Disco
 Way to discover service providers
 Universal Description, Discovery, and Integration (UDDI)
5
XML
 Extensible Markup Language
 Language for describing documents with
structured data
 Industry standard
 XML Schemas – XSD
 XML based
 Language for describing data types
 For more information, read:
http://msdn.microsoft.com/library/en-us/dnwebsrv/html/xmloverchap2.asp
6
SOAP
 A simple, XML-based protocol for
exchanging structured and type information
on the Web
 Industry standard
 Lightweight and XML-based protocol
 Can support different protocols and formats:
HTTP, SMTP, and MIME
 SOAP message
 For more information, read:
http://msdn.microsoft.com/soap/
7
WSDL
 It is an XML document describing Web
services
 Define data types (XSD)
 Define messages in terms of types
 Define bindings to transport protocol, message
format
 SOAP 1.1, HTTP Get/Post, MIME
 Define services as collections of ports
 WSDL.exe
 For more information read:
http://msdn.microsoft.com/library/en-us/dnwebsrv/html/wsdlexplained.asp
8
DISCO
 Document Discovery
 A client finds a particular Web services by
discovery
 Document discovering services at a
particular URL
 Document is in XML format
 Document has .disco and .vsdisco
extensions
 Disco.exe
9
UDDI
 Universal Description, Discovery, and Integration
 Enables businesses to publish and discover
information about who provides what services
 Specification for distributed Web service
registries: white pages, yellow pages, and
green pages
 Builds on HTTP, XML, and SOAP
 For more information, read:
http://msdn.microsoft.com/library/en-us/dnexxml/html/xml12182000.asp
http://www.uddi.org/about.html
10
ASP.NET Web Service
 Leveraging existing ASP developers
 Easy to build, deploy, and administer as a
Web application
 File extension is .asmx
 End point is represented by URL
11
Creating a Web Service
 Open Microsoft Visual Studio® .NET
 Select the language
 Select the project type: ASP.NET Web Service
12
Creating a Web Service
 .asmx and .asmx.cs
 Web.config
 Global.asax
13
Creating a Web Service
 Inside Service.asmx
 <%@ WebService Language="C#"
CodeBehind="~/App_Code/Service.cs"
Class="Service" %>
14
Creating a Web Service
Inside Service1.asmx.cs
 Add WebService attribute’s Namespace
property
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment
the following line.
// [System.Web.Script.Services.ScriptService]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
15
Creating a Web Service (5)
 Compile the Web service & running
16
Creating a Consume web service
 Create a Web Site with C#
17
Creating a Consume web service
 Add Web reference
18
Creating a Consume web service
 Proxy file is created: Reference.cs
19
Creating a Consume web service
 Client code
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
localhost.Service sr = new localhost.Service();
Response.Write(sr.HelloWorld());
}
}
20
Creating a Consume web service
 Run the Web service client
21
Summary
 What is a Web service?
 Technologies used
 XML, SOAP, WSDL, DISCO, and UDDI
 Walkthrough of creating a Web service
 Walkthrough of creating a Web service client
Start building Web services today!
22
References
 Programming the Web with XML Web
services
Visual Studio .NET Help
ms-help://MS.VSCC/MS.MSDNVS/vsent7/html/vxconProgrammableWebServices.htm
 XML and SOAP Serialization
Visual Studio .NET Help
ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconserialization.htm
 Web Services Community
Go to http://msdn.microsoft.com/newsgroups/managed/default.asp
On left frame, drill down to
.NET Development > Framework > dotnet.framework.aspnet.webservices
Thanks..
23

More Related Content

What's hot

Introduction to Web Design By SiD
Introduction to Web Design By SiDIntroduction to Web Design By SiD
Introduction to Web Design By SiDjoin2fly
 
Web services
Web servicesWeb services
Web servicesBrillio
 
How develop a web application?
How develop a web application?How develop a web application?
How develop a web application?Md Ekram
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETPonraj
 
Web Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & CountermeasuresWeb Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & CountermeasuresPraetorian
 
web designing course in chandigarh
web designing course in chandigarhweb designing course in chandigarh
web designing course in chandigarhCBitss Technologies
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web servicesNeil Ghosh
 
Introduction To Website Development
Introduction To Website DevelopmentIntroduction To Website Development
Introduction To Website Developmentzaidfarooqui974
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web developmentfawaz
 
Web Design & Development Courses in Pune | 3DOT Technologies
Web Design & Development Courses  in Pune | 3DOT TechnologiesWeb Design & Development Courses  in Pune | 3DOT Technologies
Web Design & Development Courses in Pune | 3DOT Technologiesabeda786
 

What's hot (17)

Introduction to Web Design By SiD
Introduction to Web Design By SiDIntroduction to Web Design By SiD
Introduction to Web Design By SiD
 
Web services
Web servicesWeb services
Web services
 
How develop a web application?
How develop a web application?How develop a web application?
How develop a web application?
 
Java web services
Java web servicesJava web services
Java web services
 
Web services
Web servicesWeb services
Web services
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
 
Web Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & CountermeasuresWeb Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & Countermeasures
 
web designing course in chandigarh
web designing course in chandigarhweb designing course in chandigarh
web designing course in chandigarh
 
C language
C languageC language
C language
 
C language
C languageC language
C language
 
Web service
Web serviceWeb service
Web service
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Ajax
AjaxAjax
Ajax
 
Introduction To Website Development
Introduction To Website DevelopmentIntroduction To Website Development
Introduction To Website Development
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Web Design & Development Courses in Pune | 3DOT Technologies
Web Design & Development Courses  in Pune | 3DOT TechnologiesWeb Design & Development Courses  in Pune | 3DOT Technologies
Web Design & Development Courses in Pune | 3DOT Technologies
 
REST vs SOAP
REST vs SOAPREST vs SOAP
REST vs SOAP
 

Viewers also liked

Viewers also liked (15)

Shot List
Shot ListShot List
Shot List
 
Olympics fredy mandanda (2)
Olympics fredy mandanda (2)Olympics fredy mandanda (2)
Olympics fredy mandanda (2)
 
Bespoke digital media top 20 web designing tools
Bespoke digital media   top 20 web designing toolsBespoke digital media   top 20 web designing tools
Bespoke digital media top 20 web designing tools
 
Sight and sound
Sight and soundSight and sound
Sight and sound
 
Shopping Guide for Refrigerator
Shopping Guide for RefrigeratorShopping Guide for Refrigerator
Shopping Guide for Refrigerator
 
Skip to main content
Skip to main contentSkip to main content
Skip to main content
 
Flow simulator group e
Flow simulator group eFlow simulator group e
Flow simulator group e
 
Poster Evaluations
Poster EvaluationsPoster Evaluations
Poster Evaluations
 
Shot List
Shot ListShot List
Shot List
 
Ro system animation
Ro system animationRo system animation
Ro system animation
 
Laporan+pompa+sentrifugal
Laporan+pompa+sentrifugalLaporan+pompa+sentrifugal
Laporan+pompa+sentrifugal
 
Pneumatik
PneumatikPneumatik
Pneumatik
 
Reverse osmosis
Reverse osmosisReverse osmosis
Reverse osmosis
 
Cypriot team (1)
Cypriot team (1)Cypriot team (1)
Cypriot team (1)
 
Cyprus team (1) (1)
Cyprus team (1) (1)Cyprus team (1) (1)
Cyprus team (1) (1)
 

Similar to Bespoke Digital Media - Web

Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and developmentishmecse13
 
Introduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshIntroduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshSiddhesh Bhobe
 
Dot net training-navimumbai
Dot net training-navimumbaiDot net training-navimumbai
Dot net training-navimumbaivibrantuser
 
Net framework
Net frameworkNet framework
Net frameworksumit1503
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeaturesguest9b7f4753
 
Web services and SOA
Web services and SOAWeb services and SOA
Web services and SOASubin Sugunan
 
58615764 net-and-j2 ee-web-services
58615764 net-and-j2 ee-web-services58615764 net-and-j2 ee-web-services
58615764 net-and-j2 ee-web-serviceshomeworkping3
 
WebServices Basic Introduction
WebServices Basic IntroductionWebServices Basic Introduction
WebServices Basic IntroductionShahid Shaik
 
SOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolSOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolMasud Rahman
 
Web services and SOA [Modified]
Web services and SOA [Modified]Web services and SOA [Modified]
Web services and SOA [Modified]Subin Sugunan
 
web-services-on-mobile-platform
web-services-on-mobile-platformweb-services-on-mobile-platform
web-services-on-mobile-platformSanjaySanjay970196
 
ASP.NET Unit-4.pdf
ASP.NET Unit-4.pdfASP.NET Unit-4.pdf
ASP.NET Unit-4.pdfabiraman7
 

Similar to Bespoke Digital Media - Web (20)

Webservices
WebservicesWebservices
Webservices
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and development
 
Web services overview
Web services overviewWeb services overview
Web services overview
 
Introduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshIntroduction To Dot Net Siddhesh
Introduction To Dot Net Siddhesh
 
Dot net training-navimumbai
Dot net training-navimumbaiDot net training-navimumbai
Dot net training-navimumbai
 
Net framework
Net frameworkNet framework
Net framework
 
Web 2 0 Technologies
Web 2 0 TechnologiesWeb 2 0 Technologies
Web 2 0 Technologies
 
dotNETfinal.ppt
dotNETfinal.pptdotNETfinal.ppt
dotNETfinal.ppt
 
dotNETfinal.ppt
dotNETfinal.pptdotNETfinal.ppt
dotNETfinal.ppt
 
Web 2 0 Fullfeatures
Web 2 0 FullfeaturesWeb 2 0 Fullfeatures
Web 2 0 Fullfeatures
 
Web services and SOA
Web services and SOAWeb services and SOA
Web services and SOA
 
58615764 net-and-j2 ee-web-services
58615764 net-and-j2 ee-web-services58615764 net-and-j2 ee-web-services
58615764 net-and-j2 ee-web-services
 
WebServices Basic Introduction
WebServices Basic IntroductionWebServices Basic Introduction
WebServices Basic Introduction
 
Web Services
Web Services Web Services
Web Services
 
Web services
Web servicesWeb services
Web services
 
SOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolSOAP--Simple Object Access Protocol
SOAP--Simple Object Access Protocol
 
Web services and SOA [Modified]
Web services and SOA [Modified]Web services and SOA [Modified]
Web services and SOA [Modified]
 
web-services-on-mobile-platform
web-services-on-mobile-platformweb-services-on-mobile-platform
web-services-on-mobile-platform
 
ASP.NET Unit-4.pdf
ASP.NET Unit-4.pdfASP.NET Unit-4.pdf
ASP.NET Unit-4.pdf
 
Web Service Basics and NWS Setup
Web Service  Basics and NWS SetupWeb Service  Basics and NWS Setup
Web Service Basics and NWS Setup
 

Recently uploaded

Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleanscorenetworkseo
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Intellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxIntellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxBipin Adhikari
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 

Recently uploaded (20)

Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleans
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Intellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxIntellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptx
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 

Bespoke Digital Media - Web

  • 1. Introduction to Web Services Bespoke Digital Media India Pvt. Ltd
  • 2. 2 Agenda  What is a Web service?  Technologies used  XML, SOAP, WSDL, DISCO, and UDDI  Walkthrough creating a Web service  Walkthrough creating a Web service client  References  Q&A
  • 3. 3 What is a Web Service?  A programmable application component that is accessible via standard Internet protocols  Web page with functions  Available for a variety of clients  Examples: stock quotes, traffic conditions, calculators, news, weather, et cetera
  • 4. 4 Technologies Used  Standard way to represent data  XML (and XML schemas)  Common, extensible message format  SOAP  Common, extensible contract language  Web Services Description Language (WSDL)  Way to discover site services  Disco  Way to discover service providers  Universal Description, Discovery, and Integration (UDDI)
  • 5. 5 XML  Extensible Markup Language  Language for describing documents with structured data  Industry standard  XML Schemas – XSD  XML based  Language for describing data types  For more information, read: http://msdn.microsoft.com/library/en-us/dnwebsrv/html/xmloverchap2.asp
  • 6. 6 SOAP  A simple, XML-based protocol for exchanging structured and type information on the Web  Industry standard  Lightweight and XML-based protocol  Can support different protocols and formats: HTTP, SMTP, and MIME  SOAP message  For more information, read: http://msdn.microsoft.com/soap/
  • 7. 7 WSDL  It is an XML document describing Web services  Define data types (XSD)  Define messages in terms of types  Define bindings to transport protocol, message format  SOAP 1.1, HTTP Get/Post, MIME  Define services as collections of ports  WSDL.exe  For more information read: http://msdn.microsoft.com/library/en-us/dnwebsrv/html/wsdlexplained.asp
  • 8. 8 DISCO  Document Discovery  A client finds a particular Web services by discovery  Document discovering services at a particular URL  Document is in XML format  Document has .disco and .vsdisco extensions  Disco.exe
  • 9. 9 UDDI  Universal Description, Discovery, and Integration  Enables businesses to publish and discover information about who provides what services  Specification for distributed Web service registries: white pages, yellow pages, and green pages  Builds on HTTP, XML, and SOAP  For more information, read: http://msdn.microsoft.com/library/en-us/dnexxml/html/xml12182000.asp http://www.uddi.org/about.html
  • 10. 10 ASP.NET Web Service  Leveraging existing ASP developers  Easy to build, deploy, and administer as a Web application  File extension is .asmx  End point is represented by URL
  • 11. 11 Creating a Web Service  Open Microsoft Visual Studio® .NET  Select the language  Select the project type: ASP.NET Web Service
  • 12. 12 Creating a Web Service  .asmx and .asmx.cs  Web.config  Global.asax
  • 13. 13 Creating a Web Service  Inside Service.asmx  <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>
  • 14. 14 Creating a Web Service Inside Service1.asmx.cs  Add WebService attribute’s Namespace property [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Script.Services.ScriptService] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public string HelloWorld() { return "Hello World"; } }
  • 15. 15 Creating a Web Service (5)  Compile the Web service & running
  • 16. 16 Creating a Consume web service  Create a Web Site with C#
  • 17. 17 Creating a Consume web service  Add Web reference
  • 18. 18 Creating a Consume web service  Proxy file is created: Reference.cs
  • 19. 19 Creating a Consume web service  Client code using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { localhost.Service sr = new localhost.Service(); Response.Write(sr.HelloWorld()); } }
  • 20. 20 Creating a Consume web service  Run the Web service client
  • 21. 21 Summary  What is a Web service?  Technologies used  XML, SOAP, WSDL, DISCO, and UDDI  Walkthrough of creating a Web service  Walkthrough of creating a Web service client Start building Web services today!
  • 22. 22 References  Programming the Web with XML Web services Visual Studio .NET Help ms-help://MS.VSCC/MS.MSDNVS/vsent7/html/vxconProgrammableWebServices.htm  XML and SOAP Serialization Visual Studio .NET Help ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconserialization.htm  Web Services Community Go to http://msdn.microsoft.com/newsgroups/managed/default.asp On left frame, drill down to .NET Development > Framework > dotnet.framework.aspnet.webservices