SlideShare a Scribd company logo
1 of 28
BY,
B.SOUNDARYA,
II – M.SC (CS),
DEPARTMENT OF CS & IT,
WEB PROGRAMMING
NADAR SARASWATHI COLLEGE OF ARTS &
SCIENCE
WEB SERVICES
&
WCF SERVICES
WEB SERVICES INTRODUCTION
 A Web services makes software application
resources available over networks using standard
technologies.
 Because web services are based on standard
interfaces, they can communicate even if they are
running on different operation systems and are
written in different language.
 For this reason they are an excellent approach for
building distributed application that must
incorporate diverse systems over a network.
The following topic outlines the standard technologies
that you use to built web services and the advanced
functionality available through asynchronous web
services:
 Standard Technologies
 WSDL Files
 XML and SOAP
 Network Protocols
 Web Service Architecture
STANDARD TECHNOLOGIES
 Web Services are able to expose their
resources in this generally accessible way
because they adhere to recognized standards.
 A web service:
1. Publicly describes its own functionality
through a WSDL File.
2. Communicates with other application via
XML messages, often formatted with SOAP.
3. Employs a standard network protocol such as
HTTP.
WSDLFILES
 The Web services description language is a
standard XML format for describing web
services.
 A WSDL files describes a particular web
service so that others software applications
can interface with it.
 WSDL are generally publicly accessible and
provide enough detail so that potential clients
can interface with it.
 WSDL are generally publicly accessible and
provide enough detail so that potential clients
can figure out how to operate the service
solely from reading the WSDL file.
 If a web service translates English sentence
into French, the WDSL file will explain how
service, and how the French translation will be
returned to the requesting client.
XML AND SOAP
 Extensible markup language (XML) message
provides a common language by which
different applications can talk to one another
over a network.
 Most web services communicate via XML .
 A client sends an XML message contains the
results of the operation.
 In most cases these XML messages are
formatted according to SOAP SYNTAX.
CONTUD,…..
 Simple Object Access Protocol (SOAP),
specifies a standard format for application to
call each other methods and pass data to one
author.
 This type of messages supported by a
particular web service are delineated in the
services WDSL file.
NETWORK PROTOCOLS
 Web services receive requests and send
responses using widely used protocols and
java message service.
 A web service may support more than one
protocol.
 The protocols that a web services supports are
published in the WSDL file.
WEB SERVICEARCHITECTURE
 The following illustration shows the relationship
between a web service its client software
applications and the resources it users including,
databases other web services, and so on.
 A web service communication with client and
resources over standard protocol in such as HTTP
by exchanging XML messages.
 The web logic server on which the web service is
deployed as responsible for routing incoming
XML messages to the web services code that you
write.
Here are some well known web services
that use markup languages:
1. Web template
2. JSON-RPC
3. JSON-WSP
4. WSDL
5. WSCL
6. WSFL
7. WSME
8. XINS
BASIC OFWCF SERVICE
 WCF Stands for Windows Communication
Foundation.
 It is a programming platform to build,
configure and deploy network distributed
services.
 It is a combined feature of the web services,
Remoting, MSMQ .
WHYWCF ?
 WCF service is flexible , as it can be hosted in
IIS, windows activation services, managed
windows services and supports self hosting.
 It supposed HTTP,WT_HTTP,TCP, Custom,
Named pipes, P2P,MSMQ, ect.
 It can sent/ receive messages through any
Transport protocol message format.
 By default, it uses SOPE for communication.
 It is more secure than ASP.NET web service.
 It doesn’t return unhandled exceptions to the
clients as SOAP faults.
ADVANTAGES
 WCF provides better security than ASMX
Web service.
 Small changes in the configuration are
required to change implementation of security
model and change the binding.
 Integrated logging mechanism.
 Interoperability with the other services.
