BeSimpleSoap/tests/SwaEndpoint.php

14 lines
418 B
PHP
Raw Normal View History

2018-02-06 00:31:06 +01:00
<?php
const FIXTURES_DIR = __DIR__.'/Fixtures';
const CACHE_DIR = __DIR__.'/../cache';
if (isset($_GET['wsdl'])) {
header('Content-type: text/xml');
echo file_get_contents(FIXTURES_DIR.'/Message/Response/soapCallWithSwaAttachmentsOnResponse.wsdl');
exit;
}
header('Content-type: text/xml');
echo file_get_contents(FIXTURES_DIR.'/Message/Response/soapCallWithSwaAttachmentsOnResponse.response.message');