15
votes
How to return Associative Array from API in Magento 2
Custom data interface should be created to represent key-value pairs, e.g.
<?php
namespace Vendor\Module\Api\Data;
/**
* Interface which represents associative array item.
*/
interface ...
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
...
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->...
9
votes
Accepted
Magento 2: Soap Credentials
Alan, you are right, SOAP framework is completely different from the one in Magento 1 and was created specifically for Magento 2 needs to have Service layer interfaces same for REST, SOAP and PHP ...
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 ...
7
votes
Accepted
How to access Magento SOAP WSDL
SOAP V1: http://magentohost/index.php/api/soap/?wsdl (this one is more like RPC, no concrete operations defined in WSDL, just call)
SOAP V2: http://magentohost/index.php/api/v2_soap?wsdl=1 . For ...
6
votes
Accepted
SOAP error: Parsing WSDL: Couldn't load from "" failed to load external entity
SOAP server needs to be initialized with WSDL to understand how to process incoming requests (it basically loads WSDL from the specified URL in case of Magento). This happens in \...
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>
&...
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 ...
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.
5
votes
Accepted
SoapSerializationEnvelope error in android app code
I got the answer by replacing this
http://127.0.0.1/index.php/api/v2_soap/";
by
http://machines Ip address/index.php/api/v2_soap/";
and I started to use V2 soap api. Its working fine.
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. ...
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 ...
4
votes
Space added before every magento page content
It's most likely that there is a module installed, or a custom theme installed, that has trailing whitespace after the closing ?> in a file or class.
Because it's happening with both Mage.php and ...
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/...
4
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 ...
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 $...
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/...
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 ...
3
votes
Accepted
How to create SOAP API in Magento2?
Finally I have acieved to debug getServiceMetadata() function from root/app/code/Magento/Webapi/Model/Soap/Config.php.
/**
* Retrieve specific service interface data.
*
* @param string ...
3
votes
Accepted
create product attribute media in soap v1 error 102
Your error is "The image is not specified"
Your "file" key is missing in request check example. "content" and "mime" should be in key "file"
$proxy = new SoapClient('http://magentohost/api/soap/?wsdl'...
3
votes
Magento : Soap api not working
Change the getProductInfo call to this
$product = $proxy->catalogProductInfo($sessionId->result , 27);
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 ...
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 ...
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 ...
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&...
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/...
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):...
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....
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, /...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
soap × 472api × 240
magento-1.9 × 125
magento2 × 75
soap-api-v2 × 65
rest-api × 36
magento-1.7 × 33
wsdl × 30
magento-1.8 × 28
php × 23
web-services × 17
soap-api-v1 × 15
product × 13
orders × 12
customer × 11
xml × 11
magento-2.1 × 10
cart × 9
magento-enterprise × 9
filter × 9
magento-1 × 8
shipping × 8
ce-1.7.0.2 × 8
module × 6
event-observer × 6