code: public void printXML(HttpServletRequest req, PrintWriter out)
      {
          ServletTask task = (ServletTask)this.getTask();
          Map<String,Object> properties = task.getRequestProperties(task.getServletRequest(), true);
          
          CreateWSDL wsdl = null;
          if ("2.0".equalsIgnoreCase(this.getProperty(WSDL_VERSION)))
              wsdl = new CreateWSDL20(task, null, properties);    // Default
          else    // 1.1 Is the default for now
              wsdl = new CreateWSDL11(task, null, properties);
          Object data = wsdl.createMarshallableObject();
          String xml = wsdl.getXML(data);
          out.println(xml);
          wsdl.free();
      }
docs: PrintXML Method.