public function PresentWSDL() { $Namespace = SiteRoot . constant("jf_jPath_Request_Delimiter") . "service" . constant("jf_jPath_Request_Delimiter"); $Endpoint = HttpRequest::URL(false); //SoapClients use this to send request! j::$App->LoadSystemModule("plugin.nusoap.nusoap"); $soap = new soap_server(); $soap->configureWSDL("Dispatch", $Namespace, $Endpoint); // $Namespace); $r = $this->ListFiles(dirname(__FILE__)); foreach ($r as $k => $v) { $this->Register($this->File2Class($v), $soap, $Namespace); } $soap->service(""); return true; }
<?php // define ("Permission",$Permission); header("HTTP/1.1 401 Authentication Required", false); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Not Authorized</title> </head><body> <h1>Not Authorized</h1> <p>You are not authorized to access this resource, i.e you don't have the sufficient permissions to access <b><?php echo HttpRequest::File(); ?> </b> at <b><?php echo HttpRequest::URL(); ?> </b></p> </body></html>