jsoap/controllers/WSDL.classic.php
public function wsdl() {

        $rep = $this->getResponse('xml');
        $rep->sendXMLHeader = FALSE;

        $service = $this->param('service');

        if (empty($service)) {
            throw new jException("jsoap~errors.service.param.required");
        }

        if(!strpos($service, '~')===FALSE){
            list($module, $controller) =  explode('~',$service);
        }
        if (empty($module) || empty($controller)) {
            throw new jException("jsoap~errors.service.param.invalid");
        }

        $wsdl = new jWSDL($module, $controller);
        $rep->content = $wsdl->getWSDLFile();

        return $rep;
    }
public function wsdl() {

        $rep = $this->getResponse('xml');
        $rep->sendXMLHeader = FALSE;

        $service = $this->param('service');

        if (empty($service)) {
            throw new jException("jsoap~errors.service.param.required");
        }

        if(!strpos($service, '~')===FALSE){
            list($module, $controller) =  explode('~',$service);
        }
        if (empty($module) || empty($controller)) {
            throw new jException("jsoap~errors.service.param.invalid");
        }

        $wsdl = new jWSDL($module, $controller);
        $rep->content = $wsdl->getWSDLFile();

        return $rep;
    }
Return the WSDL file for a soap web service