title: Webservice-Client: Common approach with Spring WS, JAXB and just one WSDL file?
body: <p>I would like to use Spring WS to build a Webservice-Client with JAXB for marshalling and unmarshalling the Java classes.</p>
  
  <p>But what I have is just one WSDL file. When I understand it right, I can generate Java classes with JAXB (xjc.exe), which then can be used by me with Spring WS to retrieve the Webservice-Data and send an answer.</p>
  
  <p>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).</p>
  
  <p>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?).</p>
  
  <p>So what is the common approach with Spring WS / JAXB / one WSDL file?</p>
  
  <p>I really would like to get startet with Spring WS and JAXB - thanks a lot for your help!</p>