Submit a SOAP Web Service Request Using RAW SOAP XML

I have a simple WCF web service that uses basicHttpBinding to make it SOAP 1.1 compliant. When called using a WSDL based proxy (by installing a service or web link), the service works fine.

A business partner wants to call a service directly from SOAP XML. I know how to provide this XML, but I'm not sure how to handle the XML when the business partner sends a request.

Am I making it harder than I need to? Will the XML request invoke the service as if it had been invoked through a proxy and the response would naturally make the request happy? Or do I need to do something extra to process the XML request and then pass something (what?) To my service?

I know there are some similar questions on SO, but they all seem to tackle the problem of getting the XML, not processing it.

+2


source to share


1 answer


It's easy enough to send the raw SOAP message to the service endpoint URL. A WSDL based proxy simply generates SOAP from your objects and handles connection handling and transport (possibly HTTP).

You may need to add the SOAPAction HTTP header, depending on the service.



If you intercept communication between your WSDL proxy and the servlet (for example using TCPmon ), you will see the SOAP message and the HTTP headers used.

+2


source







All Articles