code: public WebServiceTemplateBuilder setWebServiceMessageFactory(
  			WebServiceMessageFactory messageFactory) {
  		Assert.notNull(messageFactory, "MessageFactory must not be null");
  		return new WebServiceTemplateBuilder(this.detectHttpMessageSender,
  				this.interceptors, this.internalCustomizers, this.customizers,
  				this.messageSenders, this.marshaller, this.unmarshaller,
  				this.destinationProvider, this.transformerFactoryClass, messageFactory);
  	}
docs: Sets the {@link WebServiceMessageFactory} to use for creating messages.
  @param messageFactory the message factory to use for creating messages
  @return a new builder instance.
  @see WebServiceTemplate#setMessageFactory(WebServiceMessageFactory)