CREATING THE WCF
STEP 1:
Open the visual studio and create a “New
project” and select the WCF option where
various WCF applications can be created, here
I want a service application and select that
choice and name the application and click ok.
STEP 2:
1. On successful project creation now visual
studio gives us the option for automatic code
sample.
2. All the reference are added and some of the
references are highlighted with red point for
your visual.
STEP 3:
1. Set the services.SVC files as the “ Start up
page” and execute the application, so
automatically the WCF Test client window
will be displayed.
STEP 4:
1. WCF test client execution
2. Here all the methods will be displayed and
also the appropriate method details will be
displayed on the right side pane when you
select the methods , which are readily
testable.
STEP 5:
1. “invoke” method will execute the method
with the input value and gives us the
response form the service and you can view
the response in the application output section
of WCF test client.
STEP 6:
1. Now you have successfully created the WCF
application and also tested using a “WCF
TEST CLIENT” to make it real on the other
part just think how many lines of code you
have typed for this applications execution.
THANK YOU!!!

More Related Content

What's hot

web service technologies
web service technologiesweb service technologies
web service technologiesYash Darak
 
Introduction to web services and how to in php
Introduction to web services and how to in phpIntroduction to web services and how to in php
Introduction to web services and how to in phpAmit Kumar Singh
 
Web services in j2 ee
Web services in j2 eeWeb services in j2 ee
Web services in j2 eeNaresh Chinnu
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaJignesh Aakoliya
 
Web Services - Architecture and SOAP (part 1)
Web Services - Architecture and SOAP (part 1)Web Services - Architecture and SOAP (part 1)
Web Services - Architecture and SOAP (part 1)Martin Necasky
 
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 test automation framework, challenges & benefits
Web services test automation framework, challenges & benefitsWeb services test automation framework, challenges & benefits
Web services test automation framework, challenges & benefitsCigniti Technologies Ltd
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservicesGagandeep Singh
 
Web services
Web services Web services
Web services BTailor
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service Safaa Farouk
 
Introduction of WebServices
Introduction of WebServicesIntroduction of WebServices
Introduction of WebServicesKhasim Saheb
 
Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentationguest0df6b0
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)ipower softwares
 

What's hot (20)

web service technologies
web service technologiesweb service technologies
web service technologies
 
Introduction to web services and how to in php
Introduction to web services and how to in phpIntroduction to web services and how to in php
Introduction to web services and how to in php
 
Web services
Web servicesWeb services
Web services
 
Web services in j2 ee
Web services in j2 eeWeb services in j2 ee
Web services in j2 ee
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company india
 
Web Services - Architecture and SOAP (part 1)
Web Services - Architecture and SOAP (part 1)Web Services - Architecture and SOAP (part 1)
Web Services - Architecture and SOAP (part 1)
 
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
Web servicesWeb services
Web services
 
Web Services
Web ServicesWeb Services
Web Services
 
Web services test automation framework, challenges & benefits
Web services test automation framework, challenges & benefitsWeb services test automation framework, challenges & benefits
Web services test automation framework, challenges & benefits
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
 
Web service
Web serviceWeb service
Web service
 
Overview of web services
Overview of web servicesOverview of web services
Overview of web services
 
Web services
Web services Web services
Web services
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service
 
Introduction of WebServices
Introduction of WebServicesIntroduction of WebServices
Introduction of WebServices
 
Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentation
 
Web Services ppt
Web Services pptWeb Services ppt
Web Services ppt
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)
 
Web services
Web servicesWeb services
Web services
 

Similar to Web programming

Web services Concepts
Web services ConceptsWeb services Concepts
Web services Conceptspasam suresh
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxssuser403d87
 
Anatomy Of A Web Service
Anatomy Of A Web ServiceAnatomy Of A Web Service
Anatomy Of A Web Servicekchavd01
 
Cloud computing 20 service modelling
Cloud computing 20 service modellingCloud computing 20 service modelling
Cloud computing 20 service modellingVaibhav Khanna
 
webservices overview
webservices overviewwebservices overview
webservices overviewelliando dias
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and developmentishmecse13
 
Web services
Web servicesWeb services
Web servicesaspnet123
 
Dot net training-navimumbai
Dot net training-navimumbaiDot net training-navimumbai
Dot net training-navimumbaivibrantuser
 
