Create a Custom API in Magento


Magento Planet

Magento provides ability to manage your e-Commerce store by providing calls for working with resources such as customers, categories, products and sales order. Also, you can define your own API or you can extend Core API. Sometimes, we need to provide our own API from our own website to other parties; from here this web service concept came into picture.

Here, I am going to tell you how to create your own API. Magento core API supports –

a.) SOAP (by default)
b.) XML-RPC

To access SOAP web service, load WSDL from URL as
http://magentohostname/api/soap/?wsdl

for accessing Magento API V2
http://magentohostname/api/v2_soap/?wsdl=1

I am here explaining it with V2.

View original post 489 more words