Questions tagged [soap]

Simple Object Access Protocol (SOAP) is a protocol specification for exchanging structured information in the implementation of Web Services.

Filter by
Sorted by
Tagged with
5
votes
1answer
5k views

Bug in CE version 1.9.0.1 connecting via Soap v1?

I spent the last two days debugging a problem that caused my site to randomly redirect to the index.php/install page. I solved the problem by clearing the cache and the sessions folder, and then ...
8
votes
2answers
3k views

Including generated 3rd party PHP library in Magento2

I am creating a module that connects to a SOAP service, I have generated classes for this service using wsdl2phpgenerator which uses autoload.php. Placing this in "lib/" with the correct class namings ...
8
votes
1answer
2k views

High-loaded service. Soap vs Rest

I have a task to make an api for Magento using it's SOAP or REST implementation. I've read a lot about both services, also have experience with them. But not in high-loaded projects. The task of ...
8
votes
3answers
2k views

How to upload a file attachment to custom product attribute using Magento SOAP

This is in relation to my question; how-to-get-a-products-file-attachments I'd like to make a script (not on the server) that can utilize the Intellimage_Attachs module in my other question. I am ...
4
votes
2answers
1k views

How to Get core_config_data using Magento soap api?

How to get value of core_config_data eg. general/region/state_required using Magento soap api?
2
votes
3answers
1k views

Magento 2 Web API pre/post dispatch events (REST/SOAP)

Is there any pre/post dispatch events for the Magento 2 web API (REST/SOAP) ?
12
votes
3answers
6k views

SOAP connection problems after 1.9.3.0 update

I have updated my Magento Store from 1.9.2.4 to 1.9.3.0 We use shipping software (Shipworks) that connects via a SOAP/XML-RPC user. After the update shipworks logging shows this response in the logs:...
18
votes
1answer
4k views

Why does one of many attributes does not get updated with SOAPv2 WS-I?

I'm using Magento CE 1.7.0.2 with SOAPv2 and WS-I. I'm trying to update products with the catalogProductUpdate-Method. The description in the code example below gets updated, but the manufacturer-...
1
vote
1answer
8k views

soap api : Start tag expected, '<' not found'

I am getting some soap fault error with the message as below : <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><...
6
votes
2answers
2k views

configurable product options are not added to cart using magento soap api