Advantage of WCF Over Web Services
Advantage of WCF Over Web ServicesAdvantage of WCF Over Web Services
Advantage of WCF Over Web ServicesSiva Tharun Kola
 
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Subodh Pushpak
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architectureYisal Khan
 
WebService-Java
WebService-JavaWebService-Java
WebService-Javahalwal
 

Similar to Web programming (20)

Java web services
Java web servicesJava web services
Java web services
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Concepts
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
Anatomy Of A Web Service
Anatomy Of A Web ServiceAnatomy Of A Web Service
Anatomy Of A Web Service
 
Cloud computing 20 service modelling
Cloud computing 20 service modellingCloud computing 20 service modelling
Cloud computing 20 service modelling
 
webservices overview
webservices overviewwebservices overview
webservices overview
 
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
Web servicesWeb services
Web services
 
dotNETfinal.ppt
dotNETfinal.pptdotNETfinal.ppt
dotNETfinal.ppt
 
dotNETfinal.ppt
dotNETfinal.pptdotNETfinal.ppt
dotNETfinal.ppt
 
Dot net training-navimumbai
Dot net training-navimumbaiDot net training-navimumbai
Dot net training-navimumbai
 
Advantage of WCF Over Web Services
Advantage of WCF Over Web ServicesAdvantage of WCF Over Web Services
Advantage of WCF Over Web Services
 
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 
Web Services
Web Services Web Services
Web Services
 
Xml.ppt
Xml.pptXml.ppt
Xml.ppt
 
WebService-Java
WebService-JavaWebService-Java
WebService-Java
 
Web services
Web servicesWeb services
Web services
 

More from sowfi

Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.scsowfi
 
Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.scsowfi
 
Soundarya m.sc
Soundarya m.scSoundarya m.sc
Soundarya m.scsowfi
 
Software engineering 2
Software engineering 2Software engineering 2
Software engineering 2sowfi
 
Compiler design
Compiler designCompiler design
Compiler designsowfi
 
Big data analytics
Big data analyticsBig data analytics
Big data analyticssowfi
 
RDBMS
RDBMSRDBMS
RDBMSsowfi
 
RDBMS
RDBMSRDBMS
RDBMSsowfi
 
connected compounds
connected compoundsconnected compounds
connected compoundssowfi
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHMsowfi
 
JDBE
JDBEJDBE
JDBEsowfi
 
AUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATORAUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATORsowfi
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest pathsowfi
 
servlet in java
servlet in javaservlet in java
servlet in javasowfi
 

More from sowfi (20)

Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.sc
 
Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.sc
 
Soundarya m.sc
Soundarya m.scSoundarya m.sc
Soundarya m.sc
 
Software engineering 2
Software engineering 2Software engineering 2
Software engineering 2
 
Compiler design
Compiler designCompiler design
Compiler design
 
Big data analytics
Big data analyticsBig data analytics
Big data analytics
 
OS
OSOS
OS
 
OS
OSOS
OS
 
RDBMS
RDBMSRDBMS
RDBMS
 
DM
DMDM
DM
 
CN
CNCN
CN
 
CN
CNCN
CN
 
Dm
DmDm
Dm
 
RDBMS
RDBMSRDBMS
RDBMS
 
connected compounds
connected compoundsconnected compounds
connected compounds
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHM
 
JDBE
JDBEJDBE
JDBE
 
AUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATORAUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATOR
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest path
 
servlet in java
servlet in javaservlet in java
servlet in java
 

