Jump to content



Latest News: (loading..)

* * * * * 1 votes

FedEx - Web Services v9


  • Please log in to reply
528 replies to this topic

#41   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 16 June 2011 - 07:24 PM

View PostFlyingKites, on 16 June 2011 - 07:10 PM, said:

http://www.devshed.com/c/a/PHP/Developing-SOAP-Clients-using-PHP/2/

so based on that you are looking to add it to the .wsdl file

but I don't understand their actual statement.

No, I don't think it would go in the .wsdl file as that is a straight XML file.

I'm going to try it at the very beginning of the /catalog/includes/modules/shipping/fedexwebservices.php file as it's (possibly) the only place it could go.

Right now, I'm running the file just as you guys wrote it and I'm getting the HTTP 500 error, however, when I put the absolute path in, I get the same error, so, it's probably not that which is causing the error.

Seem logical?

Edit:  OK, that was much better. With the require_once statement in there, not only do I get the HTTP 500 error, but the shipping module list in admin only shows the one shipping option before the FedEx one even if the FedEx module is disabled.

Curious stuff here.....

Edited by Druid6900, 16 June 2011 - 07:35 PM.

No Good Deed Goes Unpunished

#42   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 16 June 2011 - 08:01 PM

You need to find out what the actual server error is.  Is there anything in your error_log?
Kym
We support qdPM Open Framework Project Management

#43   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 16 June 2011 - 09:19 PM

View PostFlyingKites, on 16 June 2011 - 08:01 PM, said:

You need to find out what the actual server error is.  Is there anything in your error_log?

Yes, the following is pretty prevalent in the error logs for the period I was trying various things.

Quote

20110616T161538: "mysite.com"/catalog/checkout_shipping.php
PHP Fatal error:  Class 'SoapClient' not found in /"myserver"/catalog/includes/modules/shipping/fedexwebservices.php on line 67

Not surprising.....
No Good Deed Goes Unpunished

#44   takiko

takiko
  • Members
  • 91 posts
  • Real Name:Karen
  • Gender:Female

Posted 16 June 2011 - 10:21 PM

View PostFlyingKites, on 16 June 2011 - 07:01 PM, said:

follow the link in the module in Admin to the FedEx page that explains to get your key, password and meter number.

I have registered fedex account.
I have the key, password and meter key.

But I still get some error with it

When I installed the fedex mod to my oscommerce....
I make a dummy test on it....
I add product to the cart....but I when click checkout....
It turn blank on the checkout page...is there an error on it?

Edited by takiko, 16 June 2011 - 10:31 PM.


#45   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 16 June 2011 - 10:31 PM

View Posttakiko, on 16 June 2011 - 10:21 PM, said:

I have registered fedex account.
I have the account number....
Still figuring the key, password and meter number.

When I installed the fedex mod to my oscommerce....
I make a dummy test on it....
I add product to the cart....but I when click checkout....
It turn blank on the page...is there an error on it?

Yes, I was getting that at points as well.
I would be at the checkout screen with the Canada Post prices there, bring the FedEx module back on-line, hit refresh and get a completely blank screen.
Then I would arrow-key back and be in my shopping cart, click Checkout again and get an HTTP 500 error from the server.
No Good Deed Goes Unpunished

#46   takiko

takiko
  • Members
  • 91 posts
  • Real Name:Karen
  • Gender:Female

Posted 16 June 2011 - 10:43 PM

View PostDruid6900, on 16 June 2011 - 10:31 PM, said:

Yes, I was getting that at points as well.
I would be at the checkout screen with the Canada Post prices there, bring the FedEx module back on-line, hit refresh and get a completely blank screen.
Then I would arrow-key back and be in my shopping cart, click Checkout again and get an HTTP 500 error from the server.

You have same error as well....
I don't what kind of error with it....
I also have canada postmodern as well

#47   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 17 June 2011 - 09:14 AM

View Posttakiko, on 16 June 2011 - 10:21 PM, said:

I have registered fedex account.
I have the key, password and meter key.

But I still get some error with it

When I installed the fedex mod to my oscommerce....
I make a dummy test on it....
I add product to the cart....but I when click checkout....
It turn blank on the checkout page...is there an error on it?
The module works so I am not sure why it does not work on your site.  YOu are saying that when you get to checkout_shipping the entire page is blank? Hvae you done the Soap test to see that soap is installed on your server?

Edited by FlyingKites, 17 June 2011 - 09:16 AM.

Kym
We support qdPM Open Framework Project Management

#48   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 17 June 2011 - 10:12 AM

View PostDruid6900, on 16 June 2011 - 09:19 PM, said:

Yes, the following is pretty prevalent in the error logs for the period I was trying various things.



Not surprising.....
So it is saying soap is  not installed on your server.

You said they told you to add "require_once ‘SOAP/Client.php’; /Server.php"   I don't understand what the /Server.php is all about. What did you add?
Kym
We support qdPM Open Framework Project Management

#49   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 17 June 2011 - 01:40 PM

View Posttakiko, on 16 June 2011 - 10:43 PM, said:

You have same error as well....
I don't what kind of error with it....
I also have canada postmodern as well

