How to create published REST API that will receive xml as the body parameter?
I am creating rest api in mendix. I have done using Json as body parameter. But now I need to create service which will receive the request like below: The XML is sent as an HTTPS request from the server. The URL to which the request is sent can be specified for each form. The request has one parameter called "xml" and its value is the generated XML as text post( "$url", [ xml => $xml ], 'content_type' => 'multipart/form-data' ); Please guide me how the post operation works. What would be the parameters for microflow? Would be receive xml as string and how import mapping will work?
Have you tried sending XML in the body as binary instead of text?
Another option is, you can also use SOAP instead of REST, which might best suite for the use case you are defining.
Try changing the content-type to application/xml. This might resolve your issue.