public function doc($className=""){

        if($className != ""){
            if(!class_exists($className,false)){
                throw new jException('jelix~errors.ad.controller.class.unknown', array('WSDL generation', $className, $this->_ctrlpath));
            }
            $classObject = new IPReflectionClass($className);
        }else{
            $classObject = new IPReflectionClass($this->controllerClassName);
        }

        $documentation = Array();
        $documentation['menu'] = Array();

        if($classObject){
            $classObject->properties = $classObject->getProperties(false, false, false);
            $classObject->methods = $classObject->getMethods(false, false, false);
            foreach((array)$classObject->methods as $method) {
                $method->params = $method->getParameters();
            }

            $documentation['class'] = $classObject;
            $documentation['service'] = $this->module.'~'.$this->controller;
        }
        return $documentation;
    }