Recently uploaded

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Web programming

  • 1. BY, B.SOUNDARYA, II – M.SC (CS), DEPARTMENT OF CS & IT, WEB PROGRAMMING NADAR SARASWATHI COLLEGE OF ARTS & SCIENCE WEB SERVICES & WCF SERVICES
  • 2. WEB SERVICES INTRODUCTION  A Web services makes software application resources available over networks using standard technologies.  Because web services are based on standard interfaces, they can communicate even if they are running on different operation systems and are written in different language.  For this reason they are an excellent approach for building distributed application that must incorporate diverse systems over a network.
  • 3. The following topic outlines the standard technologies that you use to built web services and the advanced functionality available through asynchronous web services:  Standard Technologies  WSDL Files  XML and SOAP  Network Protocols  Web Service Architecture
  • 4. STANDARD TECHNOLOGIES  Web Services are able to expose their resources in this generally accessible way because they adhere to recognized standards.  A web service: 1. Publicly describes its own functionality through a WSDL File. 2. Communicates with other application via XML messages, often formatted with SOAP. 3. Employs a standard network protocol such as HTTP.
  • 5. WSDLFILES  The Web services description language is a standard XML format for describing web services.  A WSDL files describes a particular web service so that others software applications can interface with it.  WSDL are generally publicly accessible and provide enough detail so that potential clients can interface with it.
  • 6.  WSDL are generally publicly accessible and provide enough detail so that potential clients can figure out how to operate the service solely from reading the WSDL file.  If a web service translates English sentence into French, the WDSL file will explain how service, and how the French translation will be returned to the requesting client.
  • 7. XML AND SOAP  Extensible markup language (XML) message provides a common language by which different applications can talk to one another over a network.  Most web services communicate via XML .  A client sends an XML message contains the results of the operation.  In most cases these XML messages are formatted according to SOAP SYNTAX.
  • 8. CONTUD,…..  Simple Object Access Protocol (SOAP), specifies a standard format for application to call each other methods and pass data to one author.  This type of messages supported by a particular web service are delineated in the services WDSL file.
  • 9. NETWORK PROTOCOLS  Web services receive requests and send responses using widely used protocols and java message service.  A web service may support more than one protocol.  The protocols that a web services supports are published in the WSDL file.
  • 10. WEB SERVICEARCHITECTURE  The following illustration shows the relationship between a web service its client software applications and the resources it users including, databases other web services, and so on.  A web service communication with client and resources over standard protocol in such as HTTP by exchanging XML messages.  The web logic server on which the web service is deployed as responsible for routing incoming XML messages to the web services code that you write.
  • 11. Here are some well known web services that use markup languages: 1. Web template 2. JSON-RPC 3. JSON-WSP 4. WSDL 5. WSCL 6. WSFL 7. WSME 8. XINS
  • 12. BASIC OFWCF SERVICE  WCF Stands for Windows Communication Foundation.  It is a programming platform to build, configure and deploy network distributed services.  It is a combined feature of the web services, Remoting, MSMQ .
  • 13. WHYWCF ?  WCF service is flexible , as it can be hosted in IIS, windows activation services, managed windows services and supports self hosting.  It supposed HTTP,WT_HTTP,TCP, Custom, Named pipes, P2P,MSMQ, ect.  It can sent/ receive messages through any Transport protocol message format.
  • 14.  By default, it uses SOPE for communication.  It is more secure than ASP.NET web service.  It doesn’t return unhandled exceptions to the clients as SOAP faults.
  • 15. ADVANTAGES  WCF provides better security than ASMX Web service.  Small changes in the configuration are required to change implementation of security model and change the binding.  Integrated logging mechanism.  Interoperability with the other services.
  • 16. CREATING THE WCF STEP 1: Open the visual studio and create a “New project” and select the WCF option where various WCF applications can be created, here I want a service application and select that choice and name the application and click ok.
  • 17.
  • 18. STEP 2: 1. On successful project creation now visual studio gives us the option for automatic code sample. 2. All the reference are added and some of the references are highlighted with red point for your visual.
  • 19.
  • 20. STEP 3: 1. Set the services.SVC files as the “ Start up page” and execute the application, so automatically the WCF Test client window will be displayed.
  • 21.
  • 22. STEP 4: 1. WCF test client execution 2. Here all the methods will be displayed and also the appropriate method details will be displayed on the right side pane when you select the methods , which are readily testable.
  • 23.
  • 24. STEP 5: 1. “invoke” method will execute the method with the input value and gives us the response form the service and you can view the response in the application output section of WCF test client.
  • 25.
  • 26. STEP 6: 1. Now you have successfully created the WCF application and also tested using a “WCF TEST CLIENT” to make it real on the other part just think how many lines of code you have typed for this applications execution.
  • 27.