I am trying to generate marshalling and unmarshalling objects using maven jaxb2 plugin. But I dont have the .xsd file for the .wsdl. the schema definition is inline. Please let me know how to proceed ?
Asked
Active
Viewed 3,580 times
2
-
1I tagged the question with `spring-ws` for you; that you are working in that environment is an important fact that you should have mentioned to start with. – Donal Fellows Jan 14 '13 at 09:44
2 Answers
4
Use the wsdl
parameter in the plugin config: jaxb2-maven-plugin

Efthymis
- 1,326
- 11
- 13

artbristol
- 32,010
- 5
- 70
- 103
-
I am using the maven-jaxb2-plugin from sun. But can we just extract the xsd from the wsdl and generate? I tried it and working fine. But need to know if its a good way to do ? – gnreddy Jan 15 '13 at 05:48
-
-
1Works like a charm. One just needs to include
true into the config - compare also http://stackoverflow.com/a/15903250/21499 . – Dr. Hans-Peter Störr Aug 15 '13 at 15:20