Jul 18th, 2011, 03:04 AM
Webservice-Client: Common approach with Spring WS, JAXB and just one WSDL file?
I would like to use Spring WS to build a Webservice-Client with JAXB for marshalling and unmarshalling the Java classes.
But what I have is just one WSDL file. When I understand it right, I can generate Java classes with JAXB (xbj.exe), which then can be used by me with Spring WS to retrieve the Webservice-Data and send an answer.
But JAXB can only generate Java classes from xsd-schema files. Must I now manually copy those xsd-definitions from within the WSDL file to generate those classes via JAXB? (in my case the WSDL file contains 4 XSD definitions).
Or is there a way to just convert the whole WSDL to Java classes which I can use with Spring WS (I know there is the "wsimport", but it is part of JAX-WS and I think I can't use it in this scenario, right?).
So what is the common approach with Spring WS / JAXB / one WSDL file?
I really would like to get startet with Spring WS and JAXB - thanks a lot for your help!
Tags for this Thread