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
クリスピポテト
05/11/2020, 3:21 PM
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
scottvonduhn
05/11/2020, 3:36 PM
Restlets can only accept two kinds of content type
scottvonduhn
05/11/2020, 3:36 PM
plain text or JSON
scottvonduhn
05/11/2020, 3:36 PM
you can, of course, accept plain text and then handle it however you want inside the restlet