this.httpClient.executeMethod(hostConfig, postMethod);
if(postMethod.getStatusCode() == HttpStatus.SC_OK){
InputStream in = postMethod.getResponseBodyAsStream();
if(in == null){
throw new AxisFault("Input Stream can not be Null");
}
msgContext.getOperationContext().setProperty(MessageContext.TRANSPORT_IN,in);
}else if(postMethod.getStatusCode() == HttpStatus.SC_ACCEPTED){
return;
}else{
throw new AxisFault("Error "+ postMethod.getStatusCode() + " Error Message is "+postMethod.getResponseBodyAsString());
}
} catch (MalformedURLException e) {
throw new AxisFault(e);
} catch (HttpException e) {
throw new AxisFault(e);
} catch (IOException e) {
throw new AxisFault(e);
}
}