Announcement Announcement Module
Collapse
No announcement yet.
automatic wsdl generation and jaxb Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • automatic wsdl generation and jaxb

    hi all,

    i have a question:
    1-Suppose i have multiple xsd which don't have no relationship between them, and i want to automatically generate a wsdl for every xsd in the same MessageDispatcherServlet, is that possible?

  • #2
    Hi,

    Yes that is entirely possible, the solution depends on the detail of what you actually want.

    If you want a WSDL for each XSD you need multiple WSDLDefinitions.

    If you want all of the messages from all of the XSDs in a single WSDL you can use a the SchemaCollection property on the WSDLDefinition

    Code:
    <bean id="schemaCollection" class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
        <property name="xsds">
          <list>
            <value>classpath:/schema1.xsd</value>
            <value>classpath:/schema2.xsd</value>
            <value>classpath:/schema3.xsd</value>
          </list>
        </property>
        <property name="inline" value="true" />
      </bean>
    HTH

    Ric

    Comment

    Working...
    X