locked
total 'out of it' question RRS feed

  • Question

  • User-929021816 posted
    Hello,

    I haven't done any significant dev projects in a couple years... I now have a need to create a web service. Having been 'out of it' for a couple years now I'm not sure which direction I should go...

    - I would like the service to be hosted in IIS, with an https endpoint
    - I'll have some powershell script consumers which would like a SOAP based web service to consume, so they can make use of the wsdl

    would I use 'Web API 2' for this? or is that not for SOAP services? I've written clients that essentially use provided wsdl to consume soap services, so that's what I immediately think of as implementing when faced with doing the server side, the web service itself, but is that even still a wise choice? is soap still being used for new dev?

    obviously, I'm totally not up to date and looking for some general direction on which technology I should even use to begin my project. I would like to use whatever the current recommended technology is, even if that means I'll need to learn something new to ramp up and prepare first.

    any advise would be appreciated.

    Thanks.
    Wednesday, July 29, 2015 10:12 AM

Answers

All replies

  • User37182867 posted

    https://msdn.microsoft.com/en-us/library/bb412196(v=vs.110).aspx

    Web API is newer but does not support soap it is REST. If you need a soap service then stick with WCF. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 29, 2015 10:18 AM
  • User-929021816 posted
    Thanks deadtroll,

    if soap remains a requirement I will do that then...

    curious, in general is SOAP falling out of favor and REST the more popular choice now?

    also, does REST have a wsdl or something equivalent?

    thanks!
    Wednesday, July 29, 2015 12:10 PM
  • User37182867 posted

    REST is becoming more popular now however the need for SOAP is still relevant. There are powershell API's out to handle either. 

    REST does not have a WSDL, REST is anonymous return. You have to know the return type in order to use it. Web API make it easier for the end use to choose the return format XML or JSON.  

    Here is a link that explains the differences in detail.

    http://stackoverflow.com/questions/19884295/soap-vs-rest-differences

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 29, 2015 12:38 PM