Hi Jason, Thanks for the response, but this does not appear to work for me, at least not in CXF 2.7.6. I set this property but the WSDL still includes every single jaxb class within the types section in the WSDL even though my service doens't even reference them at all.
*Aaron Titus* Senior Software Engineer F.W. Davison & Company, Inc. 508-747-7261 x245 ati...@fwdco.com On Fri, Oct 11, 2013 at 7:13 PM, Jason Pell <ja...@pellcorp.com> wrote: > There is a parameter you can define to prevent this very thing. > > <jaxws:properties> > <entry key="jaxb.scanPackages" value="false" /> > </jaxws:properties> > > See here for an example: > > > https://github.com/pellcorp/cxf/blob/master/JavaFirst/src/main/resources/META-INF/scanPackagesContext.xml > > Sent from my Android phone > On 12/10/2013 1:25 AM, "Aaron Titus" <ati...@fwdco.com> wrote: > > > I am using CXF 2.7.6 and deploying bottom-up web service, using jax-ws > > annotated classes. I have a half a dozen web services, with 1 to 6 > > operations each. I noticed that when viewing the WSDL for any one of the > > services, that it always includes the type definitions for EVERY entity > > class in the package, even the ones which are never referenced by the > > specific service. > > > > Is there any option to prevent this? In my situation it makes the WSDL > very > > large, and it also adds confusion to the developers who are the consumers > > of the service -- most of them will be inexperienced with web services. > > > > Thanks, > > Aaron > > >