Magento – Examples of Magento SOAP API

soapsoap-api-v2

I am new to SOAP Web Service API's and Magento. Can someone show me an example of SOAP API request to return information about a product?

Best Answer

I have a magento 1.9.x website and I have been using Soap WebService APIs for an internally developed Android Application for Order and Delivery Management.

To be able to use Soap WebServices, I followed the following steps:

  1. Downloaded SoapUI

  2. Installed SaopUI

  3. Created a new project and provided "Initial WSDL" value as -

    https://www.warmoven.in/api/v2_soap?wsdl=1

  4. It exposed all the Soap bindings from my website

  5. To use any webservice, login call is required to get the session id.

  6. Login request would look like the content at

    http://pastebin.com/8aiZhExS

  7. For username and APIKey, I created a Role and User using "SAOP/XML RPC Roles" and "SAOP/XML RPC Users" menu item under System in Magento Backend.
  8. After providing the username and apikey, I was able to generate the session id
  9. Using Session Id I was able to call other APIs.
  10. To integrate in Andorid App, I used a Saop Library ksoap2-android and everything worked like a charm.
Related Topic