Search code examples
javarestweb-servicessoapwsdl

Can SOAP services support Rest Services && REST services can support SOAP services


I am working on web-services, i need some clarification on SOAP Web-services and REST Web-services.

1.Is it possible to say all SOAP services , can be support to REST services.

2.Is it possible to say all REST services , can be support to SOAP services.


Solution

  • SOAP Service and RestSerivce have different "service definition" ( request structure - response structure - endpoint - format)

    If you mean "soap service can be called as reset service" then NO. you have to expose two services one for rest and the other for soap.

    If you mean "soap service can call rest service" then Yes.