Magento Asked on December 28, 2021
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-service.
Of course, In magento 2, I need to know:
1) How to config only use only one “Rest” or “Soap”?
2) How to create new web-service ?
Thanks!
Smaller learning curve => REST Fast and Adapt to Programings => REST
Answered by Co Sinh on December 28, 2021
If you use static typed approach than use SOAP. In other cases use Rest.
Currently all services available over Rest and SOAP transport, you cannot configure this.
To create new service you need create service interface and expose it through configuration. See official documentation for it.
Answered by KAndy on December 28, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP