try {
OutputStreamMessageContext octx = client.createOutputStreamContext(new GenericMessageContext());
client.finalPrepareOutputStreamContext(octx);
octx.getOutputStream().write(outBytes);
octx.getOutputStream().close();
InputStreamMessageContext ictx = client.invoke(octx);
byte bytes[] = new byte[10000];
int len = ictx.getInputStream().read(bytes);
if (len != -1
&& new String(bytes, 0, len).indexOf("HTTP Status 503") == -1
&& new String(bytes, 0, len).indexOf("Error 404") == -1) {