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
0 votes
1 answer
10 views

Adding a <route> in custom module's webapi.xml breakes SOAP API

I have my custom module with a webapi.xml file in module's /etc folder. The moment I add a<route> tag inside of the <routes> tag. The http://<magento_host>/soap/default?wsdl_list=1 ...
  • 101
0 votes
0 answers
6 views

php set param for soap register

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> <Body> <entryPKK xmlns="http://www.adhigunaputera.id"> <req> ...
0 votes
0 answers
53 views

Magento 2: Convert SOAP XML Response into array

I am getting below XML as a response, how can I convert it to an array? I have tried almost all the think available in internet but always getting this error: Decoding failed: Syntax error <soap-...
  • 1,029
0 votes
0 answers
51 views

How to use NTLM Authentication while consuming SOAP API

$soapClient = $this->soapClientFactory->create($wsdl, $options); $options = array( 'http'=>array( 'header' => 'Content-Type: application/xml', 'Soapaction: "urn:microsoft-dynamics-...
0 votes
0 answers
86 views

Could not connect to host Magento2

I have configured the FedEx Shipping Method in a Sandbox mode for my Magento2 site. I have checked all the details are fine and confirmed by using Postman. Now when I try to check the rates from the ...
  • 150
0 votes
1 answer
36 views

Get categories per store using SOAP in Magento 1

In Magento 1 need to make a SOAP call for a certain category in order to extract information. For that I use below request: $result_ = $client->call($session, 'catalog_category.info', 90); However,...
  • 323
0 votes
0 answers
70 views

Soap is not detected by Magento 2

In my Magento Admin panel when I entering in a section, looks like is not detecting soap extension like this: But in my phpinfo is enabled: The specific section is licenses from a extension called ...
0 votes
2 answers
79 views

Can not get all SOAP services in Postman

I can not get all SOAP services in Postman. when I send: http://magento2.url/soap?wsdl_list=1 I get the following response:
1 vote
2 answers
1k 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 ...
  • 2,038
1 vote
0 answers
19 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&...
  • 1,318
0 votes
1 answer
551 views

VAT Validation using EU VIES service not working

The VAT validation on our Magento 1 install stopped working. Annoying, because we have quite a few foreign customers who like the fact that they do not have to pay VAT on our site. The feature worked ...
  • 151
0 votes
1 answer
78 views

How to make SOAP calls in magento2.I am using a third party API service

<?php $client = new SoapClient( "https://sandbox.ws-idu.tracesmart.co.uk/v5.6/?wsdl" ); // Set up Classes ready for populating specific wsdl fields $params = new stdClass; ...
0 votes
0 answers
66 views

how to remove node from soap[ response

getting this <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="https://magentolocal.com/soap/default?services=CustomapiV1"> <env:Body> ...
  • 7
1 vote
1 answer
418 views

Unable to list out my site's soap services with error (XML declaration allowed only at the start of the document)

I am trying to list my Magento 2.3.2 site's soap API by running to below URL, https://mysiteurl/index.php/soap/default?wsdl_list=1 However, it only shows the error message below This page contains the ...
1 vote
1 answer
123 views

Magento 2 SOAP API getList not returning correct content-type

getList method for SOAP API XML response has data but returning incorrect content type: Content-Type: application/json; charset=UTF-8 I can see all the data fine if I print $searchResults on return ...
1 vote
0 answers
34 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 ...
  • 56
5 votes
2 answers
1k views

Magento 2.3.5 SOAP DateTime is invalid

Running the very basic SOAP request to list all services: soap/default?wsdl_list=1 I get The "\DateTime" parameter type is invalid. Verify the parameter and try again.
0 votes
1 answer
129 views

customerAccountManagementV1 SOAP Module WSDL broken since upgrading from v2.3.4 to v2.3.5

As mentioned in the title, the WSDL returned for the customerAccountManagementV1 module now contains an error in the response since upgrading from version 2.3.4 to version 2.3.5. Error shown below: ...
  • 101
0 votes
1 answer
114 views

Magento2.2.2 SOAP API Create Partial Invoice

Partial invoice doesn't seem to be working correctly for SOAP requests when multiple item has been ordered. POST URL: http://dev.test.com/soap/all?services=salesInvoiceOrderV1 SOAP BODY: <?...
0 votes
1 answer
41 views

How can I get vat_id via SOAP without additional modifications?

I understand that, by default, Magento doesn't expose the vat_id field via SOAP. The accepted answer there is to edit the core/add a module. Unfortunately, I don't have such luxury because I don't ...
0 votes
1 answer
2k views

Uncaught SoapFault exception: [Client] looks like we got no XML document php [closed]

I'm trying to make a SOAP web service work. I have a XAMPP server installed and I use Visual Studio Code for coding. I've created a web service in a file called "servidorWs.php'. Its content is the ...
1 vote
0 answers
148 views

How do I call the Magento API SOAP V2 with multiple complex filters to the same field?

How do I call the Magento API SOAP V2 with multiple complex filters to the same field? In my case I use the salesOrderList function. This source code does not work: $params = array(array( '...
  • 41
2 votes
0 answers
141 views

How to use the null- or notnull-operator with (complex) filter in Magento (1.9) API SOAP v2

For example: sales_order_list api function filter operators Possible solutions: value = "notnull" value = "" value = null value = "true" value = "1" use simple filter anything else?!?! Who knows?
  • 41
1 vote
1 answer
1k views

Magento 2 credit memo API observer/plugin

I'm interested to know if an observer or plugin will be trigger if a credit memo is created via API rest example: POST /V1/creditmemo/refund OR POST /V1/invoice/{invoiceId}/refund ref:https://devdocs....
0 votes
1 answer
297 views

Soap API not working in magento 2.3.2?

SOAP API not working in Magento-2.3.2. It's showing below error https://domain.com/soap/?wsdl&services=integrationAdminTokenServiceV1 env:Receiver The "decimal" class doesn't exist and the ...
  • 3,161
0 votes
1 answer
22 views

From which Magento 1 version "catalogProductAttributeSetCreate" method is available

From which Magento 1 version catalogProductAttributeSetCreate and storeInfo method is available for soap API. Ex URL for soap wsdl: https://demo.example.com/api/v2_soap/?wsdl=1 https://demo....
1 vote
0 answers
63 views

How to use the Zend SOAP adapter in a Magento2 payment gateway

I would like to make a SOAP request to a payment gateway doing so the Magento2 way. Unfortunately I am struggling with what to me seem incomplete developer docs and a lack of examples to borrow online....
1 vote
0 answers
286 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 ...
  • 71
1 vote
0 answers
22 views

validating SOAP response in Magento 2.3

I am working on a module that connects to a third party API using SOAP. What I want to know is what are the best practices when developing with SOAP? How to validate the SOAP response? ex - if the ...
  • 11
0 votes
1 answer
95 views

Can't use soap service in magento 2.3.1

Can't use soap service When I test soap with this script: try { $opts = array( 'http'=>array( 'header' => 'Authorization: Bearer token' ) ); $...
  • 455
0 votes
2 answers
416 views

Magento soap api version1 get list of closed orders

We would like to get the list of closed orders by passing from and to date filter in magento soap api. Help me great. Thanks
1 vote
1 answer
404 views

How to Run Magento 1.9 Api from Javascript

I want to run Magento Apis using JavaScript and person certain functions such: get all orders, get specific order, create shipment etc, Now I have seen other tutorials and i can run Magento Apis ...
1 vote
0 answers
435 views

Error during rate request at Dhl/Express/Webservice/Soap/RateServiceAdapter.php:77

I have upgraded magento 2.2.4 to 2.3.2. After upgrade version we have enabled MSI modules. After Enabling MSI modules we are getting below error when we try to create shipment. We are not able to ...
  • 31
0 votes
1 answer
743 views

Magento 1.9 - How to filter catalog_product.list with their custom attribute in soap/v1

$client = new SoapClient('http://localhost/project/api/soap/?wsdl'); $user_name = $_POST["user_name"]; $password = $_POST["password"]; $response = array(); $session = $client->login($...
1 vote
0 answers
17 views

Cannot buy via API due to the price always being zero

I have a fully working production site that I am trying to add API ordering to. I followed the sample here http://www.magentocommerce.com/api/soap/checkout/cart/cart.html When I call ...
  • 111
1 vote
1 answer
120 views

Magento 1: Can modify response as XML of wsdl SOAP v2?

Can get the response of wsdl SOAP v2 as required formate XML? I Want to require formate XML response. $proxy = new SoapClient('http://my_host/api/v2_soap/?wsdl', array('trace' => 1)); $sessionId =...
  • 253
1 vote
0 answers
22 views

How to speed up a registration of various products using API Magento SOAP 1?

I am registering more than 20 thousand products via API soap Magento 1. But it is taking 5 seconds to register 1 product! Is there a way to streamline this procedure?
  • 111
1 vote
2 answers
768 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": "' . ...
  • 21
1 vote
1 answer
510 views

magento 1.9 soap api error

When I try to connect to magenento api through soap with this code: //soap call test $client = new SoapClient('https://magentohost/api/soap/?wsdl'); // If somestuff requires API authentication, /...
  • 455
3 votes
0 answers
101 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....
2 votes
0 answers
204 views

Magento 1.9 : I am unable to generate session using soap api v2

Can anyone help me, regarding soap api v2 , I am unable to generate session using v2 version, is there any changes to change? I am getting below error message: Fatal error: Uncaught SoapFault ...
3 votes
2 answers
1k 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%&...
  • 502
4 votes
1 answer
90 views

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

I want all images of a product to use the default small_image, thumbnail and image again for every storeview using the SOAP api. So far I've tried to set the 'types' using ...
  • 175
0 votes
0 answers
152 views

Magento 2 add custome attribute to soap api in order list

I have created one custom fee attribute for order i need to add this attribute to soap api can any one tell me
1 vote
1 answer
1k views

soap api is not working in magento 1.9

I am trying to get products using soap api. But I am getting below error: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://example.com/...
  • 1,965
0 votes
1 answer
129 views

How can I manipulate SOAP request output?

I'm using the following soap function to pull my Magento category tree: <?php $client = new SoapClient('http://bennettcode.com/store/index.php/api/soap/?wsdl'); // If somestuff requires API ...
  • 107
0 votes
1 answer
676 views

How do I correctly access WSDL for SOAP connection?

When running this, I only get an "HTTP ERROR 500" page. As I've seen in other solutions I've added the 'index.php' before the /api section. I've also enabled WSI-Compliance mode as I've seen suggested....
  • 107
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('...
2 votes
1 answer
512 views

Create customer using magento Soap API

I am trying to create new customer using magento soap api , here is my code : $client = new SoapClient('http://map.itgprojects.pw/api/v2_soap?wsdl=1'); `$session = $client->login('...
  • 151
2 votes
1 answer
122 views

Magento cancel onhold orders

Is there any possibility to cancel the on hold orders magento1.9 soap API.

1
2 3 4 5
10