Questions tagged [web-services]

The tag has no usage guidance.

0
votes
0answers
18 views

Magento 2 caching Web Service response

I have a problem, whenever a user finalizes a purchase he is sent to an order tracker page. When this page is first opened it posts the order to a custom web service. There is an IF that checks if ...
2
votes
1answer
14 views

“Web services” menu is missing [closed]

I faced a problem with the menu item "Web services". I tried to add a 3d party module, but I couldn't do that because in my admin menu System I couldn't find the "Web services" menu item. I already ...
0
votes
1answer
30 views

Magento1.9 : How can I GetWebProducts using Soap Api?

I have this type of WebService How can I get products detail using Magento 1.9, kindly explain me in detail that how can I get data using this Webservice. If someone can list down the step how can I ...
0
votes
0answers
15 views

How to add code to Magento?

I need to implement Magento for a customer, but it also needs an Magento-SAPB1 implementation by some Web Services that we already have, so i just have to invoke it from de E-commerce backend and ...
0
votes
0answers
24 views

using default magento web services with in magento application?

In my company magento default web services are using with in magento application. is it good practice? my understanding We can use magento repo interfaces instead of web services. web services main ...
1
vote
1answer
359 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
0answers
68 views

Api acl check permission not working for guest user

Hi I have added api acl for guest user vy adding tag <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <update>1</...
1
vote
0answers
482 views

Invalid Login attempt while accessing Netsuite using SuiteTalk(Web Service)?

I am trying to get data from NS using WS. for that I'm using the following details in SoapUI: WHEN I SEND THE request I get the following response : Anyone had success with this or have any idea ...
0
votes
1answer
31 views

Magento2: How to connect Magento website to an external webservice?

I have a Magento website that I want to connect to an external webservice to upload and update the website with products from my DB directly, can this be done? if so, please advise how. Thank you.
2
votes
0answers
21 views

How to develop a SOAP API as a guest user

I am trying to developing a SOAP API. For first I created a module like this app\code\MyVendor\MyModule in which I created etc\module.xml, etc\webapi.xml and etc\di.xml. Then I created my API ...
1
vote
0answers
234 views

Magento 2, how to get child product id from configuration product option?

Using Magento 2.2, working with configuration product. I have the list of product option from it's attribute and the list of child product, but I cannot find the relationship key between these ...
2
votes
1answer
30 views

Magento 2. Does Commerce offers more functionality than Open Source in term of Web APIs?

Does Magento 2 Commerce offer something in addition to what M2 Open Source offers in terms of Web APIs?
0
votes
1answer
53 views

Magento2: Web service Call POST method

I wanted to call Web service using POST method and attache the Data values. Here is my URL : http://api.geonames.org/citiesJSON which takes below data in POST. north=44.1&south=-9.9&east=-22....
1
vote
1answer
211 views

Magento2 : Web services Parsing Json Data

I have used this below Controller to call Web service with Get method. I got below response I need to Parse and get the value the "Message". my controller looks like below. class Service ...
1
vote
1answer
32 views

Magento2: Web service Get method not able to Call properly

I am trying to get call get web service sample get link <?php namespace Autosynch\synchProduct\Controller\Page; use Magento\Framework\HTTP\Client\Curl; class Service extends \Magento\Framework\...
0
votes
1answer
61 views

Magento2 : Restful Web service Calls - controller is not showing

I have followed this Question to write the web-service call. but controller is not showing it says 404 Not Found. <?php namespace Autosynch\synchProduct\Controller\Page; use Magento\Framework\...
1
vote
2answers
536 views

Magento 2: Calling Restful Web service GET and POST

Any one knows how to call restful web service from Magento 2? Please guide me with a format how it can be done. Any links to guide me with examples of POST or GET etc. I want to Call below URL in ...
0
votes
1answer
140 views

How to connect ERP to magento store via Soap?

I want to create a login for ERP in my magento store. I have created a user and role in web services->soap/xml-RPC how can login via soap?
1
vote
3answers
42 views

Migration in live server

here I am again seeking for help. I've been stuck for 2 days working about this. when I'm working on localhost my website is working. Well, after migration from localhost to my web server it gives ...
3
votes
0answers
223 views

Automatic Login in Magento 2

I have an application where the user logs in, and I have a web service where I can send the data. How can I get the user logged in automatically to the e-commerce with the data received?
1
vote
1answer
112 views

Call web service from javascript

I could call web service from block with code below : $jsonObject=json_decode(file_get_contents("http://www.testservice.com:50001/Services/Magento.asmx/getPayer?input=".$datasJson)); How can i call ...
0
votes
1answer
213 views

Integrate SimplyPost with Magento store

Does anyone try integrating SimplyPost with Magento, Is there any plugins or giudes I can follow? So far I could find only the SimplyPost API. I'm new to magento, So have no idea where to start. I ...
0
votes
2answers
86 views

Magento2 : Where do I start and what do I need? [closed]

I want to extend a Magento 2 application with communication to a remote webservice. The requirement is simple: When Productdata gets updated, I want to send a request to a webservice. Depending on ...
0
votes
1answer
156 views

Can Magento talk directly to an ERP?

