Unable to use Http put method to send data to an URL
<p>I unable to use put method to send data to particular link.. Please find below the code.Let me know if i have to make any change</p>

<pre><code>public class test {
    private static String url = "http://semldvw0728.google.net/.svc/web/testrequests/";
    private static String urlconnection;

    public static void main(String[] args) throws IOException {

    StringBuffer xmlString = new StringBuffer();

    xmlString.append("&lt;TestRequest&gt;");
    xmlString.append("&lt;DateRequested&gt;2011-12-20&lt;/DateRequested&gt;");
    xmlString.append("&lt;DemCapID&gt;893467&lt;/DemCapID&gt;");
    xmlString.append("&lt;DemCapVersion&gt;1&lt;/DemCapVersion&gt;");
    xmlString.append("&lt;IBIS_ID&gt;13530&lt;/IBIS_ID&gt;");
    xmlString.append("&lt;ProjectName&gt;LTS&lt;/ProjectName&gt;");
    xmlString.append("&lt;RequestedBy&gt;ktmq331&lt;/RequestedBy&gt;");
    xmlString.append("&lt;SampleNumber&gt;SN1033645061&lt;/SampleNumber&gt;");
    xmlString.append("&lt;Status&gt;Sample Ordered&lt;/Status&gt;");
    xmlString.append("&lt;/TestRequest&gt;");

    System.out.println("xmlString :" + xmlString.toString());
    url = url + 893467;
    System.out.println("URL : " + url);

    try {
        System.out.println("URL : " + url);
        HttpClient client = new HttpClient();
        PutMethod putMethod = new PutMethod(url);
        client.setConnectionTimeout(8000);
        putMethod.setRequestBody(xmlString.toString());
        System.out.println("statusLine&gt;&gt;&gt;" + putMethod.getStatusLine());
        System.out.println("statusLine&gt;&gt;&gt;"+           putMethod.getResponseBodyAsString());
        putMethod.releaseConnection();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
</code></pre>
