-
Sep 7th, 2010, 03:42 PM
#1
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.
-
Sep 7th, 2010, 04:04 PM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules