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

15 lines
534 B
PHP
Raw Normal View History

<?php
2017-02-21 15:46:11 -04:00
$filewsdl = PATH_METHODS . 'services' . PATH_SEP . 'pmos2.wsdl';
$content = file_get_contents($filewsdl);
2017-02-21 15:46:11 -04:00
$http = G::is_https() ? 'https' : 'http';
$port = $_SERVER['SERVER_PORT'] === '80' ? '' : ':' . $_SERVER['SERVER_PORT'];
$lang = defined('SYS_LANG') ? SYS_LANG : 'en';
$endpoint = $http . '://' . $_SERVER['SERVER_NAME'] . $port . '/sys' . SYS_SYS . '/' . $lang . '/neoclassic/services/soap2';
2017-02-21 15:46:11 -04:00
$content = str_replace("___SOAP_ADDRESS___", $endpoint, $content);
2017-02-21 15:46:11 -04:00
header("Content-Type: application/xml;");
print $content;