Документация PHP


SoapClient->__soapCall()

SoapHeader->__construct()

SOAP

PHP Manual


SoapFault->__construct()

(No version information available, might be only in CVS)

SoapFault->__construct() — SoapFault constructor

Описание

SoapFault

__construct ( string $faultcode , string $faultstring [, string $faultactor [, mixed $detail [, string $faultname [, SoapHeader $headerfault ]]]] )

This class is useful when you would like to send SOAP fault responses from the PHP handler. faultcode , faultstring , faultactor and details are standard elements of SOAP Fault;

Список параметров

faultcode

The error code of the SoapFault.

faultstring

The error message of the SoapFault.

faultactor

A string identifying the actor that caused the error.

detail

faultname

Can be used to select the proper fault encoding from WSDL.

headerfault

Can be used during SOAP header handling to report an error in the response header.

Примеры

Пример #1 Some examples

<?php
function test($x)
{
    return new 
SoapFault("Server""Some error message");
}

$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction("test");
$server->handle();
?>

It is possible to use PHP exception mechanism to throw SOAP Fault.

Пример #2 Some examples

<?php
function test($x)
{
    throw new 
SoapFault("Server""Some error message");
}

$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction("test");
$server->handle();
?>

Смотрите также


SoapClient->__soapCall()

SoapHeader->__construct()

SOAP

PHP Manual

SAPE все усложнил?

MainLink - простая и прибыльная продажа ссылок!

Последние поступления:

Размещена 10 августа 2020 года

Я по ТВ видел, что через 10 лет мы будем жить лучше, чем в Германии...
Я не понял, что это они с Германией сделать хотят?!

читать далее…

ТехЗадание на Землю

Размещена 14 марта 2018 года

Пpоект Genesis (из коpпоpативной пеpеписки)

читать далее…

Шпаргалка по работе с Vim

Размещена 05 декабря 2017 года

Vim довольно мощный редактор, но работа с ним не всегда наглядна.
Например если нужно отредактировать какой-то файл например при помощи crontab, без знания специфики работы с viv никак.

читать далее…

Ошибка: Error: Cannot find a valid baseurl for repo

Размещена 13 сентабря 2017 года

Если возникает ошибка на centos 5 вида
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/

читать далее…

Linux Optimization

Размещена 30 июля 2012 года

Prelink

читать далее…