
Untitled
By: a guest on
May 3rd, 2012 | syntax:
None | size: 0.43 KB | hits: 16 | expires: Never
Parsing HttpResponse Content
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String message = httpClient.execute(httpPost, responseHandler);
SoapResponse soapResponse = (SoapResponse)unmarshaller.unmarshal(new CharArrayReader(message.toCharArray()));
HttpResponse response = httpClient.execute(httpPost);
SoapResponse soapResponse = (SoapResponse)unmarshaller.unmarshal(response.getEntity().getContent());