code: protected void setSOAPRequestObjects(SOAPMessageContext context,
                                           List<SOAPElement> params) {
          // Extract the SOAP Message
          SOAPMessage message = context.getMessage();
  
          // Get the envelope body
          SOAPBody body;
          try {
              body = message.getSOAPBody();
          } catch (SOAPException e) {
              throw CXFUtility.getFault(e);
          }
  
          try {
              body.removeContents();
              for (SOAPElement p : params) {
                  body.addChildElement(p);
              }
          } catch (Exception e) {
              logger.error("Problem changing SOAP message contents", e);
              throw CXFUtility.getFault(e);
          }
      }
docs: Sets the request parameters for a request.
  
  @param context
  the message context
  @param params
  list of parameters to set in order
  @throws SoapFault