9
votes
Get Custom attribute in API
If you're using the SOAP Api try this:
Create a basic custom module and ensure that has <Mage_Catalog/> as dependency
Then add an api config file for overwrite the "category" complex types ...
8
votes
how to get all images of a particular product
Use the following code to avail all the images of a particular product.
$product = Mage::getModel('catalog/product')->load(2);
$base = $product->getImage();
$thumb = $product->getThumbnail();...
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
Soap API - How to get request by Limit 10 based on pagination?
Unfortunately as far as I know you can't simply pass a limit to the SOAP API.
One approach which would work if you don't need to filter the list by any attributes, want to get all attributes and ...
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.
4
votes
Magento API adding a custom attribute to the sales_order.list output
In your config.xml:
<adminhtml>
<events>
<sales_order_collection_load_after>
<observers>
<mycompany_mymodule>
...
4
votes
Accepted
Why Magento salesOrderInvoiceList is accepting store_id as a Complex filter?
Formally, you can pass to complex filter any field from sales/order_invoice model and this field will take part in the filtering. Magento passes your complex filter to \...
4
votes
Accepted
Speeding up the Magento REST/SOAP API
It is pity, but there is no drop-in solution to make Magento SOAP API faster.
API is slow not only on Magento side but also on the client side, as WSDL size is incredibly huge for loading into memory ...
4
votes
how to get all images of a particular product
Below Variable returns you array of all media images with respect to that product id.
$images = Mage::getModel('catalog/product')->load($item->product_id)->getMediaGalleryImages();
4
votes
how to get all images of a particular product
You can get products all images by following script including images that are excluded:
$product->getMediaGalleryImages('images')
$product should be an instance of Mage_Catalog_Model_Product
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/...
3
votes
SOAP v2 api "The operation has timed out"
you can try the following:
Session SQL:
INSERT INTO core_config_data(path, value)
VALUES ('web/cookie/cookie_lifetime', 86400)
ON DUPLICATE KEY UPDATE value = 86400;
or manual:
System -> ...
3
votes
Accepted
how to save API xml request and response files
All the SOAP cals go through the method Mage_Api_Model_Server_Adapter_Soap::run
there is an if-else statement in there. The if branch generates the WSDL, you don't need to log that.
On the else ...
3
votes
Accepted
Error using Soap Client in Magento
As mentioned in the comments above:
The right URL to use with SOAPv2 API is:
http://localhost/magento/index.php/api/v2_soap?wsdl=1
(with or without index.php)
Further information on the SOAP API ...
3
votes
Accepted
Blank Filters Using PHP SoapClient to Make Calls into WSI-Compliant API
Thanks to the help of SoapUI, I found the following request format would work using PHP SoapClient:
$request = [
'sessionId' => $session,
'filters' => [
'filter' ...
3
votes
Accepted
Shipping charges are not saving in Database if we added Product to cart through Android App
First,You need to
check available shipping methods for current cart/Quote using Soap api function shoppingCartShippingList().See at link .If you have multiple store view/stores /websites then you ...
3
votes
SOAP connection couldn't load
It seems your URL is wrong.
It should be
https://www.ourshop.com/shop/index.php/api/v2_soap/?wsdl=1
instead of
https://www.ourshop.com/shop/index.php/api/v2_soap/index/
3
votes
SOAP url wont load xml
The Magento 1 soap server attempts to address itself by domain name. If you look in the apache access logs you should be seeing errors when attempting to test the soap connection like this.
This can ...
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/...
3
votes
Accepted
Magento 1.9 API v2 Payment Additional Information
Posting the answer here in case someone else bumps in to the same issue.
Magento order object already returns the additional_information as an array, so we just needed to add a typens
<element ...
2
votes
Invalid webservice adapter specified REST API
This errors comes from here: \Mage_Api_Model_Server::initialize
You are using the rest adapter, which is defined in app/code/core/Mage/Api/etc/api.xml
<adapters>
<soap>
...
2
votes
Accepted
Error with SOAP API when using a different domain for admin access
The problem in the end was how we had setup the admin domain. We had configured it through ngnix to use the 'admin' store code. Fix was to change the ngnix configuration so if a request to the api ...
2
votes
Magento SOAP API Add to cart, how to add a grouped product?
Having looked at it in some depth, I think this is simply not implemented in the Magento code and therefore the API would have to be extended for grouped products to work properly
Because I have ...
2
votes
Accepted
catalogProductList - adding 'nin' filters
API V2 queries use a "complex filter" for advanced queries. Their syntax is a bit different. Here's a complex filter query for your sample:
$filter = array(
array(
'complex_filter' => ...
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: 💥
...
2
votes
Add new element to the api method catalogProductCreate
If your element is a product attribute, Magento is ready to handle with the Soap API. The catalogProductCreate method has additional_attributes parameter. You can use it to set one or more values to ...
2
votes
Accepted
Wrong SOAP Exception Code in API V2 Response
$this->_fault() throws a Mage_Api_Exception exception. Because this is within your try..catch block, you catch this Mage_Api_Exception with catch (Exception $ex) where you throw a different ...
2
votes
How do I retrieve a product using either the REST or SOAP APIs?
None of Magento APIs provide access to "full" product. Using REST API would be easier so go for it if it does not matter. Your application needs to authenticate as an admin user (not customer), see ...
2
votes
Accepted
Is there an API available to download a digital product?
No, This type of soap api is not available in default magento. if you require, then create a custom API.
Please follow the step given in below link.
http://www.magentocommerce.com/api/soap/...
2
votes
Accepted
How to upload a file attachment to custom product attribute using Magento SOAP
In your case you need to implement custom SOAP API endpoint. Luckily you may heavily reuse Downloadable Product API implementation.
If you create all files listed below, you will have new SOAP V2 API ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
soap-api-v2 × 241magento-1.9 × 128
soap × 65
api × 60
magento2 × 33
magento-1.7 × 13
wsdl × 13
rest × 11
soap-api-v1 × 10
rest-api × 9
product × 8
php × 8
sales-order × 7
web-services × 7
android × 7
magento-2.1 × 6
magento-1 × 5
customer × 4
filter × 4
webapi × 4
cart × 3
configurable-product × 3
error × 3
magento-enterprise × 3
xml × 3