title: Auto generating wsdl using DefaultWsdl11Definition
body: <p>I have a problem with auto generating wsdl using DefaultWsdl11Definition</p>
  
  <p>ContactServiceOperations.xsd</p>
  
  <pre><code>    &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns="http://com/blog/samples/webservices/contactservice"
  xmlns:Contact="http://webservices.samples.blog.com" targetNamespace="http://com/blog/samples/webservices/Contact"
  elementFormDefault="qualified"&gt;
  &lt;xsd:import namespace="http://webservices.samples.blog.com"
      schemaLocation="Contact.xsd" /&gt;
  &lt;xsd:element name="ContactRequest"&gt;
      &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
              &lt;xsd:element name="Id" type="xsd:integer" /&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
  &lt;/xsd:element&gt;
  &lt;xsd:element name="ContactResponse"&gt;
      &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
              &lt;xsd:element name="Contact" type="Contact:Contact" /&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
  &lt;/xsd:element&gt;
  </code></pre>
  
  <p></p>
  
  <p>springapp-servlet.xml
          </p>
  
  <pre><code>&lt;mvc:annotation-driven /&gt;
  
  &lt;sws:annotation-driven /&gt;
  
  &lt;context:component-scan base-package="*" /&gt;
  
  &lt;bean id="ContactService"
      class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"&gt;
      &lt;property name="schemaCollection"&gt;
          &lt;bean
              class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection"&gt;
              &lt;property name="inline" value="true" /&gt;
              &lt;property name="xsds"&gt;
                  &lt;list&gt;
                      &lt;value&gt;/xsd/ContactServiceOperations.xsd&lt;/value&gt;
                  &lt;/list&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
      &lt;property name="portTypeName" value="ContactService" /&gt;
      &lt;property name="locationUri" value="http://localhost:8080/SpringWS/ContactService/" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;springapp&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
          org.springframework.web.servlet.DispatcherServlet
      &lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;springapp&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/jsp/*&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;classpath*:*.xml&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;
  
  &lt;servlet&gt;  
         &lt;servlet-name&gt;webservices&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;init-param&gt;  
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;  
              &lt;param-value&gt;&lt;/param-value&gt;  
         &lt;/init-param&gt;  
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
         &lt;servlet-name&gt;webservices&lt;/servlet-name&gt;
         &lt;url-pattern&gt;*.wsdl&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;  
    &lt;servlet-mapping&gt;  
         &lt;servlet-name&gt;webservices&lt;/servlet-name&gt;  
         &lt;url-pattern&gt;/ContactService/*&lt;/url-pattern&gt;  
    &lt;/servlet-mapping&gt;  
  </code></pre>
  
  <p>I can start Tomcat without errors. Then, I access to this URL:
  <code>http://localhost:8080/SpringWS/ContactService/contactService.wsdl</code>
  And browser show a blank page instead of generated wsdl.</p>
  
  <p>Maybe I have something wrong in configuration. Any idea for help me ?</p>
  
  <p>Thanks</p>