SlideShare a Scribd company logo
SOA AND WCF
SERVICE ORIENTED ARCHITECTURE & WINDOWS COMMUNICATION FOUNDATION

Dev Raj Gautam
Saturday, 18th may, 2013
Asp.NET Community MeetUp
SOA
SERVICE ORIENTED ARCHITECTURE
SOA

 SOA or Service oriented architecture is an architecture style for building business applications by means of

services. Application comprises collection of services which communicate through messages.
 Widely used in various programming platforms e.g. Net , Java etc.

 Consists set of components which can be invoked, and whose interface descriptions can be published and

discovered (W3C).
 Services are consumed by software service consumers (also known as clients or service requesters)
SOA & WCF
SERVICES IN SOA
 A service is a self-contained unit of software that performs a specific task
 Add a new customer, send an e-mail, register user etc.


It has three components:



Interface defines how a service provider will perform requests from a service consumer



Contract defines how the service provider and the service consumer should interact



implementation is the actual service code itself
MESSAGES IN SOA

 Services communicate with each other using messages. Messages are standard formats which everyone (every

service) can read and understand.
 Services communicate via standard Messages standard messages, which make them platform independent
WHY TO USE SOA? (IN SIMPLE TERMS)
 Exposing services ensures clients get data without directly connecting to data source.
 Process Reusability among different platforms
 Different UI can access for same process and data source
 Tackle heterogeneous technology stack
UNDERSTANDING THE REAL CONTEXT
HOW IS COMMUNICATION POSSIBLE AMONG HETEROGONOUS
PLATFORM? --SOAP

 By using the World Wide Web's Hypertext Transfer Protocol (HTTP) and its Extensible Markup Language (XML)

as the mechanisms for information exchange
 SOAP specifies exactly how to encode an HTTP header and an XML file so that a program in one computer can

call a program in another computer and pass it information. It also specifies how the called program can return a
response.
SOA & WCF
WCF
WINDOWS COMMUNICATION FOUNDATION
WCF
 The Windows Communication Foundation (or WCF), previously known as "Indigo", is a runtime and a set of APIs

(Application Programming Interface) in the .NET Framework for building connected service-oriented applications
(Wikipedia).
 Using WCF, you can send data as asynchronous messages from one service endpoint to another
 Multiple technologies at one place - WCF unites following four technologies.NET remoting
 MSMQ
 Web Services
 COM+
 .Net Remoting
Service Interface

Service Implementation
UNDERSTANDING THE SERVICE STRUCTURE
SAMPLE REQUEST AND RESPONSE FROM WCF


Request

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

<s:Header>
<Action s:mustUnderstand="1"
xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://te
mpuri.org/IService1/GetData</Action>
</s:Header>
<s:Body>
<GetData xmlns="http://tempuri.org/">
<value>1</value>
</GetData>
</s:Body>
</s:Envelope>



Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header />
<s:Body>
<GetDataResponse xmlns="http://tempuri.org/">
<GetDataResult>You entered: 1</GetDataResult>
</GetDataResponse>
</s:Body>
</s:Envelope>
WCF END POINTS
ABC OF WCF ENDPOINTS

 Address(Where?): Specifies the location of the service which will be like http://Myserver/MyService.Clients will

use this location to communicate with our service.
 Binding-Address(How?): Specifies how the two parties will communicate in terms of transport and encoding

and protocols.
 Contract(What?): Specifies the interface between client and the server. It's a simple interface with some

attribute.
FLEXIBILITY OF HOSTING OPTIONS IN WCF

 Self-Hosting Your Service :A managed .NET application can host the wcf service itself,
 Hosting in Windows Services
 Hosting Using Internet Information Services
WSDL IN WCF (DOCUMENTING FOR CLIENTS)

 WSDL documentation generation can be specified by [WSDLDocumentation (“”)] tag in service interface.
 Service, operations and input/output parameter descriptions are added to WSDL
SAMPLE WSDL
<WSDL:message name="EchoStringSoapIn">
<WSDL:part name="parameters" element="tns:EchoString" />
</WSDL:message>
...
<WSDL:operation name="EchoString">
<WSDL:input message="tns:EchoStringSoapIn" />
<WSDL:output message="tns:EchoStringSoapOut" />
</WSDL:operation>
thank you

More Related Content

PPTX
Web programming
PPTX
Xml web services
PPT
Webservices
PDF
web service technologies
PPTX
Web services
PDF
Web service assignment
PDF
Overview of web services
PPT
Web Services
Web programming
Xml web services
Webservices
web service technologies
Web services
Web service assignment
Overview of web services
Web Services

What's hot (20)

