Using SOAP 1.1 Web Service from .NET 3.5

It appears that .NET 3.5 enforces the SOAP 1.2 schema when dealing with web services, even though the service specifies SOAP 1.1 in the schema for the SOAP envelope. Is there a parameter for service reference for SOAP 1.1 recognition?

EDIT: The problem is formatting SOAP errors returned from the web service to a .NET 3.5 client. SOAP 1.1 allows the first subelement of the error to be <faultactor>

. In SOAP 1.2 this is no longer valid - the first subelement must be <faultcode>

. The problem I've seen is that when the SOAP 1.1 web service returned a SOAP error, I would get an exception in .NET complaining that an item <faultcode>

was expected but <faultactor>

received. I think we've narrowed it down to a SOAP version issue; we are currently testing the proposed solution.

+2


source to share


1 answer


If you are using WCF, install it in your custom binding.

 <textMessageEncoding messageVersion="Soap11" />

      



If you are using asmx this is a good blog

+5


source







All Articles