<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ru="ru.umc">
<soap:Header/>
<soap:Body>
<ru:GetSchedule>
<ru:StartDate>2017-03-01T00:00:00</ru:StartDate>
<ru:FinishDate>2017-03-30T00:00:00</ru:FinishDate>
</ru:GetSchedule>
</soap:Body>
</soap:Envelope>
require_once ("connection.php");
$id=$_POST['id_header'];
if($id=="")
{
$error=true;
echo(json_encode(array('error' => "true")));
}
function headDelete(result,ajax_form,url){
$.ajax({
url: url,
type: "POST",
dataType: "html",
data: $("#header_form").serialize(),
success: function(response){
if (response.error=="true") {
$('#result').addClass('alert alert-danger');
$('#result').html("Поле не заполнено");
}
else
{
$('#result').addClass('alert alert-success');
$('#result').html("Данные удалены успешно");
}
}
});
}