What is Magento?

Magento ecommerce development platform provides rich out of the box set of features to create and manage your Internet store. It provides shopkeepers with numerous opportunities for business development. Magento ecommerce is quite resource consuming platform so it requires the use of dedicated server. The magento shopping cart is quite flexible in terms of modifications and provides merchants with unlimited freedom.

 The Magento API supports SOAP and XML-RPC, where SOAP is the default protocol.

 The Magento SOAP API provides you with the ability to manage your eCommerce stores by providing calls for working with resources such as customers, categories, products, and sales orders. It also allows you to manage shopping carts and inventory.

What is SOAP ?

Simple Object Access Protocol, a lightweight XML-based messaging protocol used to encode the information in Web service request and response messages before sending them over a network. SOAP messages are independent of any operating system.

What is Web service ?

Web services allow different applications from different sources to communicate with each other without time-consuming custom coding, and because all communication is in XML, Web services are not tied to any one operating system or programming language. For example, Php can talk with Perl, Windows applications can talk with Unix applications.

Magento API has 2 SOAP versions , Magento SOAP  API V1 and Magento SOAP API V2.

We have tested SOAP V1 and V2, then found SOAP V2 is Buggy. SOAP V1 is fine.

How to Use :

To connect to Magento SOAP API web services :

http://magentohost/api/soap/?wsdl where magentohost is the domain for your Magneto host.

The following PHP example shows how to make SOAP calls to the Magento API v1:

$proxy = new SoapClient(‘http://magentohost/soap/api/?wsdl’); // If somestuff requires api authentification, // then get a session token $sessionId = $proxy->login(‘apiUser’, ‘apiKey’);

How to manage shopping carts and the checkout process using Magento SOAP API :

Example : // create blank cart $shoppingCartId = $proxy->call( $sessionId, ‘cart.create’, storeid); // Set customer, $resultCustomerSet = $proxy->call($sessionId, ‘cart_customer.set’, array( $shoppingCartId, $customer) ); $customer is an array of his personal details. // Set customer shipping and billing Address $resultCustomerAddresses = $proxy->call($sessionId,”cart_customer.addresses”,array($shoppingCartId, $arrAddresses)); $arrAddresses is an array of address details. // shipping list $resultCartShippingMethods = $proxy->call($sessionId, “cart_shipping.list”,array($shoppingCartId)); // shipping method $resultShippingMethod = $proxy->call($sessionId, “cart_shipping.method”,array($shoppingCartId, $shippingMethod)); $shippingMethod (pass shipping metod) // Payment List $resultPaymentMethods = $proxy->call($sessionId, ‘cart_payment.list’, $shoppingCartId); // Payment Method $resultPaymentMethod = $proxy->call($sessionId, “cart_payment.method”,array($shoppingCartId, $paymentMethod)); $paymentMethod (pass payment method) // Place Order $resultOrderCreation = $proxy->call($sessionId, “cart.order”, array($shoppingCartId));

Our quality services ensure high responsiveness, speed of service delivery and zero down time for your end customers, keeping your brand image intact. Visit InstaCarma today!

Check out these latest posts of Instacarma here:-

How to Choose your Cloud Migration Services Partner?

Maximize the Business Benefits from Cloud Consulting Services

 Where to get 24*7 Web Hosting Technical Support?


Contact Us On WhatsApp