I guess I'm confused. The default for both JAXWS and JAXB IS to map the package name into a namespace. Thus, that's exactly what it should be doing.
Dan On Thursday 31 January 2008, Chiang Seng Chang wrote: > Hi, > > I am developing using the Java first approach (using jaxb data > binding), and the wsdl is auto generated by the cxf servlet at > http://localhost/SomeService?wsdl > > Short of annotating each class with > @XmlType(namespace="http://x.y.z"), is there a setting which inform > the servlet to use the source java classes' package names as the > targetNamespaces when generating the wsdl? > > Thank you. > > -c > > p.s. Using java package names as targetNamespaces seems to be the > default behavior when using aegis data binding. > > p.p.s. I have tried the @XmlSchema in package-info.java approach, but > it was not picked-up by the servlet (probably only works using > java2wsdl). -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
