Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento SOAP APIv2 Stopped working after server restart
 
jonathan920
Jr. Member
 
Total Posts:  17
Joined:  2012-11-10
 

my server shutdown unexpectedly today due to amazon Spot Instance, i restarted the server, updated the address and cleared the cache in var/cache(If not the updated address wont show).

After which, the SOAP API stopped working. It isn’t displaying any error, I just cant connect to it even after i disable the API account , same result. Normally when you visit your API from browser eg http://xxx.com/index.php/api/v2_soap/?wsdl

http://xxx.com/index.php/api/v2_soap/

http://xxx.com/index.php/api/

You will get some results, eg XML file , error , or data but it’s redirecting me straight to the home page now...... so it’s obviously not getting data from the API.

Why is it even redirecting me to the home page?.....

The code to calling API is fine, i’m quite sure , since even when i disable the account, it still doesnt show any error etc. furthermore there wasnt any modification to the code before the server shutdown.

1) is there anyway i can restart the Web service? 2) Did my clear cache of var/cache screw the APi up?

I really need your advice here, Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
jonathan920
Jr. Member
 
Total Posts:  17
Joined:  2012-11-10
 

Found the reason .... I find it quite stupid.

core_config_data - my baseurl is set with www. infront so when you call the API , you will also need the www. infront

I’m starting to realise how much knowledge is required to run a Magento. When i deleted my Session and Cache, i lost access to my Admin panel. tried deleting cache and session again, only after 3 tries, i then got to log into the admin panel. Complicated system

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top