Files
luos/workflow/engine/methods/services/wsdl2.php

14 lines
460 B
PHP

<?php
$filewsdl = PATH_METHODS . 'services' . PATH_SEP . 'pmos2.wsdl';
$content = file_get_contents($filewsdl);
$http = G::is_https() ? 'https' : 'http';
$lang = defined('SYS_LANG') ? SYS_LANG : 'en';
$endpoint = $http . '://' . $_SERVER['HTTP_HOST'] . '/sys' . config("system.workspace") . '/' . $lang . '/lurana/services/soap2';
$content = str_replace("___SOAP_ADDRESS___", $endpoint, $content);
header("Content-Type: application/xml;");
print $content;