code: private HttpPost buildSoapRequest( String action, String innerXml )
      {
          HttpPost httpPost = new HttpPost( BASE_URL );
          httpPost.setHeader( "soapaction", action );
          httpPost.setHeader( "Content-Type", "text/xml; charset=utf-8" );
  
          final StringBuilder soap = new StringBuilder();
          soap.append( SOAP_HEADER );
          soap.append( "<" ).append( action ).append( ">" );
          soap.append( innerXml );
          soap.append( "</" ).append( action ).append( ">" );
          soap.append( SOAP_FOOTER );
  
          HttpEntity entity;
  
          try {
              entity = new StringEntity( soap.toString(), PcsUtils.UTF8.name() );
          } catch ( UnsupportedEncodingException e ) {
              throw new CStorageException( e.getMessage(), e );
          }
  
          httpPost.setEntity( entity );
  
          return httpPost;
      }
docs: Builds a SOAP request (NB: part of the CloudMe API is REST-based).
  
  @param action
  @param innerXml
  @return HttpPost