BeSimpleSoap/tests/SwaReceiverEndpoint.php

16 lines
428 B
PHP

<?php
require_once __DIR__.'/../vendor/autoload.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.'/DummyService.wsdl');
exit;
}
header('Content-type: text/xml');
echo file_get_contents(FIXTURES_DIR.'/Message/Response/dummyServiceMethodWithIncomingLargeSwa.response.message');