2011-12-22 16:56:22 -04:00
|
|
|
<?php
|
2012-10-17 14:21:55 -04:00
|
|
|
$filewsdl = PATH_METHODS . 'services' . PATH_SEP . 'pmos2.wsdl';
|
|
|
|
|
$content = file_get_contents( $filewsdl );
|
|
|
|
|
$lang = defined( 'SYS_LANG' ) ? SYS_LANG : 'en';
|
|
|
|
|
|
|
|
|
|
$http = (isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
|
|
|
|
|
$endpoint = $http . '://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . '/sys' . SYS_SYS . '/' . $lang . '/classic/services/soap2';
|
|
|
|
|
|
|
|
|
|
$content = str_replace( "___SOAP_ADDRESS___", $endpoint, $content );
|
|
|
|
|
|
|
|
|
|
header( "Content-Type: application/xml;" );
|
|
|
|
|
|
|
|
|
|
print $content;
|
|
|
|
|
|