Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Swagger be used for SOAP?

I was exploring Swagger and I must acknowledge I'm loving it.

I understand Swagger is primarily for RESTful web services, but I was wondering if we can make it work with SOAP web services as well. May be translate SOAP based web services to RESTful? Or simply call SOAP based services via Swagger UI? Some hack? Has anyone done it?

like image 992
pavanlimo Avatar asked Sep 05 '25 07:09

pavanlimo


2 Answers

Based on the present spec, I do not think so. It would not be easily possible to mention various aspects of a WSDL in swagger

To name a few:

  1. PortTypes
  2. Schemas and namespaces of request and response messages
  3. SOAP encodings (RPC/Literal etc.)
like image 142
Santanu Dey Avatar answered Sep 07 '25 20:09

Santanu Dey


online "translate SOAP based web services to RESTful" is what exactly DreamFactory does. Open Source API management tool based on Swagger. Here you can read about SOAP-to-REST functionality.

like image 43
Dima Fomin Avatar answered Sep 07 '25 21:09

Dima Fomin