dufran.ua
dufran.ua4mo ago

Content type: application/xml for http route

Hi all, I encountered an issue with the inability to receive XML content type for the http route. It always returns 415 Unsupported media types. It supports text/plain, but most XMLs will be sent by services we can't control so it's not an option. Is there any option to accept XML's? Currently only thing cames to mind is modify caddy config to change request headers to text/plain when they are application/xml
5 Replies
Hugo
Hugo4mo ago
we'll add it to the backlog
jdanielson
jdanielson3mo ago
curious of the progress of this as I'm running into this issue also
Hugo
Hugo3mo ago
on latest, if you send a request in xml, it will save the xml content as a file on the workspace s3 and the script will get as input (body: { s3: string })
jdanielson
jdanielson3mo ago
I'm wanting to have the request sent to WM with a application/xml text/xml or application/soap+xml header. Looking to just make a rouhg-ish soap handler
Hugo
Hugo3mo ago
on latest you can now send application/xml or text/xml and get the raw string inside the raw_string argument (https://github.com/windmill-labs/windmill/pull/4915)
GitHub
feat(backend): handle xml payload as raw_string by HugoCasa · Pull ...
ImportantAdds XML payload handling as raw strings and refactors request body conversion in args.rs. Behavior: Adds support for handling application/xml and text/xml payloads as raw strings in fro...

Did you find this page helpful?