How to generate SOAP message with WCF?

How can I communicate between a Windows application and ASP.NET in c# using SOAP messages without WCF?

  • both apps have a listeners and must be in Http.

  • Answer:

    You can make a WebApi application that will act as the "man in the middle", so both the winform app and the http://asp.net website will consume it and therefore be able to communicate with each other. Update: I believe you can make SOAP calls using WebApi but I never tried, so you can try a Webservice instead of the WebApi if you can't make the SOAP responses to work.

Leandro Koiti Oguro at Quora Visit the source

Was this solution helpful to you?

Other answers

You don't need a man-in-the-middle... just implement the services in the http://ASP.Net Web app itself. Though you'd be asking for it from your ops team, theoretically you could implement a responsive Web UI and a Win Forms app from the same Web application. Regardless, the question (I believe) is actually about avoiding WCF. Check out http://www.servicestack.net/ which aims at doing just that.

Pete Anderson

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.