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 ?
how to use jaxb2 maven plugin with inline XSD?
Asked Answered
Use the wsdl
parameter in the plugin config: jaxb2-maven-plugin
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
Here is the Maven plugin to work with WSDL files:
© 2022 - 2024 — McMap. All rights reserved.
spring-ws
for you; that you are working in that environment is an important fact that you should have mentioned to start with. – Guinea