Generate schema from MOXY external bindings-oxm.xml file... [message #878666] |
Tue, 29 May 2012 17:28 |
Rick W Messages: 1 Registered: May 2012 |
Junior Member |
|
|
I am trying to simplify our Java model by using the bindings-oxm.xml approach allowing us to get away from having any annotations in our Java classes which we can do based from Blaise's examples but I am trying to figure out how do I now generate a schema based on the bindings-oxm.xml? I am new to JAXB/MOXy so bare with me...
For example if we have a web service method such as:
public ResponseObject someWebServiceMethod(RequestObject obj){
//...
}
I would like to have a response-bindings-oxm.xml and a request-bindings-oxm.xml and then based on these bindings files be able to generate the schemas which will be included in our WSDL definition which can then be used to create the relating Java classes such as ResponseObject.java and RequestObject.java using tools such as wsimport or clientgen.
Is this even possible? Or is there another approach I should be using to get the same results? The end goal I would like to achieve is:
1. not to have to embed any annotations in our Java classes
2. use the power of MOXy so that our Java model does not have to follow our XML model (ie. MOXy XPath, etc).
3. allow end clients to use tools such as wsimport or clientgen to generate the relating client Java classes.
Thanks,
Rick
[Updated on: Tue, 29 May 2012 17:33] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03468 seconds