title: Fail to consume SOAP WS with Spring-WS in Spring boot but works from SOAPUI
body: <p>I'm using Spring Boot to consume a SOAP WS which I generate from a WSDL. I added the spring-ws-security so I can pass the user/password as security header as shown in the configuration:</p>
  <pre><code>@Configuration
  public class ClientConfig {
  
      public static final String SIEBEL_ENDPOINT = &quot;http://...&quot;;
  
      @Bean
      public CustomerClient customerClient() {
          CustomerClient client = new CustomerClient();
          client.setDefaultUri(SIEBEL_ENDPOINT);
          client.setWebServiceTemplate(webServiceTemplate(marshaller()));
          return client;
      }
  
      @Bean
      public WebServiceTemplate webServiceTemplate(Jaxb2Marshaller marshaller) {
          WebServiceTemplate template = new WebServiceTemplate(marshaller, marshaller);
          template.setDefaultUri(SIEBEL_ENDPOINT);
          ClientInterceptor[] interceptors = new ClientInterceptor[] {new LogHttpHeaderClientInterceptor(), wsSecurityInterceptor()};
          template.setInterceptors(interceptors);
          return template;
      }
  
      @Bean
      public Jaxb2Marshaller marshaller() {
          Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
          marshaller.setContextPath(&quot;com.test.dms.gen&quot;);
          return marshaller;
      }
  
      @Bean
      public Wss4jSecurityInterceptor wsSecurityInterceptor() {
          Wss4jSecurityInterceptor wss4jSecurityInterceptor = new Wss4jSecurityInterceptor();
          wss4jSecurityInterceptor.setSecurementActions(WSHandlerConstants.USERNAME_TOKEN);
          wss4jSecurityInterceptor.setSecurementPasswordType(WSConstants.PW_TEXT);
          wss4jSecurityInterceptor.setSecurementUsername(&quot;rf_USER&quot;);
          wss4jSecurityInterceptor.setSecurementPassword(&quot;rf_USER&quot;);
          return wss4jSecurityInterceptor;
      }
  
  }
  </code></pre>
  <p>And the service call:</p>
  <pre><code>public class CustomerClient extends WebServiceGatewaySupport {
   
      public CustomerInfoOutput getCustomerInfo(String vin) {
          ObjectFactory request = new ObjectFactory();
          final CustomerInfoInput custInfoInput = request.createCustomerInfoInput();
          custInfoInput.setVINNumber(vin);
  
  
          return (CustomerInfoOutput) getWebServiceTemplate().marshalSendAndReceive(ClientConfig.SIEBEL_ENDPOINT, custInfoInput);
      }
  }
  </code></pre>
  <p>everything is well generated, and this logged output:</p>
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
  &lt;SOAP-ENV:Header&gt;
      &lt;wsse:Security xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;
                     xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;
                     SOAP-ENV:mustUnderstand=&quot;1&quot;&gt;
          &lt;wsse:UsernameToken wsu:Id=&quot;UsernameToken-e8f183db-44db-4c0b-90d9-ca57e89225fd&quot;&gt;
              &lt;wsse:Username&gt;rf_USER&lt;/wsse:Username&gt;
              &lt;wsse:Password Type=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText&quot;&gt;rf_USER&lt;/wsse:Password&gt;
          &lt;/wsse:UsernameToken&gt;
      &lt;/wsse:Security&gt;
  &lt;/SOAP-ENV:Header&gt;
  &lt;SOAP-ENV:Body&gt;
      &lt;ns3:CustomerInfo_Input xmlns:ns2=&quot;http://siebel.com/testdashboard&quot;
                              xmlns:ns3=&quot;http://test.com/rf/customerinfo&quot; xmlns:ns4=&quot;http://test.com/rf&quot;
                              xmlns:ns5=&quot;http://www.siebel.com/xml/IBM%20test%20Dashboard&quot;&gt;
          &lt;ns3:VINNumber&gt;123456789&lt;/ns3:VINNumber&gt;
      &lt;/ns3:CustomerInfo_Input&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  <p>When I send this request using SOAP UI, it works perfectly. But when it's sent using the generated objects from the WSDL, I have this error:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;SOAP-ENV:Envelope
          xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;SOAP-ENV:Fault&gt;
              &lt;faultcode&gt;SOAP-ENV:Server&lt;/faultcode&gt;
              &lt;faultstring&gt;There is no active Web Service with operation named
                  'http://test.com/rf/customerinfo:CustomerInfo_Input'.(SBL-EAI-04313)
              &lt;/faultstring&gt;
              &lt;detail&gt;
                  &lt;siebelf:siebdetail xmlns:siebelf=&quot;http://www.siebel.com/ws/fault&quot;&gt;
                      &lt;siebelf:logfilename&gt;EAIObjMgr_enu_0023_24117286.log&lt;/siebelf:logfilename&gt;
                      &lt;siebelf:errorstack&gt;
                          &lt;siebelf:error&gt;
                              &lt;siebelf:errorcode&gt;SBL-EAI-04313&lt;/siebelf:errorcode&gt;
                              &lt;siebelf:errorsymbol&gt;IDS_EAI_WS_OP_NOT_FOUND&lt;/siebelf:errorsymbol&gt;
                              &lt;siebelf:errormsg&gt;There is no active Web Service with operation named
                                  'http://test.com/rf/customerinfo:CustomerInfo_Input'.(SBL-EAI-04313)
                              &lt;/siebelf:errormsg&gt;
                          &lt;/siebelf:error&gt;
                      &lt;/siebelf:errorstack&gt;
                  &lt;/siebelf:siebdetail&gt;
              &lt;/detail&gt;
          &lt;/SOAP-ENV:Fault&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  <p>Any ideas please?</p>
  <p>PS: please don't focus on URIs because I changed them, but the generated request works fine in SOAPUI.</p>