Can Swagger be used for SOAP?

52,676

Solution 1

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.)

Solution 2

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.

Solution 3

This might be worth a try: Swagger connector and Preparing the API for consumption.

There is a module for pointing at a SOAP WSDL to expose it through a Loopback server: http://strongloop.com/strongblog/soap-into-rest-apis-with-loopback-node-js/

As an API server to glue existing and new data sources, LoopBack is designed to facilitate your backend data integration. With the release of loopback-connector-soap module, you can now easily consume SOAP web services and transform them into REST APIs.

I can't yet confirm that it works, but it looks like a way of exposing a SOAP service using Swagger.

Share:
52,676

Related videos on Youtube

pavanlimo
Author by

pavanlimo

Seeker

Updated on June 17, 2021

Comments

  • pavanlimo
    pavanlimo almost 3 years

    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?

    • willyMon
      willyMon about 8 years
      I am using wcfextras (wcfextras.codeplex.com) to enrich and extract automatically documentation in a WCF service. the ouput is a .xml file with the documented service, though it is possible to attach an XSLT template to display it as a html. Other tools I have seen are commercial.
  • Mopparthy Ravindranath
    Mopparthy Ravindranath over 5 years
    first link is no longer valid.
  • user2689782
    user2689782 about 5 years
    Unfortunately, the part that deals with SOAP transformations is not free.
  • Sfili_81
    Sfili_81 almost 3 years
    Welcome to Stack Overflow. Code without any explanation are rarely helpful. Stack Overflow is about learning, not providing snippets to blindly copy and paste. Please edit your question and explain how it answers the specific question being asked. See How to Answer.