close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

FEDEX Response parsing errors

Thread began 2/27/2013 1:01 pm by AlaskaTom | Last modified 2/27/2013 3:36 pm by Jason Byrnes | 1187 views | 5 replies |

AlaskaTomBeta Tester

FEDEX Response parsing errors

I have had a couple sites using the fedex calculator having shipping fail recently.
In looking at the response from fedex, it looked like a rate was sent, but eCart was not properly parsing the response.
I am using 5.06, so the most current release.
After a couple hours of tweaking and trying a few things, it looks like the xml structure has changed slightly?
To get a successful response, I had to change line 334 from
$respCode = (isset($WA_FedEx_params["V10:SEVERITY"]) && ($WA_FedEx_params["V10:SEVERITY"] == "SUCCESS")?1:0);

to
$respCode = (isset($WA_FedEx_params["V10:NOTIFICATIONS"]["V10:SEVERITY"]) && ($WA_FedEx_params["V10:NOTIFICATIONS"]["V10:SEVERITY"] == "SUCCESS")?1:0);

(severity was nested inside the notifications node)

and to get the rate, I had to change line 353 from
$_SESSION[$FedEx_eCart->CartName . "_FedEx" . "_Quote"] += ($WA_FedEx_params["V10:RATEDSHIPMENTDETAILS"]["V10:SHIPMENTRATEDETAIL"]["V10:TOTALNETCHARGE"]["V10:AMOUNT"]);

to
$_SESSION[$FedEx_eCart->CartName . "_FedEx" . "_Quote"] += ($WA_FedEx_params["V10:RATEREPLYDETAILS"]["V10:RATEDSHIPMENTDETAILS"]["V10:SHIPMENTRATEDETAIL"]["V10:TOTALNETCHARGE"]["V10:AMOUNT"]);

The amount was nested inside the RATEREPLYDETAILS node.

Is anyone else experiencing this?

Tom

Sign in to reply to this post

Jason ByrnesWebAssist

here is an updated copy of the WA_eCart/WA_eCart_FedEx_PHP.php file that should correct the issue, an update is being released later today or early tomorrow that will include this fix.

Attached Files
WA_eCart_FedEx_PHP.php.zip
Sign in to reply to this post

AlaskaTomBeta Tester

Was this a known, new issue? Or has it been going on for a while?

Sign in to reply to this post

Jason ByrnesWebAssist

we discovered it only recently.

Sign in to reply to this post

AlaskaTomBeta Tester

Jason.
Heh... perhaps I should have asked sooner, instead of spending a couple hours figuring a work around myself. :-)

I did look in the forum, and the download page, and didnt see a mention of an issue, so I plowed ahead and made my own fix.

Its functional, but yours is a little more elegant.

Is this due to a change in the way Fedex formats their response recently?
Just curious, since its easier to pass on the time to clients if I can tell them it was due to a Fedex Change.

Thanks,
Tom

Sign in to reply to this post

Jason ByrnesWebAssist

yes, it was caused by a change that fed ex implemented in their API.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...