Possible SOAP version mismatch

I have a problem connecting to a web service. It says:

Possible SOAP version mismatch: The envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Waiting for http://schemas.xmlsoap.org/soap/envelope/ .

when i call the webservice method. Do you have any ideas about my problem?

+8
visual-studio-2008 web-services
source share
2 answers

It looks like you are creating the wrong namespace when creating the SOAP envelope - it should look something like this:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 

This is the third one that is probably wrong in your case.

+1
source share

I ran into the same issue with an outdated mainframe-hosted web service (obviously not .net). The service URL was specified in the client configuration, but the wsdl file was not included in the deployment. I suspect that on the first call, the .Net client tried to get fresh wsdl. The service did not expect this, and we got the error "Possible SOAP version mismatch."

0
source share

All Articles