Today I am going to show you some different methods that can be used while using the SOAP API V2 method versus V1. There are a couple of settings that you should be aware of in Magento regarding the API that can impact your API call. You can find these settings here: System > Configuration > Services > Magento Core API.
WS-I Compliance – The WS-I compliant mode uses the same WSDL endpoint as SOAP API V2 does. The key difference is that XML namespaces are used in WS-I compliance mode.
Enable WSDL Cache – When you make an API call into Magento, Magento uses PHP’s SoapServer object. The SoapServer object needs to fetch its own WSDL file to operate, and the generation and fetching of this file can be a time consuming thing. Enabling this feature will improve the API performance.
In our examples, we will be making an API call to retrieve a list of our customers. If successful, the list will return the following:
SOAP V1 (The old way)
SOAP V2 (The correct most up to date way)
This post should definitely help you to better understand the structure of making a successful API call. Please leave your comments and questions below.