Jul 15th, 2009, 10:26 AM
hi i try to reimplement a simple airline with spring ws 1.5.6 in netbeans 6.7 i dont see the following code source classes ObjectFactory,Name,ServiceClass,Ticket,BookFlightR equest,Flight,GetFlightsRequest,
GetFlightsResponse in package org.springframework.ws.samples.airline.schema please where can i get this package thank you
Jul 15th, 2009, 11:53 AM
These classes will be generated automatically by xjc (JAXB2) when you build the project.
Jul 21st, 2009, 10:08 PM
i still not know how to do this?
Jul 25th, 2009, 09:55 AM
you can use JAXB to generate supporting classes from XSD. JAXB allows to map java classes to XML representaion. you can marshal java object to xml and unmarshal xml to java object.
you can download JAXB. And use the following
%JAXB_HOME%\bin\xjc.bat -d . -p <target-package> <path to xsd schema>
This would generate classes using the XSD and you can use them in the end points.