I think the "-compile" option will do that for you with wsdl2java: http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html
Glen Am Freitag, den 11.04.2008, 09:17 -0700 schrieb [EMAIL PROTECTED]: > It is generated by the wsdl2java tool. I managed to get the source to > compile by manually building it but I thought that the wsdl2java tool > should have been able to do that as well. > > Chris Mathrusse > [EMAIL PROTECTED] > Sybase, Inc > One Sybase Drive > Dublin, CA 94568 > (925) 236-5553 > > > > "jim ma" <[EMAIL PROTECTED]> > 04/09/2008 06:41 PM > Please respond to > [email protected] > > > To > [email protected] > cc > > Subject > Re: wsdl2Java compiler error w/customer binding > > > > > > > org.w3._2001.xmlschema.Adapter1 is generated by wsdl2java tool or wrote by > yourself ? > > Jim > > On Thu, Apr 10, 2008 at 6:24 AM, <[EMAIL PROTECTED]> wrote: > > > I've followed the documentation pertaining to a customer binding for > > wsdl2java. Specifically, replacing the XMLGregorianCalendar with > > java.util.Date. > > > > The command I'm using is as follows: > > ./wsdl2java.bat -d s:\\cxf-client\\src -compile -client -b > > quoteBrokerBinding.ml > > http://cmathrusxp:8080/QuoteService_r1.6/services/QuoteBroker?wsdl > > > > My binding file is as follows: > > <jaxws:bindings > > wsdlLocation=" > > http://cmathrusxp:8080/QuoteService_r1.6/services/QuoteBroker?wsdl" > > xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" > > xmlns:xs="http://www.w3.org/2001/XMLSchema" > > xmlns:jxb="http://java.sun.com/xml/ns/jaxb" > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> > > <jaxws:bindings > > > > > node="wsdl:definitions/wsdl:types/xs:[EMAIL > PROTECTED]'http://quoting.it.sybase.com' > > ]"> > > <jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb" > > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > <jxb:javaType name="java.util.Date" xmlType="xs:dateTime" > > parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime" > > > printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/> > > </jxb:globalBindings> > > </jaxws:bindings> > > </jaxws:bindings> > > > > > > And when I run the wsdl2java command I get the following error: > > s:\cxf-client\src\com\sybase\it\quoting\QuoteLineitemDTO.java:10: > package > > org.w3._2001.xmlschema does not exist > > import org.w3._2001.xmlschema.Adapter1; > > > > > > I've looked at the generated source and there is an Adapter1.java file > > located in S:\cxf-client\src\org\w3\_2001\xmlschema > > > > So things appear to be genereating but the error seems to be coming from > > the -compile option. Is there something I need to do to get past this or > > should I simply manually build? > > > > Thanks... > > > > Chris Mathrusse > > [EMAIL PROTECTED] > > Sybase, Inc > > One Sybase Drive > > Dublin, CA 94568 > > (925) 236-5553 >
