sjmassey
23-11-09, 18:48
Hi
I am trying to use the productservice api v3, and failing at authorization.
I have tried two clients.
First I am using Java and soap with axis2. Form looking at the log output, the soap message has the correct soap-headers and the correct api key in the user-authentication section. But the the response from the server is authorisation failure.
Just to make sure I did not make an error in my code I tried the example php code. I changed the variable API_KEY, to the apikey, i.e. this line of the file constants.inc.php
define('API_KEY', '--apikey--');
But this results in the same error. A look at the soap trace also shows that the soap message is correct.
So it seems that everything codewise is correct. I have tried reseting the api-key through the affiliate window interface, but a new api-key also results in an authorisation failure.
I am trying figure out the cause of this
1. This is on a Test account. I registered sometime ago and did not use it for a while, so maybe it got inactive somehow, but still shows as active on the affiliate window screen. I did create a ticket for this, but was told that how to edit the constants.inc.php, even though the log showed that i had done so. So no help there.
2. Does the shopwindow server check the hostname to valid the request? I am testing the code from a development box locally.
Thanks for any help.
I am trying to use the productservice api v3, and failing at authorization.
I have tried two clients.
First I am using Java and soap with axis2. Form looking at the log output, the soap message has the correct soap-headers and the correct api key in the user-authentication section. But the the response from the server is authorisation failure.
Just to make sure I did not make an error in my code I tried the example php code. I changed the variable API_KEY, to the apikey, i.e. this line of the file constants.inc.php
define('API_KEY', '--apikey--');
But this results in the same error. A look at the soap trace also shows that the soap message is correct.
So it seems that everything codewise is correct. I have tried reseting the api-key through the affiliate window interface, but a new api-key also results in an authorisation failure.
I am trying figure out the cause of this
1. This is on a Test account. I registered sometime ago and did not use it for a while, so maybe it got inactive somehow, but still shows as active on the affiliate window screen. I did create a ticket for this, but was told that how to edit the constants.inc.php, even though the log showed that i had done so. So no help there.
2. Does the shopwindow server check the hostname to valid the request? I am testing the code from a development box locally.
Thanks for any help.