title: Spring Web Service - Unable to find WSDL
body: <p>I have created Spring Web service and deployed in the Weblogic service . I got below logs:</p>
  
  <pre><code>Jun 19, 2014 9:21:29 PM org.springframework.web.context.ContextLoader initWebApplicationContext
  INFO: Root WebApplicationContext: initialization started
  Jun 19, 2014 9:21:30 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
  INFO: Refreshing Root WebApplicationContext: startup date [Thu Jun 19 21:21:30 IST 2014]; root of context hierarchy
  Jun 19, 2014 9:21:31 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
  INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b14dd4: defining beans []; root of factory hierarchy
  Jun 19, 2014 9:21:31 PM org.springframework.web.context.ContextLoader initWebApplicationContext
  INFO: Root WebApplicationContext: initialization completed in 2041 ms
  Jun 19, 2014 9:21:32 PM org.springframework.ws.transport.http.MessageDispatcherServlet initServletBean
  INFO: FrameworkServlet 'test-ws': initialization started
  Jun 19, 2014 9:21:32 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
  INFO: Refreshing WebApplicationContext for namespace 'test-ws-servlet': startup date [Thu Jun 19 21:21:32 IST 2014]; parent: Root WebApplicationContext
  Jun 19, 2014 9:21:32 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/test-ws-servlet.xml]
  Jun 19, 2014 9:21:32 PM org.springframework.ws.soap.addressing.server.AnnotationActionEndpointMapping afterPropertiesSet
  INFO: Supporting [WS-Addressing August 2004, WS-Addressing 1.0]
  Jun 19, 2014 9:21:32 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
  INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@213f529: defining beans [org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping#0,org.springframework.ws.soap.server.endpoint.mapping.SoapActionAnnotationMethodEndpointMapping#0,org.springframework.ws.soap.addressing.server.AnnotationActionEndpointMapping#0,org.springframework.ws.server.endpoint.adapter.method.dom.DomPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.SourcePayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.jaxb.XmlRootElementPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.method.jaxb.JaxbElementPayloadMethodProcessor#0,org.springframework.ws.server.endpoint.adapter.DefaultMethodEndpointAdapter#0,org.springframework.ws.soap.server.endpoint.SoapFaultAnnotationExceptionResolver#0,org.springframework.ws.soap.server.endpoint.SimpleSoapExceptionResolver#0,getCptSkuDetailsWebService,getSkuDetailsWebService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,skuDetails,skuDetailsSchema,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@3b14dd4
  Jun 19, 2014 9:21:33 PM org.springframework.ws.soap.saaj.SaajSoapMessageFactory afterPropertiesSet
  INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
  Jun 19, 2014 9:21:33 PM org.springframework.ws.transport.http.MessageDispatcherServlet initServletBean
  INFO: FrameworkServlet 'test-ws': initialization completed in 1167 ms
  </code></pre>
  
  <p>But when I try to hit the URL cant able to find the WSDL saying 404 .</p>
  
  <p>Please find the web.xml</p>
  
  <pre><code> &lt;servlet&gt;
      &lt;servlet-name&gt;test-ws&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.ws.transport.http.MessageDispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;transformWsdlLocations&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;test-ws&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;test-ws&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.wsdl&lt;/url-pattern&gt;
     &lt;/servlet-mapping&gt;
  
    &lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;&lt;/param-value&gt;
  &lt;/context-param&gt;
  
    &lt;listener&gt;
       &lt;listener-class&gt;
           org.springframework.web.context.ContextLoaderListener
        &lt;/listener-class&gt;
      &lt;/listener&gt;
  </code></pre>
  
  <p>Please find the test-ws-servlet.xml file</p>
  
  <pre><code>  &lt;bean id="testDetails"
      class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"&gt;
      &lt;property name="schema" ref="testDetailsSchema" /&gt;
      &lt;property name="portTypeName" value="GetTestServicePortType" /&gt;
      &lt;property name="locationUri" value="/testDetailsService/" /&gt;
    &lt;/bean&gt;
  
    &lt;bean id="testDetailsSchema" class="org.springframework.xml.xsd.SimpleXsdSchema"&gt;
      &lt;property name="xsd" value="/schemas/TestDetails.xsd" /&gt;
    &lt;/bean&gt;
  </code></pre>
  
  <p>URL i used is : </p>
  
  <pre><code>http://localhost:7001/&lt;projectName&gt;/&lt;locationUri&gt;/&lt;beanid&gt;.wsdl
  </code></pre>
  
  <p>Please help me in this case. I can understand from logs that WSDL has been generated, if my understanding is wrong please help in that.
  Also please help me in finding the WSDL. Is the URL I am using to access the WSDL is correct ? </p>