public static SOAPMessage createSOAPMessage(InputStream is,String charset) throws SOAPException, IOException {
  MimeHeaders mimeHeaders=new MimeHeaders();
  mimeHeaders.addHeader("Content-type",contentTypeWithCharset(TEXT_XML,charset));
  return MESSAGE_FACTORY.createMessage(mimeHeaders,is);
}

public static SOAPMessage createSOAPMessage ( InputStream is , String charset ) throws SOAPException , IOException { MimeHeaders mimeHeaders = new MimeHeaders ( ) ; mimeHeaders . addHeader ( "Content-type" , contentTypeWithCharset ( TEXT_XML , charset ) ) ; return MESSAGE_FACTORY . createMessage ( mimeHeaders , is ) ; }
creates a new soapmessage object .
