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 ) ; } }
Sets the request parameters for a request .