Sep 7th, 2010, 03:42 PM
WSDL creation in Spring Web Services
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.
Sep 7th, 2010, 04:04 PM
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.