SlideShare uma empresa Scribd logo
1 de 3
What are SOAP Web Services?
Simple Object Access Protocol (SOAP) Web Services are the newest advent of technology on the
internet and are more complex than XML. Web Services make it possible for diverse applications to
discover each other and exchange data seamlessly. It is a modular application that is published, located,
and invoked through the Web and can be called by using SOAP over RPC.
Each "service" exposes a business functionality and means of interacting with a data set at run-time. A
service is uniquely defined by an individual business source. EAN is one of the first to introduce Web
Services to the affiliate world and continues our lead at the forefront of affiliate technology.
To learn more about this new technology visit MSDN - XML Web Services Basics.
   It's just two different ways to transfer "raw" database content depending on the scripting methods and the server
                                                  platform a partner uses.

              Both data platforms contain the same data and all the same request types.
    Each platform is structured to suit the way it travels across the web for that method of transfer.
                                             Web Services and XML
                                                     back to top

What's the difference between XML and SOAP Web Services?
The majority of public services offer REST (Representational State Transfer) interfaces while some
offer both REST and SOAP (Simple Object Access Protocol) and very few offer just SOAP. Despite all
of the talk about SOAP, the majority of developers seem to use and like the simple REST approach.
There are some complex applications where SOAP may be a better choice, but technologies that have a
simple XML (Extensible Markup Language) over HTTP (Hypertext Transfer Protocol) approach seem
to be preferred overall because it offers the most flexibility and is the most straightforward.
XML is a 'RESTful' method. REST can dictate HTTP GET with a query string. However, there are
some services (such as with EAN XML) that, while not “true REST,” use more than HTTP GET
methods. These exist because the service allows you to submit a large quantity of data which cannot be
sent as part of a query string. If the query string exceeds the maximum query string length that a web
server can accept , then the service will allow HTTP POST of the XML request document, and respond
with an XML document in return. Everything goes through the same URI (Uniform Resource
Identifier). The action is indicated either as part of the query string or in a POST body. For the mos part,
when using EAN XML, you should be sending all RESTful or XML requests to EAN using POST
to bypass any issues with unlimited characters in query strings.
Web Services uses SOAP over RPC (Remote Procedure Call) and is identical except that you’re
required to use XML Namespaces and XML Schemas which are defined in a WSDL (Web Services
Description Language). A WSDL specifies the data types, parameter lists, operation names, transport
bindings, and the endpoint URI, so that client developers can access a service. There are
interoperability issues when trying to generate the SOAP envelope in sending or parsing the SOAP
envelope that’s returned. XML Namespaces and XML Schemas can be problematic for some. In theory,
 namespaces are good identifiers, even if the XML Namespaces can be tricky. XML Schemas can also
 be confusing. However, it does allow you to validate the response, which most people find to be
 somewhat useful if they go this route.
 The real problem with SOAP is that the specification is confusing so people have difficulty building
 interoperable clients and servers. People know how to generate arbitrary XML since it's generally text
 based, straightforward and sends an HTTP POST request. They also know how to parse XML when the
 structure is documented so they know what to expect. What they have difficulty doing is "decoding" a
 WSDL file to determine what combination of XML the server is expecting. They also have difficulty
 with how to repeatedly hammer their SOAP client into producing the expected combination of XML
 necessary that satisfies the SOAP server. That’s the difference between RESTful XML and SOAP. It is
 the complexity of trying to understand the XML specifications of the SOAP client in order to generate
 the request correctly. Because the SOAP message is also 'bloated' with excessive amounts of schema
 definitions and SOAP tags, the transfer is difficult to read, difficult to debug, 'heavy' with definition
 tags, and weighted with an excessive amount of bytes that do not exist when using XML. SOAP is also
 rigid and unforgiving. There can be no deviation to the definitions or schemas or simple processing will
 fail.
 One benefit of using HTTP over using SOAP is that you get caching built in to the architecture, which
 you can start using as soon as you ask for it in the headers. This boosts scalability.
  Technical                      XML                                      Web Services
  Attributes

Communication     REST based text transfer over          SOAP based object transfer over RPC
                  HTTP

Messaging         Request / Response messages use        Request / Response messages are generated
                  simple elements and attributes         against WSDL / XSD definitions, leading to an
                  alongside encoded characters to        excessive data structure
                  structure all data

Debugging         Easy to decipher as messages are       Use of specialist SOAP debugging tools are
                  embedded within meaningful tags        necessary to decipher messages

Architecture      Utilize simple text, protocol and      Reliance on complex definitions, protocol, and
                  message structure                      structure designed for machine to machine data
                                                         exchange, but often complex for human
                                                         interpretation

Performance       Lightweight and efficient due to       Heavyweight, detailed Request / Response
                  compact Request / Response             Message structure constitutes slower transfer
                  Message structure                      time
Interoperability   Flexibility to be consumed by      Consumed by environments specifically
                   numerous scripting languages and   configured to parse and process SOAP based
                   server environments                Web Service messages

 Any developers not able to successfully implement a SOAP Web Services application are advised to
 simplify the process by using the XML method




 =====================================================
 link : http://www.youtube.com/watch?v=v3OMEAU_4HI
 ==========================================================

