bImplemented = http.isGetImplemented();
if (channel.getBindingCount() > 0 &&
GENERATE_WSDL_QUERY.equalsIgnoreCase(m_request.getQueryString()))
{
SchemaExporter exporter = null;
MessageTable msgTable = channel.getMessageTable();
if (msgTable != null)
{
Format format = msgTable.getFormat();
if (format != null)
{
Class exporterClass = format.getExporter();
if (exporterClass != null)
{
Object obj = m_context.getClassInstance(exporterClass);
if (obj instanceof SchemaExporter)
{
exporter = (SchemaExporter)obj;
}
}
}
}
if (exporter != null)
{
Writer writer;
m_response.setStatus(HttpServletResponse.SC_OK);
m_response.setContentType("text/xml; charset=UTF-8");
writer = m_response.getWriter();
exporter.exportSchema(channel, getRoot() + "/", writer);
writer.close();
return;
}
}
}