Commit fb5143c9 authored by GiorgosK's avatar GiorgosK

Add mock Soap Server

parent ca858f58
<?php
class TicketSoapServer
{
public function IssueNewTicket($xml)
{
$result = [];
$IssueNewTicketResult = [
"ResultCode" => "0",
"TranTicket" => "123",
"Timestamp" => time(),
"MinutesToExpiration" => 15,
];
return ["IssueNewTicketResult" => $IssueNewTicketResult];
}
}
$options= array('uri'=>'http://localhost:8008/ticket.php');
$server=new SoapServer(NULL,$options);
$server->setClass('TicketSoapServer');
$server->handle();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment