public function index() {
        $rep = $this->getResponse('html', true);

        $webservices = jWSDL::getSoapControllers();

        if(sizeof($webservices) != 0){
            $service = $this->param('service');

            if (empty($service)) {
                $module = $webservices[0]['module'];
                $controller = $webservices[0]['class'];
            }else{
                if(!strpos($service, '~')===FALSE){
                    list($module, $controller) =  explode('~',$service);
                }
                if (empty($module) || empty($controller)) {
                    throw new JException("jsoap~errors.service.param.invalid");
                }
            }

            //Used for documentation of data structures classes
            $className = $this->param('className');

            $wsdl = new jWSDL($module, $controller);
            $doc = $wsdl->doc($className);
            $doc['menu'] = $webservices;
            $rep->body->assign("doc", $doc);
            $rep->title = "Documentation - ".$controller;
        }else{
            $rep->title = "Documentation -  Web services";
        }
        $rep->bodyTpl = 'jsoap~soap_doc';
        return $rep;
    }
public function index() {
        $rep = $this->getResponse('html', true);

        $webservices = jWSDL::getSoapControllers();

        if(sizeof($webservices) != 0){
            $service = $this->param('service');

            if (empty($service)) {
                $module = $webservices[0]['module'];
                $controller = $webservices[0]['class'];
            }else{
                if(!strpos($service, '~')===FALSE){
                    list($module, $controller) =  explode('~',$service);
                }
                if (empty($module) || empty($controller)) {
                    throw new JException("jsoap~errors.service.param.invalid");
                }
            }

            //Used for documentation of data structures classes
            $className = $this->param('className');

            $wsdl = new jWSDL($module, $controller);
            $doc = $wsdl->doc($className);
            $doc['menu'] = $webservices;
            $rep->body->assign("doc", $doc);
            $rep->title = "Documentation - ".$controller;
        }else{
            $rep->title = "Documentation -  Web services";
        }
        $rep->bodyTpl = 'jsoap~soap_doc';
        return $rep;
    }
public function index ( ) { $ rep = $ this -> getResponse ( 'html' , true ) ; $ webservices = jWSDL :: getSoapControllers ( ) ; if ( sizeof ( $ webservices ) != 0 ) { $ service = $ this -> param ( 'service' ) ; if ( empty ( $ service ) ) { $ module = $ webservices [ 0 ] [ 'module' ] ; $ controller = $ webservices [ 0 ] [ 'class' ] ; } else { if ( ! strpos ( $ service , '~' ) === FALSE ) { list ( $ module , $ controller ) = explode ( '~' , $ service ) ; } if ( empty ( $ module ) || empty ( $ controller ) ) { throw new JException ( "jsoap~errors.service.param.invalid" ) ; } } //Used for documentation of data structures classes $ className = $ this -> param ( 'className' ) ; $ wsdl = new jWSDL ( $ module , $ controller ) ; $ doc = $ wsdl -> doc ( $ className ) ; $ doc [ 'menu' ] = $ webservices ; $ rep -> body -> assign ( "doc" , $ doc ) ; $ rep -> title = "Documentation - " . $ controller ; } else { $ rep -> title = "Documentation -  Web services" ; } $ rep -> bodyTpl = 'jsoap~soap_doc' ; return $ rep ; }
Display the web service documentation for the requested service
Display the web service documentation for the requested service