PDF
Understanding Web services
PPTX
Web Services - Architecture and SOAP (part 1)
ODP
Web service Introduction
PPTX
Web services in j2 ee
PPTX
Introduction to webservices
PPTX
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
PPTX
Understanding Web Services by software outsourcing company india
PDF
Web Services
PPT
Introduction to web services and how to in php
DOCX
KO on Web Services
PPTX
SOA - From Webservices to APIs
PPT
Web Service
PPTX
Introduction to Web Services
PPTX
Web service, wcf, web api
PPT
Web service architecture
PPTX
Web services test automation framework, challenges &amp; benefits
PPTX
Web services
PDF
Introduction to Web Services
PDF
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Understanding Web services
Web Services - Architecture and SOAP (part 1)
Web service Introduction
Web services in j2 ee
Introduction to webservices
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Understanding Web Services by software outsourcing company india
Web Services
Introduction to web services and how to in php
KO on Web Services
SOA - From Webservices to APIs
Web Service
Introduction to Web Services
Web service, wcf, web api
Web service architecture
Web services test automation framework, challenges &amp; benefits
Web services
Introduction to Web Services
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Ad

Viewers also liked (15)

DOC
adarsh resume
PPTX
5116 Physics mindmaps
ODT
Activitats la població 11
PPT
PPT
Ppt draft standards tour guides
PDF
Java j2ee-training-course-navi-mumbai-java-j2ee-course-provider-navi-mumbai
PPTX
Tangenta
PPTX
Open access workshop wits - 24th october 2013 - copy
ODP
El sectorterciari pvr
PPTX
Info 8.11.
PPTX
Women's health
PPTX
Unit 5 proses 1 function and ability group 5
PPTX
Genre lesson
PPT
CARTRIDGE SEAL INSTALLATION
adarsh resume
5116 Physics mindmaps
Activitats la població 11
Ppt draft standards tour guides
Java j2ee-training-course-navi-mumbai-java-j2ee-course-provider-navi-mumbai
Tangenta
Open access workshop wits - 24th october 2013 - copy
El sectorterciari pvr
Info 8.11.
Women's health
Unit 5 proses 1 function and ability group 5
Genre lesson
CARTRIDGE SEAL INSTALLATION
Ad

Similar to SOA & WCF (20)

PPT
PPTX
WCjffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
PDF
Windows Communication Foundation (WCF)
PPTX
web programming
PDF
WCF Interview Questions By Scholarhat PDF
PPT
Session 1: The SOAP Story
PPTX
Complete Architecture and Development Guide To Windows Communication Foundati...
PDF
SOA and WCF (Windows Communication Foundation) basics
PPT
Windows Communication Foundation
DOCX
Dealing with Diversity: Understanding WCF Communication Options in ...
PPT
Session 1 Shanon Richards-Exposing Data Using WCF
PPT
DotNet_WindowsCommunicationFoundation.ppt
PPTX
Windows Communication Foundation (WCF)
PPT
Dot Net Training Wcf Dot Net35
PPTX
WCF Fundamentals
PPT
Service Oriented Development With Windows Communication Foundation 2003
PPT
WFC_DotNetWindowsCommunicationFoundation.ppt
PPTX
1. WCF Services - Exam 70-487
PPTX
A presentation on WCF & REST
PPT
WINDOWS COMMUNICATION FOUNDATION
WCjffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
Windows Communication Foundation (WCF)
web programming
WCF Interview Questions By Scholarhat PDF
Session 1: The SOAP Story
Complete Architecture and Development Guide To Windows Communication Foundati...
SOA and WCF (Windows Communication Foundation) basics
Windows Communication Foundation
Dealing with Diversity: Understanding WCF Communication Options in ...
Session 1 Shanon Richards-Exposing Data Using WCF
DotNet_WindowsCommunicationFoundation.ppt
Windows Communication Foundation (WCF)
Dot Net Training Wcf Dot Net35
WCF Fundamentals
Service Oriented Development With Windows Communication Foundation 2003
WFC_DotNetWindowsCommunicationFoundation.ppt
1. WCF Services - Exam 70-487
A presentation on WCF & REST
WINDOWS COMMUNICATION FOUNDATION

More from Dev Raj Gautam (9)

