All Questions

Tagged with
Filter by
Sorted by
Tagged with
9 votes
2 answers
9k 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" ...
Bojjaiah's user avatar
  • 4,002
8 votes
2 answers
4k 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 ...
nenne's user avatar
  • 654
6 votes
1 answer
3k views

Magento 2: Soap Credentials

Poking around the codebase and some questions here it looks like Magento 2 -- much to the chagrin of certain segments of the web development community -- will still support SOAP API endpoint. (...
Alana Storm's user avatar
  • 44.4k
5 votes
1 answer
5k views

Adding new order field to API response: /V1/orders/:id without using extension_attributes

So basically I want to extend the existing web-service /V1/orders/:id for adding new order field (say: erp_id). It's a field in sales_order table and it's available when you load the $order object. ...
MagePsycho's user avatar
  • 4,752
5 votes
2 answers
7k views

How to access Magento 2 soap api from C#

I would like to know (a sample code if it is not too much to ask for) how to talk to Magento 2's SOAP API from C# using Webservice (not service reference). With Magento 1.x versions I used something ...
Vic85's user avatar
  • 51
5 votes
2 answers
2k views

Magento 2 Api Integration

Hello I'm trying to use Magento 2 Rest and Soap integrations when I try to activate my integration I get the error Unable to post data to the consumer due to an unexpected error these are my current ...
Anar Bayramov's user avatar
4 votes
1 answer
5k 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 ...
MrPeanutbutter's user avatar
4 votes
1 answer
541 views

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

$productData = array( 'sku' => 'MSD', 'name' => 'MSD', 'visibility' => 4, /*'catalog',*/ 'type_id' => 'simple', ...
Bibhu Asish's user avatar
4 votes
1 answer
707 views

Magento2 API - Why are null values never type casted

When creating a SOAP client for example in Visual Studio, currently there is a Problem, that objects cannot be deserialized when they contain scalar types with a null value. Using a programming ...
David Verholen's user avatar
4 votes
1 answer
1k views

Magento2 SOAP API for multi-store

Background: I am planning to use Magento2 web-service using SOAP. This will be for Mobile App where customer are allowed to add to cart then checkout. The store will be a multi-store website where ...
MagePsycho's user avatar
  • 4,752
3 votes
1 answer
830 views

How to send SOAP API String from Order Success

I am looking to build a SOAP API that passes a String to a portal via webservice after a payment token is received from PayPal and the customer is directed to the success page. I've been working ...
Rich's user avatar
  • 143
3 votes
2 answers
2k views

Magento2 API Filtering Multiple categories

In Magento2 API, how would I filter by multiple categories? V1/products?searchCriteria[filterGroups][0][filters][0][field]=name&searchCriteria[filterGroups][0][filters][0][value]=%test%&...
Dinesh's user avatar
  • 552
3 votes
5 answers
1k views

Magento 2 - Between "Rest" and "Soap", Which is better then one?

Between "Rest" and "Soap" API, Which is better then one ? I have some cases below: 1) Apply for mobile app call web-service. 2) Apply for desktop app call web-service. 3) Apply for web app call web-...
MrTo-Kane's user avatar
  • 3,656
2 votes
2 answers
12k views

How to use soap API in Magento2?

In Magento1, we use a username/ password in the SOAP call for authentication, what is the difference in Magento2? For example, When i want to get an order info, I use http://example.com/soap/en?...
leo's user avatar
  • 1,246
2 votes
2 answers
3k views

Magento 2.2.5- SOAP-ERROR Parsing WSDL

Every time I run this script. I get an error. I placed this file in the root directory of my magento. soapexample.php: <?php error_reporting(E_ALL); ini_set('display_errors', 1); require('...
Usman Yousaf's user avatar
2 votes
3 answers
3k 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) ?
Atish Goswami's user avatar
2 votes
2 answers
495 views

SoapClient::__call() error inside Payment::capture()

Trying to implement custom payment using SOAP. Payment system has working examples for php5 https://shop.nets.eu/web/partners/sample-code. Soap works fine if I run this samples as plain PHP, but ...
white-imp's user avatar
  • 611
2 votes
3 answers
5k views

Magento 2: SOAP Services Authentication

I am trying to integrate Magento 2 using SOAP services. I am bit struggling on the initial steps to authenticate to the store. My objective is to connect to Magento 2 store and get the customer ...
Malaiselvan's user avatar
  • 1,422
2 votes
2 answers
16k views

