Hello Ashish,
> How do i get this seralized object data using HttpClient, i need to get this
> Object passed from the servlet,
> My Code is as below
> HttpClient client = new HttpClient();
> PostMethod postMethod = new PostMethod(url);
>
> NameValuePair[] data = {
> new NameValuePair("as400Name", as400Name),
> new NameValuePair("envName", envName),
> new NameValuePair("fileName", fileName)
> };
>
> postMethod.setRequestBody(data);
>
> postMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
>
> new DefaultHttpMethodRetryHandler(3, false));
> int statusCode = client.executeMethod(postMethod);
>
> if (statusCode != HttpStatus.SC_OK) {
> System.err.println("Method failed: " +
> postMethod.getStatusLine());
> }
>
> // Read the response body.
> byte[] responseBody = postMethod.getResponseBody();
>
>
I presume you are using HttpClient in your applet?
In that case did you try using ObjectInputStream here?
ObjectInputStream ois = new
ObjectInputStream(postMethod.getResponseBodyAsStream());
Regards,
Bindul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]