PPTX
Protecting PII & AI Workloads in PostgreSQL
PPTX
RED’S, GREEN’S & BLUE’S OF PROJECT/PRODUCT MANAGEMENT
PPTX
Making machinelearningeasier
PPTX
Recommender System Using AZURE ML
PPTX
From c# Into Machine Learning
PPTX
Machine Learning With ML.NET
PPTX
Intelligent bots
PPTX
ASP .NET MVC Introduction & Guidelines
PPTX
DotNet programming & Practices
Protecting PII & AI Workloads in PostgreSQL
RED’S, GREEN’S & BLUE’S OF PROJECT/PRODUCT MANAGEMENT
Making machinelearningeasier
Recommender System Using AZURE ML
From c# Into Machine Learning
Machine Learning With ML.NET
Intelligent bots
ASP .NET MVC Introduction & Guidelines
DotNet programming & Practices

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Cloud computing and distributed systems.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PDF
Electronic commerce courselecture one. Pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Machine learning based COVID-19 study performance prediction
Per capita expenditure prediction using model stacking based on satellite ima...
Network Security Unit 5.pdf for BCA BBA.
“AI and Expert System Decision Support & Business Intelligence Systems”
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Cloud computing and distributed systems.
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Monthly Chronicles - July 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Building Integrated photovoltaic BIPV_UPV.pdf

SOA & WCF

  • 1. SOA AND WCF SERVICE ORIENTED ARCHITECTURE & WINDOWS COMMUNICATION FOUNDATION Dev Raj Gautam Saturday, 18th may, 2013 Asp.NET Community MeetUp
  • 3. SOA  SOA or Service oriented architecture is an architecture style for building business applications by means of services. Application comprises collection of services which communicate through messages.  Widely used in various programming platforms e.g. Net , Java etc.  Consists set of components which can be invoked, and whose interface descriptions can be published and discovered (W3C).  Services are consumed by software service consumers (also known as clients or service requesters)
  • 5. SERVICES IN SOA  A service is a self-contained unit of software that performs a specific task  Add a new customer, send an e-mail, register user etc.  It has three components:  Interface defines how a service provider will perform requests from a service consumer  Contract defines how the service provider and the service consumer should interact  implementation is the actual service code itself
  • 6. MESSAGES IN SOA  Services communicate with each other using messages. Messages are standard formats which everyone (every service) can read and understand.  Services communicate via standard Messages standard messages, which make them platform independent
  • 7. WHY TO USE SOA? (IN SIMPLE TERMS)  Exposing services ensures clients get data without directly connecting to data source.  Process Reusability among different platforms  Different UI can access for same process and data source  Tackle heterogeneous technology stack
  • 9. HOW IS COMMUNICATION POSSIBLE AMONG HETEROGONOUS PLATFORM? --SOAP  By using the World Wide Web's Hypertext Transfer Protocol (HTTP) and its Extensible Markup Language (XML) as the mechanisms for information exchange  SOAP specifies exactly how to encode an HTTP header and an XML file so that a program in one computer can call a program in another computer and pass it information. It also specifies how the called program can return a response.
  • 12. WCF  The Windows Communication Foundation (or WCF), previously known as "Indigo", is a runtime and a set of APIs (Application Programming Interface) in the .NET Framework for building connected service-oriented applications (Wikipedia).  Using WCF, you can send data as asynchronous messages from one service endpoint to another  Multiple technologies at one place - WCF unites following four technologies.NET remoting  MSMQ  Web Services  COM+  .Net Remoting
  • 15. SAMPLE REQUEST AND RESPONSE FROM WCF  Request <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://te mpuri.org/IService1/GetData</Action> </s:Header> <s:Body> <GetData xmlns="http://tempuri.org/"> <value>1</value> </GetData> </s:Body> </s:Envelope>  Response <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header /> <s:Body> <GetDataResponse xmlns="http://tempuri.org/"> <GetDataResult>You entered: 1</GetDataResult> </GetDataResponse> </s:Body> </s:Envelope>
  • 17. ABC OF WCF ENDPOINTS  Address(Where?): Specifies the location of the service which will be like http://Myserver/MyService.Clients will use this location to communicate with our service.  Binding-Address(How?): Specifies how the two parties will communicate in terms of transport and encoding and protocols.  Contract(What?): Specifies the interface between client and the server. It's a simple interface with some attribute.
  • 18. FLEXIBILITY OF HOSTING OPTIONS IN WCF  Self-Hosting Your Service :A managed .NET application can host the wcf service itself,  Hosting in Windows Services  Hosting Using Internet Information Services
  • 19. WSDL IN WCF (DOCUMENTING FOR CLIENTS)  WSDL documentation generation can be specified by [WSDLDocumentation (“”)] tag in service interface.  Service, operations and input/output parameter descriptions are added to WSDL
  • 20. SAMPLE WSDL <WSDL:message name="EchoStringSoapIn"> <WSDL:part name="parameters" element="tns:EchoString" /> </WSDL:message> ... <WSDL:operation name="EchoString"> <WSDL:input message="tns:EchoStringSoapIn" /> <WSDL:output message="tns:EchoStringSoapOut" /> </WSDL:operation>