Did you install the soap_test.php code and dos it tell you if Soap is installed on your server?
No Good Deed Goes Unpunished

#50   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 17 June 2011 - 01:46 PM

View PostFlyingKites, on 17 June 2011 - 10:12 AM, said:

So it is saying soap is  not installed on your server.

You said they told you to add "require_once ‘SOAP/Client.php’; /Server.php"   I don't understand what the /Server.php is all about. What did you add?

I'm guessing that the /server.php part is supposed to be a comment.

Using the code in the link that you referenced as a guide, I installed the require_once ‘SOAP/Client.php’; snippet just before the absolute path to the .wsdl file location.

I think I'm going to have to phone up and beat on them until they agree to install the soap extension on my server.

Edited by Druid6900, 17 June 2011 - 01:46 PM.

No Good Deed Goes Unpunished

#51   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 17 June 2011 - 01:52 PM

Yes I realise that is looks like a comment but I don't know why they included it when telling you what to do.  I was wondering if it was implying something.  You do really need to speak to them and escalate beyond first level support.
Kym
We support qdPM Open Framework Project Management

#52   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 17 June 2011 - 02:04 PM

First support level. That's where you talk to someone that knows even less than you do about the problem you are having and they put you on hold several times while they go ask someone else?  :lol:

I'm starting off nicely with a support ticket and, if I haven't heard anything in 2 hours, I call and I'm not going to be so nice. This postal strike will be on for, at least, another week before they can be legislated back to work. I need another shipping option and a backup, just in case.....
No Good Deed Goes Unpunished

#53   luvubeauty

luvubeauty
  • Members
  • 87 posts
  • Real Name:Tira

Posted 17 June 2011 - 04:17 PM

ok, be easy on me, I am not a full blown developer, so somethings just don't make sense to me...I have successfully installed and obtained all the info fron fedex required but no rates (or anything fedex actually)are showing during checkout :(  also I did the soap test and it isn't enabled, not sure how to go about enabling.  Can someone help me?

Edited by luvubeauty, 17 June 2011 - 04:18 PM.


#54   takiko

takiko
  • Members
  • 91 posts
  • Real Name:Karen
  • Gender:Female

Posted 17 June 2011 - 04:50 PM

View PostDruid6900, on 17 June 2011 - 01:40 PM, said:

Did you install the soap_test.php code and dos it tell you if Soap is installed on your server?

No I didn't install the soap_test.php code...it doesn't tell me to install it to my sever...

#55   luvubeauty

luvubeauty
  • Members
  • 87 posts
  • Real Name:Tira

Posted 17 June 2011 - 06:11 PM

View Postluvubeauty, on 17 June 2011 - 04:17 PM, said:

ok, be easy on me, I am not a full blown developer, so somethings just don't make sense to me...I have successfully installed and obtained all the info fron fedex required but no rates (or anything fedex actually)are showing during checkout :(  also I did the soap test and it isn't enabled, not sure how to go about enabling.  Can someone help me?
Ok, so I just spoke with my server people, and they said they don't support php soap, but pear soap is already enabled on it.  What's the difference???

#56   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 17 June 2011 - 06:26 PM

View Postluvubeauty, on 17 June 2011 - 06:11 PM, said:

Ok, so I just spoke with my server people, and they said they don't support php soap, but pear soap is already enabled on it.  What's the difference???

I'm in the same boat and the big difference is that pear SOAP doesn't seem to work with the module (or, if it does, I don't know how to get it to work).

They gave me a little snippet of code but didn't say where to put it or how to use it.

This module seems to need php SOAP and I just beat on my ISP to install it.
No Good Deed Goes Unpunished

#57   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 17 June 2011 - 06:55 PM

Easiest thing to do is change hosting. Use of SOAP is becoming increasingly common in web services so a hosting company that refuses to install it is not eCommerce friendly.
Kym
We support qdPM Open Framework Project Management

#58   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 17 June 2011 - 06:56 PM

View PostDruid6900, on 17 June 2011 - 02:04 PM, said:

I need another shipping option and a backup, just in case.....

Can't you set up the zone module to work with Canada Posts rates?
Kym
We support qdPM Open Framework Project Management

#59   FlyingKites

FlyingKites

    Projects Director

  • Members
  • 1,361 posts
  • Real Name:Kym
  • Gender:Female
  • Location:New York

Posted 17 June 2011 - 06:59 PM

View Posttakiko, on 17 June 2011 - 04:50 PM, said:

No I didn't install the soap_test.php code...it doesn't tell me to install it to my sever...
If you read this topic ou will see that there is a program called soap_test.php which you can run to test if soap is working on your server.
Kym
We support qdPM Open Framework Project Management

#60   Druid6900

Druid6900
  • Members
  • 276 posts
  • Real Name:Richard
  • Gender:Male
  • Location:Canada

Posted 17 June 2011 - 07:01 PM

View PostFlyingKites, on 17 June 2011 - 06:56 PM, said:

Can't you set up the zone module to work with Canada Posts rates?

Canada Post is on a nation-wide strike. No mail or parcels are going anywhere through them.

The Canada Post module still works fine.
No Good Deed Goes Unpunished