SOAP-ERROR: Parsing WSDL: Couldn't load from URL Failed to load External Entity

I'm trying to get all products in $productArrarray from magento 2 API via SOAP client. I tried the below function but it throws this error: Error: SOAP-ERROR: Parsing WSDL: Couldn't load from '...
Iftikhar uddin's user avatar
2 votes
1 answer
2k 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 ...
Thorsten Dittmar's user avatar
2 votes
0 answers
218 views

Magento - SOAP-ERROR: Parsing WSDL 2

Pessoal estou com este erro e infelizmente não consigo resolver o mesmo. Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://magento.cordeirosilva....
Maicon Fernando Stefene da Sil's user avatar
2 votes
0 answers
99 views

Magento2 SOAP with C#

I am trying to read Magento customer from a C# third-party software. When I enter SOAP into the browser, its throwing error. URL:- http://localhost:81/magento2-2.2.5/soap/default?wsdl&...
Gautam's user avatar
  • 41
2 votes
0 answers
34 views

How to read Customer from Magento to .Net app

I have installed magento 2 in my local system, my requirement is to read customer from Magento to one .NET application. Please suggest me how do I proceed to achieve the same. Thanks Gautam
Gautam's user avatar
  • 41
2 votes
1 answer
434 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 ...
Purushotam Sharma's user avatar
2 votes
0 answers
241 views

Can't create soap header

we're trying to send a soap request to the purolator shipping API. We are stuck at the header portion. This is what we are sending the shipping API: // Probleme ICI try { //Define the ...
B1naryC0DE's user avatar
2 votes
0 answers
2k views

add new extension attribute to the response of quote item (/V1/carts/:cartId)

I am trying to add some custom extension_extributes (For example: is_free_product & unit_price) to item node response of Magento\Quote\Model\QuoteRepository::get($cartId) Here is what I tried so ...
MagePsycho's user avatar
  • 4,752
2 votes
3 answers
4k views

How to use WSDL SOAP functions and objects in Magento 2?

I just had a brief look at the Magento 2 WSDL file. Until 1.9 I used the WSDL file as part of my development (Delphi win 32) to have access to the functions, arrays, objects etc... This was very ...
Holger's user avatar
  • 31
1 vote
1 answer
838 views

Search Criteria not working with Soap API

Description: I am working with Soap API on Magento 2, I am trying to get a filtered list of all products on my store using the following code. P.S: I have tried to filter other fields like Sku,Id ...
Siba Al's user avatar
  • 175
1 vote
2 answers
2k views

Test all soap endpoint api with Wizdler chrome extenssion

We can check rest api with all the parameter detail from swagger so I would be highly appreciated if you guys have tested SOAP api with any tool then please guide me. I have installed Wizdler chrome ...
Zahirabbas's user avatar
  • 2,073
1 vote
1 answer
332 views

magento2 API - SOAP connection mystery. Which versions for "stream context"

I have an existing m1 site and a php script which uses the soap API to synchronize product information (read only). It is on a host I do not control and uses the litespeed server. I have been trying ...
iphigenie's user avatar
  • 1,729
1 vote
1 answer
1k views

Where to find a solid Magento 2 SOAP-API Documentation

I'm currently working on a webapp that communicates with a magento 2 server. I tried to use the soap interface for the communication but it quickly turned out, that the soap api changed from Magento 1 ...
Karkan's user avatar
  • 75
1 vote
1 answer
369 views

Magento 2, Soap as service reference, access to different Shops

I need to access to two different shops in one Magento 2 instance. Haven't found out yet, how to tell the interface (using Visual Studio and Service References) which of the shops / frontends I want ...
SKLCosmo's user avatar
1 vote
0 answers
27 views

Magento 2 SOAP import makes ugly urls. How can I fix it?

An external system is making requests to /soap/all?services=catalogProductRepositoryV1. Products are imported. So far so good. But the url key is encoded in an ugly way. <attributeCode>url_key&...
Akif's user avatar
  • 1,531
1 vote
0 answers
50 views

Why would the order I call SOAP services matter?

New Magento developer here! I was getting the fatal error: "looks like we got no XML document" when adding a product through SOAP with sets of attributes, pictures, stock etc., after many hours of ...
Xaser3's user avatar
  • 56
1 vote
0 answers
388 views

Magento 2: How to change price formatting for the API interface?

I need for the (soap) sales order API all prices with 4 decimal places. Example: 9.45 => 9.4500 But only for the API not for other prices! I know the prices are already stored with 4 decimal ...
Michael's user avatar
  • 71