I have tried to add a configurable product in using magento soap api. I am using the following code to add $product = array( 'product_id' => 23, // simple product id ...
1
vote
1answer
5k views

SOAP API Call not working with Magento 1.9.1.0

I am facing a issue with the SOAP Call request in Magento ver 1.9.1.0. I have tested the code in my local site, it works fine, but when i move the code to my online server it is not working. I have ...
0
votes
0answers
277 views

Magento1.9 inventory updates api

I have a fields in inventory section qty, like below scree shot, i wants to update the qty fields both at a time using magento1.9 soap apis, In the above screen shot i wants to update Main and ...
7
votes
2answers
7k views

Incorrect Location URL returned by V2 SOAP WSDL

When fetching the V2 WSDL via this URL: www.example.com/shop/api/v2_soap?wsdl=1 It is defining the wrong URL for requests: <service name="MagentoService"> <port name="...
1
vote
2answers
3k views

Updating prices for products using a .csv programmatically

My question more broad at the beginning but I will go more into detail later. I have around 3000 products where I have the Skus and prices in a .csv file. Now the prices changed recently and I would ...
6
votes
1answer
3k views

Use API v2 to work with Customer Group Prices

Does anyone know a way to write and read the Customer Group Prices with API v2? We are using a tool to integrate our financial software with Magento. Each customer has a different agreed price for ...
4
votes
1answer
2k views

Magento2: Add a New Customer Address

I'm trying to add a new customer address using Magento 2 REST API in C#. I'm using POST /V1/customers/:id. I keep getting the below error. Where do I find the regionId? Is there another API I can use ...
3
votes
4answers
297 views

Demac Canada Post Plugin - “Cannot connect to host”

On March 10th, 2018, Canada Post changed the way plugins connect to their API. The Magento plugin - Demac Canada Post Shipping - stopped working and started to show error "Cannot connect to host". ...
1
vote
2answers
9k views

Magento soap api login failed using PHP

I am working with magento soap api and it's works fine in my local machine and development server but when i moved my code to production server i found the following error: Fatal error: Uncaught ...
1
vote
1answer
330 views

Magento-2 SOAP API can't create customer

I am trying to create customer through SOAP API with below script. I am able to get customer details with customer id but can't create the customer. I am getting this error "SOAP-ERROR: Encoding: ...
8
votes
1answer
2k views

Logger for SOAP Requests

we want to connect an external fulfillment partner to Magento and want to log their API requests. Is there any free and open source API logger available?
6
votes
1answer
3k views

How to fix Magento's incorrect Soap V2 location address [closed]

I'm trying to use Magento's SOAP V2 api. The URI path for the API is http://www.example.com/api/v2_soap. When I'm making my request I'm using http://www.example.com/api/v2_soap?wsdl. The request ...
5
votes
1answer
4k views

How to return Associative Array from API in Magento 2

I have created Custom Api which returns associativeArray. If I use associativeArray it's giving error If I use string[] it's working But I want to return associativeArray. Error: Class "array" ...
4
votes
1answer
185 views

Shipping charges are not working

Edit After I used below answer, now i am getting shipping charges in App. But we are facing some small issue now: Based on distance, we have set the shipping price, Shipping A : less than 100 kms ...
4
votes
2answers
4k views

Magento SOAP V1 - Change Soap Address

We have a multistore magento setup thats still half in development. But we have 1 of the stores open with a test url. e.g test.domain.com However when we go to: http://test.domain.com/index.php/api/...
3
votes
1answer
9k views

SOAP API fails with “couldn't load from…”, “failed to load external entity…” [duplicate]

When calling upon the Magento SOAP API I get the well known SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://{domain}/index.php/api/v2_soap/index/?wsdl=1' : failed to load external entity "http://...
2
votes
1answer
2k views

Trying to install extension through Connect Manager getting depends on PHP extensions error

I am trying to install Magento extension StitchLabs_ChannelIntegration but I am getting this error: CONNECT ERROR: Package community/StitchLabs_ChannelIntegration 1.0.8 depends on PHP extensions: ...
1
vote
0answers
448 views

How is it possible to set an extension_attributes to the orders and have it appear with REST/SOAP API?

I am trying to use extension_attributes in order to add a field in the orders. The thing is, I want that field to appear when we get the orders with API calls (http://monsite.fr/soap/default?services=...
5
votes
3answers
5k views

is it possible to create mobile app using the rest api / or soap?

I'm evaluating is it possible to create a mobile app by using the rest api / soap. i've checked the rest api, seems there are some feature are missing in rest api, for example: adding the product into ...
5
votes
1answer
2k views

How to create a simple product using SOAP api in magento2

Here I have tried but I getting this error: Fatal error: Uncaught SoapFault exception: [env:Sender] %fieldName is a required field. require('vendor/zendframework/zend-server/src/Client.php'); ...
3
votes
5answers
5k views

create customer in magento via SOAP API

i was trying to create customer in magento via SOAP API (customerCustomerCreate (SOAP V2)) in android app , but i get this error : SoapFault - faultcode: '100' faultstring: 'Customer email is ...
3
votes
1answer
212 views

SOAP API to build cart for frontend - should I be worried? session collision or cart loss?

My developer has written PHP code on his CMS that connects via SOAP on behalf of the user browsing the site, to manage the cart from their CMS. I'm worried about the interaction of SOAP session (...
2
votes
1answer
6k views

The SOAP or REST way

I'm implementing a mobile app that would communicate with Magento, there is a lot of functions/endpoints not implemented in SOAP or REST api, so im definitely going to extend whichever im going to ...
2
votes
1answer
192 views

Magento2 : Create SOAP connection in magento custom module

I am using below code in M1 to establish the connection using SOAP:- <?php class Company_Module_Helper_Webservice extends Company_Module_Helper_Basehelper { private function ...
2
votes
1answer
1k views

C# can access Magento 2 SOAP API without OAuth token

I'm trying to connect a PC client application written in C# to a Magento 2 demo shop I'm hosting in a Linux VM. I added a new integration in Magento and activated it, so I got the OAuth tokens the ...
2
votes
1answer
3k views

Magento API SOAP v2 : faultcode Receiver, faultstring Uknown Error

I'm getting a SOAP error (v2, WS-I Compliant) that I'm having trouble debugging. I'm getting a "Receiver, Unknown Error", which the header shows to be a 500 Server Error and appears as such in my ...
2
votes
1answer
2k views

Add to cart configurable products using magento soap api V1

Trying to add configurable product in magento cart using magento soap api V1 but not able to add the products. can anyone please let me know the way how to do it. Any help would be appreciated.
1
vote
1answer
3k views

Soap API Parsing WSDL : Couldn't load from, Extra content at the end of the document

On Magento 1.14.2.0. I am connecting to the SOAP API via a URL like http://example.com/api/soap?wsdl=1 However, when I try and access the API it fatals filling my apache error log fills with [Wed ...
1
vote
1answer
1k views

Can't connect via SOAP v1

I am trying to point a php SoapClient at http://me.com/api/?wdsl and when I call $soap->login(), I get: "PHP Fatal error: Uncaught SoapFault exception: [Sender] DTD are not supported by SOAP in ..." ...
1
vote
0answers
746 views

my custom api returning inserted record_id but data is inserting null? [closed]

I have created the custom magento SOAP/XML-RPC API successfully to fallow the Marius and Sylvain instructions. And my php file invoking the those two methods which is create and info. my v1 code is: ...
1
vote
0answers
124 views

I make the soap call catalogCategoryInfo call

I am trying to get a cusotm attribute I created in the categories to show up when I make the soap call catalogCategoryInfo call. I created the custom attribute using the following code <?php ...
1
vote
1answer
463 views

Best option for Magento Mobile APP API

We are in the process of developing a heavily customized Magento store which needs to support muti website, and multi stores, the mobile app will also need to easily switch from one store to another. ...
0
votes
3answers
1k views

Magento 2.1.3 Swagger and api error

Im using Magento 2.1.3 and PHP 7.0.8. I would like to test some Magentos 2 import api. When I'm trying to connect to swagger by http://localhost/swagger error 500 is received: I'm also trying to ...
0
votes
2answers
3k views

android magento - customer login(authentication) using SOAP API

We are devoloping an android app for a Magento site. I am facing problem while I try to login(authentication) as magento customer. I can't find a proper way to login as a customer using email and ...
0
votes
1answer
1k views

Invalid api path?

I have created v1 & v2 API successfully and invoking the all methods to fallow the Marius & Sylvain instructions. v1 & v2 all methods are successfully running except v1: update method. ...
0
votes
0answers
162 views

Magento 1.9 custom api update inventory

I am updating the cataloginventory_stock_item custom quanty values based on stock ids by using custom api. I written a update table query in custom api module model file: Like below: public ...
0
votes
1answer
817 views

SOAP v2 catalogProductListOfAdditionalAttributes Uncaught SoapFault exception: Access Denied

Under API Roles, I have set all the permissions related to category and product data, and the ability to list such data via SOAP API. When I set the role to All, the API call works, but that also ...
0
votes
1answer
2k views

Magento Api V2 Methods not present

i'm new at magento api and need some help... when i want to call connectorSyncMultiUpdateProduct(...) i'll get this Error: Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Procedure '...
0
votes
1answer
102 views

Magento catalogProductAttributeOptionManagementV1 AddOption SOAP

I am sending a soap request to Magento and getting an error per below. <?xml version="1.0" encoding="UTF-8"?> -<soap:Envelope xmlns:def="XXX/soap/all? services=...