Use WCF service without proxy client

I have an application that can just send SOAP messages and parse responses. My WCF service works fine if I use a proxy client, but I need the function to simply send a POST request in SOAP format, as it was in older ASMX services. Is there any way to do this?

I tried copying the SOAP request from the debug wcf client and sending it as a POST request with the text Content-Type / xml, but it does not give me the correct result.

+4
source share
2 answers

Yes, you can call them using a "simple" HTTP request. In the end, as far as the server is concerned, all it receives is the bytes in the TCP connection. Depending on the binding you use, you may also need to set some HTTP header — if you use BasicHttpBinding in your service, you also need to set the SOAPAction header. Try sending your request and your request from the client using the WCF proxy server and compare them with a tool like Fiddler. If the requests match, the server will respond to them the same way.

+5
source

When I need to send a full soap message via an HTTP request, I use SoapUI. You can give it WSDL and it does what the proxy does for the code, but instead generates xml soap. And, as @carlosfigueira said, you'll want to look in the HTTP Headers section and set them accordingly.

www.soapui.org

+3
source

All Articles