Hello, i'm trying to Post the content of an xml fi...
# integrations
t
Hello, i'm trying to Post the content of an xml file to a restlet and create the xml file in the file cabinet but i receive an unexpected error. When I put plain text, it's working. Any tips on how to share XML with restlets ? thanks a lot
u
you could just pass it as plaintext version of the XML doc and use XML module to parse the text and transform it to XML document
s
Restlets can only accept two kinds of content type
plain text or JSON
you can, of course, accept plain text and then handle it however you want inside the restlet
t
ok great thanks