how to use jaxb2 maven plugin with inline XSD?
Asked Answered
N

2

2

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 ?

Nolen answered 14/1, 2013 at 9:12 Comment(1)
I 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.Guinea
V
4

Use the wsdl parameter in the plugin config: jaxb2-maven-plugin

Vellavelleity answered 14/1, 2013 at 11:41 Comment(3)
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 ?Nolen
Yes, your approach is also fine.Vellavelleity
Works like a charm. One just needs to include <wsdl>true</wsdl> into the config - compare also https://mcmap.net/q/297698/-generate-classes-with-jaxb2-maven-plugin-from-wsdl .Permittivity
C
2

Here is the Maven plugin to work with WSDL files:

http://jax-ws-commons.java.net/jaxws-maven-plugin/

Caius answered 14/1, 2013 at 9:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.