1 vote
2 answers
933 views

Magento 2 how to add product dimensions using rest api

I can add simple products to Magento 2 just fine and adding the weight is no problem at all I do the following: $data = '{ "product": { "sku": "' . $row["item_number"] . '", "name": "' . ...
Dan S's user avatar
  • 21
1 vote
1 answer
350 views

Magento 2.2 soap api catalogInventoryStockRegistryV1UpdateStockItemBySku

I'm trying to use Magento soap catalogInventoryStockRegistryV1UpdateStockItemBySku, but I cannot understand how parameters should be passed. I know there is REST documentation but if I apply the REST ...
Lounik's user avatar
  • 121
1 vote
1 answer
371 views

Return string from webapi gives an unwanted extra character

I am using a webapi observer. In the model, I am requiring a legacy file that echo a well-formed XML for SOAP communication. However, Magento2 echo the result of the Model method, and it does it ...
Cedric's user avatar
  • 159
1 vote
1 answer
325 views

Magento 2 Trying to implement paypal payflowpro using CC within a custom SOAP api plugin

So I have created a custom module that extends Magento 2's API functionalities. Everything works fine except the payment part. This API extension allows among other things to create orders and it ...
MDejardins's user avatar
1 vote
0 answers
356 views

Magento 2 Soap webapi error

I am creating a soap API in Magento 2, I have created a repositoryInterface for the same, When I fetch all the available WSDL list using below URL. It lists my service as well. site_url/soap?...
Kapil Yadav's user avatar
1 vote
0 answers
461 views

Magento 2 to Netsuit error: BaseRef is an abstract type and cannot be instantiated

Here is my controller class <?php namespace Jlsmith\Netsuit\Controller\Api; use Jlsmith\Netsuit\Model\NetSuite\NetSuiteService; use Jlsmith\Netsuit\Model\NetSuite\Classes\GetRequest; use Jlsmith\...
Bhavin Shah's user avatar
1 vote
1 answer
656 views

How to use Magento 2 SOAP API from Python?

I am trying to fetch all the orders and customer from Magento 2 to my python based application. But I am not able to get any API to use in Python. Anyone who has used Magento 2 SOAP API in python, ...
Gaurav Agrawal's user avatar
1 vote
1 answer
551 views

Magento 2 soap API 404

I am trying to load the url: http://magento2.dev/index.php/api/v2_soap?wsdl=1 in the browser but gives me 404. Additionally I using SoapUI Software and gives me error too. Error loading [http://...
Juliano Vargas's user avatar
1 vote
0 answers
729 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=...
Benjamin Garnier's user avatar
1 vote
1 answer
1k views

Magento 2.0 REST/SOAP API - how to retrieve Special Price

I need to be able to retrieve the Special Price of a product. I can successfully retrieve products singly or as a list, but can only see a price property on the product object. I also cannot see ...
Laurence's user avatar
  • 111
1 vote
0 answers
434 views

Magento 2 checkout payment page doesn't works because European server (ec.europa.eu) is down?

I'm getting this error in the checkout page, when I click for the payment step: "Fatal Error: 'SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ec.europa.eu/taxation_customs/vies/services/...
Andrea's user avatar
  • 1,849
1 vote
0 answers
527 views

Error in salesOrderRepositoryV1;content type application/soap+xml;

I am using Magento EE 2.1.1 version. While using web service salesOrderRepositoryV1 to get the order details. I'm getting error as below: System.ServiceModel.ProtocolException was unhandled ...
Resmi's user avatar
  • 11
1 vote
1 answer
360 views

Get data from Soap Xml API using CURL or SOAP Object

I want to integrate some out soap API data with magento store and want to get data from soap API. For this I have two methods to get data one is using curl and other is using soapClient object, and ...
Vinaya Maheshwari's user avatar
1 vote
0 answers
418 views

soap-error: Parsing Wsql: couldn't load from "xyz.wsdl" faild to load external

In magento2 i created a module in which i used soap api for request, response, everything working fine in my local but when i running on server. I am getting below error 'Fatal Error: 'SOAP-ERROR: ...
Yogesh Karodiya's user avatar
1 vote
1 answer
1k views

Magento SOAP V2 API Unknown error

this is the first time I use Magento, and I'm trying to make an API, but Im getting some errors. When I try to call a custom SOAP api method, I'm getting this error: Uncaught SoapFault exception: [...
K.Carl's user avatar
  • 11