I don't know much about ERPs or Magento and wanted to find out if Magento Community version talk directly to an ERP, specifically Infor M3 Using V1.9 of Magento.
0
votes
1answer
1k views

getting data from external webservice

I tried to get data from outside webservice. I got API url like http://wsq.check.com:50001/Services/appsspg.asmx/GetActionLogand the data for the function is $data = array("parameter1" => "1");. So,...
1
vote
0answers
90 views

call API function from SAP to magento

I got a service like this at SAP POST /Services/Magento.asmx/HelloWorld HTTP/1.1 how do i call it at magento 2?
0
votes
1answer
29 views

Extra actions after order saved

I am new to Magento, but what I need to do is: after the order is saved, I have to call an external webservice and pass some order data to this service. Where or what is the best place to do so? ...
0
votes
1answer
343 views

Get only the image path from cms block?

I want get path of image of cms-block and here is code: $yourPageIdentifier = 'home_banner'; $cmsPage = Mage::getModel('cms/block')->setStoreId($store_id)->load($...
0
votes
1answer
541 views

Sending order XML to web service

I have a requirement to create a scheduled task that will send orders (since the last time the task ran) to an external web service. The data needs to be sent in cXML format and one xml per order. It ...
1
vote
1answer
450 views

Magento 2: How can I store my original REST request in a file on the server?

I need to store my REST request within the file system - I have tried serializing the request object, but obviously the file size is quite a lot larger than the original. I have run a test that ...
6
votes
2answers
2k views

How to log all rest api calls in magento2?

Is there any way to log all the requested rest API with details (requested URL, methods, parameters, time etc.,) in Magento2? earlier I have logged all the rest API which was related to products ...
1
vote
0answers
310 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 ...
1
vote
0answers
184 views

How to use Magento REST services

I am trying to use Magento's rest services, trying to follow the example on http://inchoo.net/magento/configure-magento-rest-and-oauth-settings/ and http://inchoo.net/magento/consuming-magento-rest-...
1
vote
1answer
2k views

How can I integrate DHL webservices

How can I integrate DHL web services. I need to integrate DHL for my shipping Rates.
1
vote
0answers
41 views

How to use module as service in magento 2?

I have to call external API from each module and I want to make the external API as one module. It will be like service for my magento application. How create it. I don't think I need controller for ...
2
votes
0answers
917 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 ...
4
votes
1answer
3k 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. ...
4
votes
1answer
955 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 ...
4
votes
3answers
981 views

Magento 1.x API V/s Magento 2.x API

I have a project in which we are using Magento 1.4 API for mobile app now we want to migrate our platform to Magento 2.x . My question is that what's different in Magento 2 API V/s Magento 1 API ...
2
votes
1answer
1k views

Magento 2 - Web API Create Account

I use curl to call the web api to create a customer account according to the example here. curl -X POST "http://local.magento/index.php/rest/V1/customers" \ -H "Content-Type:application/json" \ ...
0
votes
1answer
365 views

MAGENTO 1.9 Soap delete all image from product

I'm using the SOAP web service to add images to products after I import them. Now before I want to add the image to the specific product, I want to delete all the images of that product. But the SOAP ...
1
vote
0answers
290 views

best api approach for magento interaction in android native app

I am working on android app which is linked with magento website.I tried to to use soap api for fetching data into android app but this api is too much slow as expecting. So, How to interact with ...
2
votes
0answers
2k views

how to get the product details by rest API in Magento1.9?

I am using the magento rest api client(postman & restclient) to get the products details but always returning the 404 error. Please see the attached screen shot.I have set all the values in the ...
2
votes
1answer
398 views

Magento 2 API vs. Web Interface vs. Web API

Just as a basic question in Magento 2. In Magento U tutorials, it says: In Magento 2 Modules only communicate through API One module in not aware of the internals of another, so the ...
1
vote
0answers
63 views

Using Magento websrvices

I'm using laravel in my application ,but I need to use the Magento getVersion method via Magento webservices how can I do that is it possible to do that? can any one help me ?
11
votes
3answers
12k views

Magento2 REST API Error 'Class does not exist'

I've created a test Magento 2.0.2 REST web service based on Alan's blog: http://alankent.me/2015/07/24/creating-a-new-rest-web-service-in-magento-2/ I'm using Postman to call the custom web service ...
2
votes
1answer
3k views

Rest API with Magento using PHP with example.

I am new to Magento and want to know how to write Rest web services with PHP. Please suggest me with any material or example with full explanation because i gone through many, but couldn't find a good ...
6
votes
1answer
2k views

How to implement create, update, delete in magento rest api?

How to set methods in api2.xml I create _create(), _retrieve() , _update(), _delete(), _retrieveCollection() functions in Module/Model/Api2/Test/Rest/Guest/V1.php I think its manage in /app/code/...
3
votes
0answers
426 views

Shopping cart price rule not applying when creating order by REST Api

I'm working with Magento CE 1.7.0.2. I create order by sending REST Api request (working fine) but when I'm adding coupon code to my XML (or JSON) request, the discount is not applying and the amounts ...
0
votes
1answer
223 views

how to set payment method based on country in magento?

i am creating a webservice . so i want to set payment method for magento v1.9 based on country details and cash on delivery(cod) for particular products and particular country in magento . how to set ...