How to implement xml based webservices in cake php 3

193 Views Asked by At

we have implemented friendsofcake CRUD plugin in our cakephp 3 project and exposed the data successfully as web services in JSON format. But we are not able to post/add the data using XML format. We were able to get the data in xml format successfully in GET request by using the .xml extension in the url. We have include the RequestHandler component and added 'json' and 'xml' in the route.Abd also used the cotenttype and accept headers as 'application/xml'.

Can you help us what the request format should be for the model to successfully save the data in the database by POST method in XML format.

0

There are 0 best solutions below