Hi,
I am new to Restlet and restful webservices. I want to pass a String(XML
format) into request and invoke the Restful webservices.
Below code is working for normal call.
import java.io.IOException;
import org.restlet.Client;
import org.restlet.data.Protocol;
public class SimpleClient {
public static void main(String [] args) throws IOException {
String uri =
"http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=YahooDemo&query=finances&format=pdf"
;
Client client = new Client(Protocol.HTTP);
client.get(uri).getEntity().write(System.out);
}
}
But i need to pass String as XML format into requset. How to do that?
Thanks in advance.
Regards,
Murugesan
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434575