// Use getDefinition() so that we have the advantages of the memory features.
Definition def = getServiceDescriptionImpl().getWSDLWrapper().getDefinition();
WSDL11ToAxisServiceBuilder serviceBuilder =
new WSDL11ToAxisServiceBuilder(def,
getServiceDescription().getServiceQName(),
getPortQName().getLocalPart());
if (log.isDebugEnabled()) {
log.debug("Building AxisService from wsdl: " + getServiceDescriptionImpl().getWSDLWrapper().getWSDLLocation());
log.debug("Build Axis Service from WSDL ");
log.debug(" Service QName =" + getServiceDescription().getServiceQName());
log.debug(" Port QName = " + getPortQName());
log.debug(" WSDL = " + def.toString());
}
ClassLoader classLoader;
if (composite.isServiceProvider()) {
classLoader = composite.getClassLoader();
} else {
classLoader = getContextClassLoader(null);
}
JAXWSCatalogManager catalogManager = getServiceDescriptionImpl().getCatalogManager();
CatalogURIResolver uriResolver = new CatalogURIResolver(catalogManager, classLoader);
serviceBuilder.setCustomResolver(uriResolver);
if (getServiceDescriptionImpl().isServerSide())
serviceBuilder.setServerSide(true);
else
serviceBuilder.setServerSide(false);
// Associate the AxisConfiguration with the ServiceBuilder if it
// is available. This is done so that the serviceBuilder can
// use the appropriate WSDL wrapper memory parameters.
AxisConfiguration ac = null;
if (composite.getConfigurationContext() != null) {
ac = composite.getConfigurationContext().getAxisConfiguration();
if (ac != null) {
serviceBuilder.useAxisConfiguration(ac);
}
}
// Create and populate the AxisService
axisService = serviceBuilder.populateService();
// If an AxisConfiguration was not available,
// default to using a memory efficient wrapper
if (ac == null) {
Parameter wsdlWrapperParam =