Magento – Custom API adapter handler and wsdl files

apicustom

I read Alan Storm article (http://alanstorm.com/debugging_magento_api_method_calls) about magento core API. And now I just a bit confused, when I creating my custom API in magento, do I have to implement adapters and handlers? If no, is it any case when I will need to do this?

Also is there any good source where would be explained how to create custom API wsdl.xml and wsi.xml files ? or full tutorial of working custom API ?

I really would appreciate if anyone could share the resources or the knowledge about creating magento custom API 🙂

Best Answer

You don't need to create adapters and handlers. IN the article Alan wrote he explains how the handlers and adapters work. But they are already there. Of course if you want to add a new type of service you may need a handler but Magento already has SOAP and REST. What more do you want? :).

Here is a small example on how you can extend the existing API
Here is a big example on how you can add the files needed for the API in your custom module.

I can also recommend you this extension. It will build you a module with the SOAP API files included. It could be a good place to start learning how it works.
Build a module with it with the API included and one without the API then see what are the differences. that will tell you what files you need to create for the API.

Related Topic