Mais conteúdo relacionado

Mais procurados

Intro to web services
Intro to web servicesIntro to web services
Intro to web servicesNeil Ghosh
 
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 technologies
web service technologiesweb service technologies
web service technologiesYash Darak
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETPonraj
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service Safaa Farouk
 
Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentationguest0df6b0
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservicesGagandeep Singh
 
Introduction of WebServices
Introduction of WebServicesIntroduction of WebServices
Introduction of WebServicesKhasim Saheb
 
Web Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperWeb Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperTorry Harris Business Solutions
 
Web Service Tutorial
Web Service TutorialWeb Service Tutorial
Web Service TutorialJava2Blog
 
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...ecosio GmbH
 
Web service assignment
Web service assignmentWeb service assignment
Web service assignmentancymary1996
 
Introduction to RESTful Webservice
Introduction to RESTful WebserviceIntroduction to RESTful Webservice
Introduction to RESTful WebserviceEftakhairul Islam
 

Mais procurados (20)

Java web services
Java web servicesJava web services
Java web services
 
Soap and Rest
Soap and RestSoap and Rest
Soap and Rest
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
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 technologies
web service technologiesweb service technologies
web service technologies
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
 
REST vs SOAP
REST vs SOAPREST vs SOAP
REST vs SOAP
 
Webservices
WebservicesWebservices
Webservices
 
Web service introduction 2
Web service introduction 2Web service introduction 2
Web service introduction 2
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service
 
Web Service Presentation
Web Service PresentationWeb Service Presentation
Web Service Presentation
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
 
Introduction of WebServices
Introduction of WebServicesIntroduction of WebServices
Introduction of WebServices
 
Web Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperWeb Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris Whitepaper
 
Web Service Tutorial
Web Service TutorialWeb Service Tutorial
Web Service Tutorial
 
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
 
Web service assignment
Web service assignmentWeb service assignment
Web service assignment
 
Introduction to RESTful Webservice
Introduction to RESTful WebserviceIntroduction to RESTful Webservice
Introduction to RESTful Webservice
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
 
Web Services
Web ServicesWeb Services
Web Services
 

Semelhante a Rest vs soap

SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSigner.Digital
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni InturiSreeni I
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSigner.Digital
 
Web services for developer
Web services for developerWeb services for developer
Web services for developerRafiq Ahmed
 
Mobility Information Series - Webservice Architecture Comparison by RapidValue
Mobility Information Series - Webservice Architecture Comparison by RapidValueMobility Information Series - Webservice Architecture Comparison by RapidValue
Mobility Information Series - Webservice Architecture Comparison by RapidValueRapidValue
 
Rest With Json Vs Soap With Xml
Rest With Json Vs Soap With XmlRest With Json Vs Soap With Xml
Rest With Json Vs Soap With XmlKaniska Mandal
 
REST vs WS-*: Myths Facts and Lies
REST vs WS-*: Myths Facts and LiesREST vs WS-*: Myths Facts and Lies
REST vs WS-*: Myths Facts and LiesPaul Fremantle
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Jackson F. de A. Mafra
 
web programming
web programmingweb programming
web programmingshreeuva
 
REST & SOAP.pptx
REST & SOAP.pptxREST & SOAP.pptx
REST & SOAP.pptxZawLwinTun2
 

Semelhante a Rest vs soap (20)

SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Soap Vs Rest
Soap Vs RestSoap Vs Rest
Soap Vs Rest
 
WIT UNIT-5.pdf
WIT UNIT-5.pdfWIT UNIT-5.pdf
WIT UNIT-5.pdf
 
Web services for developer
Web services for developerWeb services for developer
Web services for developer
 
Mobility Information Series - Webservice Architecture Comparison by RapidValue
Mobility Information Series - Webservice Architecture Comparison by RapidValueMobility Information Series - Webservice Architecture Comparison by RapidValue
Mobility Information Series - Webservice Architecture Comparison by RapidValue
 
SOA and web services
SOA and web servicesSOA and web services
SOA and web services
 
Rest web service
Rest web serviceRest web service
Rest web service
 
Unit 2
Unit 2Unit 2
Unit 2
 
SOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIESSOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIES
 
Rest With Json Vs Soap With Xml
Rest With Json Vs Soap With XmlRest With Json Vs Soap With Xml
Rest With Json Vs Soap With Xml
 
REST vs WS-*: Myths Facts and Lies
REST vs WS-*: Myths Facts and LiesREST vs WS-*: Myths Facts and Lies
REST vs WS-*: Myths Facts and Lies
 
Mule soft ppt 3
Mule soft ppt  3Mule soft ppt  3
Mule soft ppt 3
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
 
web programming
web programmingweb programming
web programming
 
REST Servers in Delphi XE Using DataSnap
REST Servers in Delphi XE Using DataSnapREST Servers in Delphi XE Using DataSnap
REST Servers in Delphi XE Using DataSnap
 
RIA Data and Security, 2007
RIA Data and Security, 2007RIA Data and Security, 2007
RIA Data and Security, 2007
 
REST & SOAP.pptx
REST & SOAP.pptxREST & SOAP.pptx
REST & SOAP.pptx
 

Último

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Rest vs soap

  • 1. What are SOAP Web Services? Simple Object Access Protocol (SOAP) Web Services are the newest advent of technology on the internet and are more complex than XML. Web Services make it possible for diverse applications to discover each other and exchange data seamlessly. It is a modular application that is published, located, and invoked through the Web and can be called by using SOAP over RPC. Each "service" exposes a business functionality and means of interacting with a data set at run-time. A service is uniquely defined by an individual business source. EAN is one of the first to introduce Web Services to the affiliate world and continues our lead at the forefront of affiliate technology. To learn more about this new technology visit MSDN - XML Web Services Basics. It's just two different ways to transfer "raw" database content depending on the scripting methods and the server platform a partner uses. Both data platforms contain the same data and all the same request types. Each platform is structured to suit the way it travels across the web for that method of transfer. Web Services and XML back to top What's the difference between XML and SOAP Web Services? The majority of public services offer REST (Representational State Transfer) interfaces while some offer both REST and SOAP (Simple Object Access Protocol) and very few offer just SOAP. Despite all of the talk about SOAP, the majority of developers seem to use and like the simple REST approach. There are some complex applications where SOAP may be a better choice, but technologies that have a simple XML (Extensible Markup Language) over HTTP (Hypertext Transfer Protocol) approach seem to be preferred overall because it offers the most flexibility and is the most straightforward. XML is a 'RESTful' method. REST can dictate HTTP GET with a query string. However, there are some services (such as with EAN XML) that, while not “true REST,” use more than HTTP GET methods. These exist because the service allows you to submit a large quantity of data which cannot be sent as part of a query string. If the query string exceeds the maximum query string length that a web server can accept , then the service will allow HTTP POST of the XML request document, and respond with an XML document in return. Everything goes through the same URI (Uniform Resource Identifier). The action is indicated either as part of the query string or in a POST body. For the mos part, when using EAN XML, you should be sending all RESTful or XML requests to EAN using POST to bypass any issues with unlimited characters in query strings. Web Services uses SOAP over RPC (Remote Procedure Call) and is identical except that you’re required to use XML Namespaces and XML Schemas which are defined in a WSDL (Web Services Description Language). A WSDL specifies the data types, parameter lists, operation names, transport bindings, and the endpoint URI, so that client developers can access a service. There are interoperability issues when trying to generate the SOAP envelope in sending or parsing the SOAP
  • 2. envelope that’s returned. XML Namespaces and XML Schemas can be problematic for some. In theory, namespaces are good identifiers, even if the XML Namespaces can be tricky. XML Schemas can also be confusing. However, it does allow you to validate the response, which most people find to be somewhat useful if they go this route. The real problem with SOAP is that the specification is confusing so people have difficulty building interoperable clients and servers. People know how to generate arbitrary XML since it's generally text based, straightforward and sends an HTTP POST request. They also know how to parse XML when the structure is documented so they know what to expect. What they have difficulty doing is "decoding" a WSDL file to determine what combination of XML the server is expecting. They also have difficulty with how to repeatedly hammer their SOAP client into producing the expected combination of XML necessary that satisfies the SOAP server. That’s the difference between RESTful XML and SOAP. It is the complexity of trying to understand the XML specifications of the SOAP client in order to generate the request correctly. Because the SOAP message is also 'bloated' with excessive amounts of schema definitions and SOAP tags, the transfer is difficult to read, difficult to debug, 'heavy' with definition tags, and weighted with an excessive amount of bytes that do not exist when using XML. SOAP is also rigid and unforgiving. There can be no deviation to the definitions or schemas or simple processing will fail. One benefit of using HTTP over using SOAP is that you get caching built in to the architecture, which you can start using as soon as you ask for it in the headers. This boosts scalability. Technical XML Web Services Attributes Communication REST based text transfer over SOAP based object transfer over RPC HTTP Messaging Request / Response messages use Request / Response messages are generated simple elements and attributes against WSDL / XSD definitions, leading to an alongside encoded characters to excessive data structure structure all data Debugging Easy to decipher as messages are Use of specialist SOAP debugging tools are embedded within meaningful tags necessary to decipher messages Architecture Utilize simple text, protocol and Reliance on complex definitions, protocol, and message structure structure designed for machine to machine data exchange, but often complex for human interpretation Performance Lightweight and efficient due to Heavyweight, detailed Request / Response compact Request / Response Message structure constitutes slower transfer Message structure time
  • 3. Interoperability Flexibility to be consumed by Consumed by environments specifically numerous scripting languages and configured to parse and process SOAP based server environments Web Service messages Any developers not able to successfully implement a SOAP Web Services application are advised to simplify the process by using the XML method ===================================================== link : http://www.youtube.com/watch?v=v3OMEAU_4HI ==========================================================