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

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.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.