SOAP (Simple Object Access Protocol) and REST (Representational State Transfer) are both web service communication protocols. SOAP was long the standard approach to web service interfaces, although it’s been dominated by REST in recent years, with REST now representing more than 70% of public APIs.
REST operates through a solitary, consistent interface to access named resources. It’s most commonly used when you’re exposing a public API over the Internet. SOAP, on the other hand, exposes components of application logic as services rather than data. Additionally, it operates through different interfaces. To put it simply, REST accesses data while SOAP performs operations through a more standardized set of messaging patterns. Still, in most cases, either REST or SOAP could be used to achieve the same outcome (and both are infinitely scalable)
In Pega, option is available to support both the Connect REST & Connect SOAP, while Connect SOAP is basically for legacy systems whereas REST is the modern day approach. In real time scenario Pega could be asked to connect to some previously defined Web Service through SOAP or REST where service implementation does not change, hence both the options are provided to users.
Hope that answers your question.
Posted: 2 years ago
Posted: 20 Sep 2018 3:28 EDT
Abhinav Gupta (Abhinav7)
Principal Technical Solutions Engineer
A web service is a unit of managed code that can be remotely invoked using HTTP, that is, it can be activated using HTTP requests. Web services allows you to expose the functionality of your existing code over the network. Once it is exposed on the network, other application can use the functionality of your program.
SOAP stands for Simple Object Access Protocol.SOAP is an XML based protocol for accessing Web Services.SOAP is based on XML
REST stands for REpresentational State Transfer. REST is a web standards based architecture and uses HTTP Protocol for data communication. It revolves around resources where every component is a resource and a resource is accessed by a common interface using HTTP standard methods.REST uses various representations to represent a resource like Text, JSON and XML.
Pega provides two rules to access SOAP service and REST service that is Connect-SOAP and Connect-REST.Pega takes care of creating classes , properties and mapping them with response.You just need to provide sample request response and just click on create button.That's the power of Pega!!!