In my store, I need to build Soap API
, which accepts XML data from 3rd party solution, parses it and creates new customer based on provided data.
My questions is how can I get XML from post body data?
Thanks!
In my store, I need to build Soap API
, which accepts XML data from 3rd party solution, parses it and creates new customer based on provided data.
My questions is how can I get XML from post body data?
Thanks!
2
Answers
Just capture the XML in Controller's execute function.
Just don’t. Create separate service that is going to do that using Magento framework (check Customer or Catalog module for guidance). Because your request at the moment looks like you’re going wrong way.