Hello stack,
you can you use either DomRepresentation [1] or SAXRepresentation [2]
according to your preference with the following code (sample of POST
request) :
Client client = new Client(Protocol.HTTP);
Response response = client.post("http://localhost:80/essai/", <your
representation>);
System.out.println(response.getStatus());
best regards,
Thierry Boileau
[1] :
http://www.restlet.org/documentation/1.0/api/org/restlet/resource/DomRepresentation.html
[2] :
http://www.restlet.org/documentation/1.0/api/org/restlet/resource/SaxRepresentation.html
On 11/5/07, stack leet <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> After reading the restlet tutorial and I'm convinced that Restlets are the way
> to go for a project I am working on. In essence I want to create a web
> service
> which stores and retrieves XML documents. My question is, I know how to
> create
> a client which can request a document from this webservice, but how do I go
> about sending a byte[] representation of an XML document (or a Set of XML
> documents) to the server?
>