code: protected void setRequestBody(
              HttpInvokerClientConfiguration config, PostMethod postMethod, ByteArrayOutputStream baos)
              throws IOException {
  
          postMethod.setRequestEntity(new ByteArrayRequestEntity(baos.toByteArray(), getContentType()));
      }
docs: Set the given serialized remote invocation as request body.
  <p>The default implementation simply sets the serialized invocation as the
  PostMethod's request body. This can be overridden, for example, to write a
  specific encoding and to potentially set appropriate HTTP request headers.
  @param config the HTTP invoker configuration that specifies the target service
  @param postMethod the PostMethod to set the request body on
  @param baos the ByteArrayOutputStream that contains the serialized
  RemoteInvocation object
  @throws IOException if thrown by I/O methods
  @see org.apache.commons.httpclient.methods.PostMethod#setRequestBody(java.io.InputStream)
  @see org.apache.commons.httpclient.methods.PostMethod#setRequestEntity
  @see org.apache.commons.httpclient.methods.InputStreamRequestEntity