title: Spring WebserviceTemplate not being registered
body: <p>I am getting an error which i am not able to figure out what it is for related to Spring WebserviceTemplate.</p>
  
  <p>here is the Class definition: (Interesting part is if i Remove the @Service annotation, it works fine.)</p>
  
  <pre><code>@Service
  public class PTSWebServicesClientStubImpl implements PTSWebServicesStub
  {
      @Autowired
      @Qualifier("PTS")
      private WebServiceTemplate ptsWebServiceTemplate;
   .....//
   }
  </code></pre>
  
  <p>here is the xml configuration:</p>
  
  <pre><code>&lt;bean id="ptsWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate"&gt;
      &lt;qualifier value="PTS" /&gt;
      &lt;constructor-arg ref="messageFactory" /&gt;
      &lt;property name="marshaller" ref="ptsJaxbMarshaller" /&gt;
      &lt;property name="unmarshaller" ref="ptsJaxbMarshaller" /&gt;
      &lt;property name="interceptors"&gt;
          &lt;list&gt;
              &lt;ref bean="loggingInterceptor" /&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>When i try to deploy this or call it from Junit test, i get the below error: </p>
  
  <pre><code>  Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.springframework.ws.client.core.WebServiceTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=PTS)}
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
     ... 100 more
  </code></pre>