RE: Behavior when no media type specified

2011-07-28 Thread Dennis Welu
Doh! I think I found the answer thread: http://restlet-discuss.1400322.n2.nabble.com/automated-conversion-from-java-object-to-json-td3584962.html Sorry for adding noise to the discussion board... -- http://restlet.tigris.org/ds/viewMessage.do?d

Behavior when no media type specified

2011-07-26 Thread Dennis Welu
In the tutorial here: http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html#dsy303-restlet_jse The last section talks about how if the Contact class is not available you can still retrieve a JSON representation using this: cr.get(MediaType.APPLICATION_JSON).wri

RE: Re: Re: Length Required (411) - Length required

2011-07-25 Thread Dennis Welu
Got it! The answer was in the Restlet 2.1 docs in the Android client part code: http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html The workaround applies to JSE too. Here is the one-line "workaround": // Workaround for GAE servers to prevent chunk encodin

RE: Re: Re: Length Required (411) - Length required

2011-07-23 Thread Dennis Welu
Tried returning a couple different things, no change. It seems the description in this thread is similar to what I'm seeing: http://stackoverflow.com/questions/6462142/length-required-411-length-required-in-a-restlet-client But there is no clear answer in that thread. I tried reviewing the jar's

RE: Re: Length Required (411) - Length required

2011-07-22 Thread Dennis Welu
Thanks, Tim! That worked for the second problem. I just created PlayerList extending List instead. Still looking for other excellent ideas on the main problem..dead ended on that one right now. -- http://restlet.tigris.org/ds/viewMessage.d

Length Required (411) - Length required

2011-07-21 Thread Dennis Welu
I'm getting a ResourceException with message of "Length Required (411) - Length required". Running JSE client against GAE server project. I was running 2.0.8 but have updated to 2.1m5 and still the same results. I have a Get and Put working on a different resource, but on this resource the Post