14 votes
Accepted

SOAP connection problems after 1.9.3.0 update

Same error with another extension here. system.log says Argument 1 passed to Mage_Api_Model_Server_Handler_Abstract::processingMethodResult() must be of the type array, string given, called in ...
Belgor's user avatar
  • 156
12 votes

How to make SOAP calls in magento2?

Inject \Magento\Framework\Webapi\Soap\ClientFactory in the class where you need it: public function __construct(\Magento\Framework\Webapi\Soap\ClientFactory $soapClientFactory) { $this->...
Fabian Schmengler's user avatar
8 votes

Fatal error: Class 'SoapClient' not found in

Facing same issue on ubuntu OS + PHP7 I managed to solve this issue by running this command sudo apt-get install php7.0-soap And then restart apache sudo service apache2 restart Hope this may ...
Haris's user avatar
  • 869
6 votes

Magento customer email missing in guest checkout, when using soap api

Fixed and tested: add to your existing module or add a new module: config.xml // src/app/code/local/Your/Module/etc/config.xml <?xml version="1.0"?> <config> <modules> &...
cottton's user avatar
  • 235
6 votes
Accepted

Magento2: Add a New Customer Address

You will get all the customer address related attributes by calling below url : http://yourwebsite.com/index.php/rest//V1/attributeMetadata/customerAddress/ Method Name : GET Same way for ...
Manthan Dave's user avatar
  • 9,816
5 votes

Fatal error: Class 'SoapClient' not found in

you need to enable php soap client. Go to your php.ini file and find extension=php_soap.dll and remove semicolon(;) , restart your apache. check phpinfo() to see if soap is installed succcessfully.
Rahul Anand's user avatar
5 votes
Accepted

Shipping charges are not working

The problem may be related to an incorrect use of quote data. Don't instantiate the checkout/session model in collectRates() method because it may start a new session when you call an API method. ...
martin_mageworx's user avatar
5 votes
Accepted

How to use soap API in Magento2?

If you want to see how many soap services are enabled in your website, you can run below url, http://localhost/magentoce27/index.php/soap/default?wsdl_list=1 Change your host entry accordingly. Now ...
Rushvi's user avatar
  • 2,843
5 votes
Accepted

Magento 2.2.5- SOAP-ERROR Parsing WSDL

I tried the SOAP Web Services on my local host and it was working fine. The reason why the Magento 2 was not able to give a response to the request was because it was not able to verify SSL ...
Usman Yousaf's user avatar
4 votes

Event for bulk updating product status

For Magento >= 1.9.2.0: The event you are looking for is catalog_controller_product_mass_status, it is dispatched under the massStatusAction of app/code/core/Mage/Adminhtml/controllers/Catalog/...
Raphael at Digital Pianism's user avatar
4 votes
Accepted

How to create a simple product using SOAP api in magento2

The code below works. Tested on Magento 2.1.4. The error you received: Fatal error: Uncaught SoapFault exception: [env:Sender] %fieldName is a required field. was due to json_encodeing $...
Konstantin Gerasimov's user avatar
4 votes
Accepted

Uncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameter

Problem is when you pass session to get customer list $result = $cli->customerCustomerList($session_id); Now change to following code: <?php $api_url_v2 = "https://ninobambino.in/index.php/api/...
Sohel Rana's user avatar
  • 35.8k
4 votes

Demac Canada Post Plugin - "Cannot connect to host"

Demac has posted their own solution here: https://www.demacmedia.com/important-new-patch-magento-canada-post-application/ I have not tested it, but do plan to install it later today (deployment on ...
Kalvin Klien's user avatar
3 votes
Accepted

Maximum PHP function nesting level error of NewRelic after turn off cache

I think you have a loop going on somewhere, which means that a method is calling itself or one method is calling another and that method is calling the first one again, over and over again. You ...
7ochem's user avatar
  • 7,532
3 votes
Accepted

Multi update products quantities using one soap api request

finally I found a solution $client = new SoapClient('http://example.com/index.php/api/soap/?wsdl'); $session = $client->login('xxxx', 'xxxxx'); // $productInfo is array which contains all ...
Niraj Patel's user avatar
3 votes

Fault Object looks like we got no XML document

Your WSDL XML might be erroneous/not valid. After a quick Google I found this answer on StackOverflow: https://stackoverflow.com/a/12319009/1306684 I says there might be other output than the XML ...
7ochem's user avatar
  • 7,532
3 votes
Accepted

How to get list of all the groups of particular attribute set using Soap API?

Follow steps for the create new custom SOAP API method Step : 1 Create file app/etc/modules/AR_CustomApi.xml <?xml version="1.0"?> <config> <modules> <AR_CustomApi&...
Abdul's user avatar
  • 9,702
3 votes
Accepted

Invalid carrier specified - Cannot add tracking to shipment

I'm not sure what can cause this but I'm going to give you the steps to debug the problem. The error The error you're getting: Invalid carrier specified. Comes from the following file: app/code/...
Raphael at Digital Pianism's user avatar
3 votes

how to easily make a SOAP call.

For magento version > 1.3, you can use below example: <?php $apiUser = 'api_user'; //The api user name you created in magento $apiPassword = 'password'; //The api password $wsdlUrl = 'http(s):...
Nidheesh's user avatar
  • 1,048
3 votes
Accepted

SOAP API V2 Response log

John suggested good thread which mention nice extension N98_ApiLogger. It logs API requests and responses. All logs are displayed in admin backend. I found another way. by adding mage log to Soap.php....
Mariusz Pietrukowski's user avatar
3 votes
Accepted

Data format for creating a product using soap api in magento 2

Replace attribute_set_id with attributeSetId and type_id with typeId: $productData = array( 'sku' => 'MSD', 'name' => 'MSD', 'visibility' => 4, /...
Konstantin Gerasimov's user avatar
3 votes
Accepted

Search Criteria not working with Soap API

You have to write the SOAP API, like below. <?php require('vendor/zendframework/zend-server/src/Client.php'); require('vendor/zendframework/zend-soap/src/Client.php'); require('vendor/...
MGento's user avatar
  • 1,519
3 votes
Accepted

Set all selected media gallery types to default store value using SOAP Api

You have an error in your API call, the parameter type needs to be an array in order to be processed correctly. If you change your code and use an empty array instead of null you should achieve what ...
HelgeB's user avatar
  • 4,511
2 votes

Magento SOAP API Slow Response need Solution?

This might not be practical for everyone, but I switched from SOAP to XML-RPC and my calls went from 30-60 seconds to < 3 seconds. I tried all the suggestions on caching and nothing else worked.
Lee Henkel's user avatar
2 votes

Updating prices for products using a .csv programmatically

Just created availability, price, cost CSV-updater. Interested in development or contribution, so posting it here. http://lycenok.com/magento-extensions/magento-csv-product-updater.html https://...
Eugene Lycenok's user avatar
2 votes

Send tracking number programmatically with SOAP

I had exactly the same problem and it seems that there is solution without extending the API! The shipment API has an undocumented function called sendInfo. Thanks to [cameronhimself][1] for pointing ...
karpa's user avatar
  • 396
2 votes

Magento customer email missing in guest checkout, when using soap api

I had the same problem, on this file: app/code/core/Mage/Checkout/Model/Api/Resource/Customer.php #114 I found this code protected function _prepareGuestQuote(Mage_Sales_Model_Quote $quote) { $...
kadukeitor's user avatar
2 votes
Accepted

Call admin controller from another server

In my opinion, calling admin controllers from remote seems weird. In general, I'd use a cronjob on the Magento server which regularily polls a directory for new files. The files should then be ...
Andreas von Studnitz's user avatar
2 votes

SOAP error: Parsing WSDL: Couldn't load from "" failed to load external entity

I was experiencing the same issue. I did install the orocrm bridge which needs to access the soap api, followed the given steps to configure a soap role and a user and then I tried to connect: 💥 ...
lenybernard's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible