views:

143

answers:

3

So, I'm working on integrating Fedex's Address Validation into a site I'm working on. Fedex web services are SOAP-based, so we're in the magical land of WSDLs here. I'm not fluent with web services yet, so bear with me.

One can only consume the Address Validation service at a production level; I've got my production credentials situated, and a production URL in the port section of my WSDL.

In testing the service integration, I'm receiving this provocative message:

Fault Code:VersionMismatch String:Wrong Version

Fedex support thus far seems unable to answer this, so I'm gonna ask it here: why am I getting this fault? Am I right in suspecting that perhaps the SOAP version on our server is outdated, and, if so, is there any workaround anyone knows for this?

+1  A: 

There are several versions of both WSDL and SOAP, and PHP seems to have issues with at least WSDL 2.0.

Check the header of the WSDL file to verify what FedEx wants (they might provide several web services for different versions) and check with a sniffer what your script actually sends.

Anders Lindahl
A: 

Hello this is FedexDolores I'm sorry for any inconvenience. Please call our CAFE technical assistance and they should be able to help you. There number is 1-877-339-2774 and are available Monday thru Friday from 7am to 10pm and 7am to 4pm on Saturday central standard time.

Kyler_IE8_Team
+2  A: 

A common reason for this error seems to be a wrong namespace used for the envelope. See http://www.w3.org/TR/soap12-part1/#faultcodes and http://www.w3.org/TR/soap12-part1/#vmfault

Henrik Opel