Files
luos/workflow/engine/methods/services/wsdl.php
2010-12-02 23:34:41 +00:00

14 lines
485 B
PHP

<?
$filewsdl = PATH_METHODS . 'services'. PATH_SEP . 'pmos.wsdl';
$content = file_get_contents( $filewsdl );
$lang = defined ('SYS_LANG') ? SYS_LANG : 'en';
$endpoint = 'http://' .$_SERVER['SERVER_NAME'] . ':' .$_SERVER['SERVER_PORT'] .
'/sys' .SYS_SYS.'/' .$lang . '/green/services/soap';
//print $endpoint; die;
$content = str_replace ( "___SOAP_ADDRESS___", $endpoint, $content );
header("Content-Type: application/xml;");
print $content;