private function dumpWSDL($uri, $service_class) { require_once 'common/soap/SOAP_NusoapWSDL.class.php'; $wsdlGen = new SOAP_NusoapWSDL($service_class, 'TuleapStatisticsAPI', $uri); $wsdlGen->dumpWSDL(); }
* * Tuleap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Tuleap; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once 'pre.php'; require_once 'common/svn/SVN_SOAPServer.class.php'; // Check if we the server is in secure mode or not. if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' || $GLOBALS['sys_force_ssl'] == 1) { $protocol = "https"; } else { $protocol = "http"; } $uri = $protocol . '://' . $GLOBALS['sys_default_domain'] . '/soap/svn'; $serviceClass = 'SVN_SOAPServer'; if ($request->exist('wsdl')) { require_once 'common/soap/SOAP_NusoapWSDL.class.php'; $wsdlGen = new SOAP_NusoapWSDL($serviceClass, 'TuleapSubversionAPI', $uri); $wsdlGen->dumpWSDL(); } else { $soap_request_validator = new SOAP_RequestValidator(ProjectManager::instance(), UserManager::instance()); $svn_repository_listing = new SVN_RepositoryListing(new SVN_PermissionsManager(), new SVN_Svnlook(), UserManager::instance()); $server = new TuleapSOAPServer($uri . '/?wsdl', array('cache_wsdl' => WSDL_CACHE_NONE)); $server->setClass($serviceClass, $soap_request_validator, $svn_repository_listing); $server->handle(); }