Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible SOAP version mismatch

I have a problem with web service connection. It says,

Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.

when i call webservice's method. Do you have any idea about my problem?

like image 455
cagin Avatar asked Apr 07 '11 12:04

cagin


1 Answers

It looks like you're providing the wrong namespace when creating the SOAP envelope - it should look similar to 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/">

It's the third one that is probably wrong in your case.

like image 152
Jackson Pope Avatar answered Oct 27 '22 14:10

Jackson Pope