Just using following tutorials created custom api in magento and working properly in local host
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, 2015 at 6:42
  • custom methods : tokenbaseGetCard, tokenbaseGetCardsByCustomer, tokenbaseDeleteCard & tokenbaseUpdateCard right?
    – Abdul
    Dec 1, 2015 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, 2015 at 7:18
  • are calling api with url :
    – Abdul
    Dec 1, 2015 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, 2015 at 7:52

1 Answer 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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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