Jump to content

Webservice issues


Recommended Posts

I've been trying to get shipping setup using the webservice but can't seem to get it working correctly.

 

I am on a trial with 2 different shipping applications, both use the webservice and neither work.

 

My issue, as best as I can explain it.

 

When you to go: myurl/api/orders - I expect to see a list of orders - I see nothing but I am provided a nice 404 error.

 

I go to http://myurl.com/webservice/dispatcher.php and I get the following for the orders settings -

<orders xlink:href="https://myurl.com/api/orders" get="true" put="true" post="false" delete="false" head="false">.  I did have to input my key to see all the XML so the orders is just one of the many lines.

 

If I go to https://myurl.com/api/orders/8 - I get a nice XML display of the order number 8 with all the info I expect.

 

On one shipper's setup, I use the http://myurl.com/webservice/dispatcher.php and it's able to "connect" but it never pulls orders that need to be shipped.  When I try http://myurl.com/ the connection fails.

 

On the other shippers setup, I have tried both http://myurl.com/webservice/dispatcher.php, which give me a "We received an error testing the PrestaShop store: The remote server returned an error: (401) Unauthorized." error and http://myurl.com  gives me a "We received an error testing the PrestaShop store: The remote server returned an error: (404) Not Found." error.

 

Both shippers say to just use the domain for the URL in their setup, but again the domain doesn't work.

 

My pure guess is it's an htaccess issue, but I've tried many, many different potential htaccess solutions.  So far, none fully work but I was able to get the https://myurl.com/api/orders/8 showing after one or two change attempts.

 

Any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...