Thanks for the quick response.
I do get text in the response, more client code:

if (response.getStatus().isSuccess()) {
    if (response.isEntityAvailable()) {
        println "Retrieved entity:"
        response.getEntity().write(System.out)
    }
}

Which gives me the posted entity, in my client output:

    Retrieved entity:
    <map id="3">...</map>

I'm using Mule as my container, and the following relevant jars are in my 
client has the following jars (maybe I'm missing one, silly because there are 
no errors but you never know):

        com.noelios.restlet:com.noelios.restlet:jar:1.0.8
    com.noelios.restlet:com.noelios.restlet.ext.httpclient:jar:1.0.8
    commons-codec:commons-codec:jar:1.3
    commons-httpclient:commons-httpclient:jar:3.1
    org.restlet:org.restlet:jar:1.0.8

In my container, I have mule-restlet-transport-1.0-M3 and Mule 2.0.2, the 
client example in the user guide was not working for me at all quite frankly, 
so I decided to simplify things and follow the Restlet client example.

Just noticed now the user guide was updated, and new version of the transport 
is out 1.1.2 for Mule 2.1.0.  I could try it out if this might be a 
container/server issue...

http://mule.mulesource.org/display/RESTLET/User%27s+Guide







________________________________
From: Rob Heittman <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, November 12, 2008 8:54:31 AM
Subject: Re: [restlet] Receiving generic OK Response in Client

Is there any actual text in the response?  The only time I have seen
this in the past is where some versions of Tomcat will send a generic
200 response if a zero length or empty entity is submitted.  This may
or may not be relevant.  Which connector are you using?

On Wed, Nov 12, 2008 at 8:40 AM, John Prystash <[EMAIL PROTECTED]> wrote:
> I always get the following output from the client.  OK is always the status
> regardless of what I set as the code in my post() method.  The Resource does
> get posted/persisted during the request.
>
>     Response received.
>     Status: OK (200)
>     Successful: true



      

Reply via email to