if (wsdlDefinitions == null)
throw new WSException("Cannot generate WSDL definitions");
// Debug the generated wsdl
StringWriter sw = new StringWriter();
new WSDLWriter(wsdlDefinitions).write(sw, Constants.DEFAULT_XML_CHARSET);
if(log.isDebugEnabled()) log.debug("Generated WSDL:\n" + sw.toString());
// Debug the generated mapping file
String jaxrpcMappingStr = null;
if (javaWsdlMapping != null)