Mysterious message in client

2009-06-25 Thread Rick
Hi, I've written the client for my web serv ice program. This client is also in Java. Whenever I invoke the client through my shell script, it gives me the following message: [code] [mybox:/var/]$ ./validate.sh Jun 24, 2009 9:49:55 PM com.noelios.restlet.http.StreamClientHelper start IN

RE: Re: Good or Bad - MediaType Condition APPLICATION_WWW_FORM

2009-05-06 Thread Rick
Hi Thierry, Ok. I kinda agree with you regarding adding this condition of mediatype. But my next question is which mediatype should be used. I know we can use either "text/xml" or "application/x-www-f​orm-urlencoded". I'll really appreciate if you can provide everyone details about whi

Good or Bad - MediaType Condition APPLICATION_WWW_FORM

2009-05-05 Thread Rick
Hi, I'm using Restle 1.1.4. In acceptRepresentation method, I would like to know when do we need to add the below condition? if (entity.getMediaType().equals(MediaType.APPLICATION_WWW_FORM, true)) { Basically, I know that if we add this condition, then the client needs to set the content typ

How to invoke acceptRepresent in GET

2009-04-22 Thread Rick
Hi, I'm fetchin the input from form in accpetRepresent method & then processing the details from database & then sending the repsonse back in XML. This is the POST implementation. Now I want to do the same stuff for GET operation as well. How can I do it without replicating this code whi

How to return XML response in acceptRepresent?

2009-04-21 Thread Rick
Hi, My form has 2 fields which I'm submitting through POST request, say first name & last name. Now, as a reposnse back, I need to get the XML response in some format say 101 niles rd 589-423-4344 How do I get this XML? I mean where to prepare this XML? I'll be fetching input p

What is allowPost & allowPut?

2009-04-18 Thread Rick
Hi, I'm new to Restlet & I was going through tutorials & found that POST uses "acceptRepresentation" method, PUT uses "storerepresentation", etc. But then at one place in the examples folder, I found that the code is having allowPost & allowPut methods & it does not have any such accep

RE: How to Fetch Request XML in Java Restlet

2009-04-09 Thread Rick
Hi Jerome, Thanks for the reply. I looked at the below URL already but still I'm not clear & couldn't find it. Can you please be more specific & tell me which Java file & which method are you referring to exactly? What I'm really looking for is something like the below request XML would be

How to Fetch Request XML in Java Restlet

2009-04-08 Thread Rick
Hi, I'm trying to use java restlet. I'll be getting the input in the XML format & I need to store the data in database & return back the response back in XML format. Does any one have sample code which accepts input in XML & then stores in DB & returns response in XML? How to fetch t