0

Just using following tutorials created custom api in magento and working properly in local host
http://easyway2magento.blogspot.in/2015/04/magento-custom-api-method-to-login-as.html
But when we push this code into server and run api call according to documentation.

Its give fatal error:
Fatal error: Uncaught SoapFault exception: [3] Invalid api path. in /API2_DEV/apicall.php:7
Stack trace: #0 /API2_DEV/apicall.php(7): SoapClient->__call('call', Array) #1 /API2_DEV/apicall.php(7): SoapClient->call('cb12be9e72de1f1...', 'fcustomer.check...', Array) #2 {main} thrown in /API2_DEV/apicall.php on line 7

Please help me i am stuck here .

  • can you share your api url? – Abdul Dec 1 '15 at 6:42
  • custom methods : tokenbaseGetCard, tokenbaseGetCardsByCustomer, tokenbaseDeleteCard & tokenbaseUpdateCard right? – Abdul Dec 1 '15 at 7:12
  • No , we are looking on customer login using custom api. and also product list ,both are working properly in local but not working in server. – venkat Dec 1 '15 at 7:18
  • are calling api with url : 52.10.202.42/LL_API2_DEV/index.php/api/v2_soap/?wsdl – Abdul Dec 1 '15 at 7:34
  • When using above url got following error Fatal error: Uncaught SoapFault exception: [Client] Function ("call") is not a valid method for this service in – venkat Dec 1 '15 at 7:52
-1

Finally got the solution. Have problem in api.xml and wsdl.xml files. some tags names are mismatched . cache also problem here. delete cache from magento. For cache path magento/var/cache

thanks.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.