0

So I am getting the SoapFault exception: [VersionMismatch] Wrong Version from my SOAPClient request in PHP. Here is where it gets interesting however:

  • I captured the request both before and after it was sent and put both into SoapUI to test them and it returns perfectly. Thus ruling out namespace issues referred to here (I think).
  • I checked the Soap Version and sent it through as a parameter. (It is 1.1 but I tried both anyway) as suggested here.
  • I checked OpenSSL is installed (it is https wsdl)

I'm out of ideas and open to suggestions as to where one might look next.

Basically the request is working on SoapUI and what appears to be the exact same request is giving the SoapFault exception: [VersionMismatch] Wrong Version error via PHP SOAPClient. (Note I can connect to other Webservices).

Thanks

Community
  • 1
  • 1
joesk
  • 174
  • 5
  • Long shot: What version of PHP are you running, and specifically the soap extension? If you're on an ancient version, it's possible the extension doesn't support the version you are running? – STLMikey Feb 06 '15 at 22:25
  • Thanks @STLMikey, long shots welcome. Unfortunately it is PHP 5.4 so shouldn't present any problems I think. – joesk Feb 07 '15 at 11:19
  • @joesk could you provide WSDL? – Piotr Olaszewski Feb 07 '15 at 22:54
  • Hi @PiotrOlaszewski apologies but I'm not in a position to publish it. Anything in particular that I could look for in it? – joesk Feb 08 '15 at 23:01

0 Answers0