Announcement Announcement Module
Collapse
No announcement yet.
WSDL creation in Spring Web Services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • WSDL creation in Spring Web Services

    Hello All,
    Currently I have an XSD which has the *Request and *Response tags and Spring WS automatically exposes this XSD as my WSDL. I use the jaxb2-maven-plugin to create the POJOs for me which help in marshalling/unmarshalling my request/response.

    I want to move away from this XSD model. Nor do I want to hand write my own WSDL.

    Can Spring WS just read the POJOs (I can create the JAXB POJOs by hand) and create a WSDL? I think JAX-WS does this.

    In other words, I want to know if Spring WS can read a folder containing JAXB POJOs (with all the necessary JAXB annotations) and create an XSD out of it and subsequently expose the WSDL created from this XSD?

    Any replies appreciated.

    Thanks.

  • #2
    To answer my own question, it looks like I can use jaxb-schemagen:generate maven goal to generate the schema from the JAXB POJO. After I generate the schema, Spring WS will expose my schema as WSDL.

    Thanks.

    Comment

    Working...
    X