SOAP SoapHeader::__construct
(PHP 5, PHP 7, PHP 8)
SoapHeader::__construct — SoapHeader constructor
설명
SoapHeader::__construct( string $namespace, string $name, mixed $data = ?, bool $mustunderstand = ?, string $actor = ? )
새로운 SoapHeader 객체를 구축합니다.
매개변수
namespace
- SOAP 헤더 요소의 네임스페이스입니다.
name
- SoapHeader 개체의 이름입니다.
data
- SOAP 헤더의 내용입니다. PHP 값 또는 SoapVar 객체일 수 있습니다.
mustUnderstand
- SOAP 헤더 요소의
mustUnderstand
속성 값입니다. actor
- SOAP 헤더 요소의
actor
속성 값입니다.
Examples
예제 #1 SoapHeader::__construct() 예제
<?php
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/"));
$client->__soapCall("echoVoid", null, null,
new SoapHeader('http://soapinterop.org/echoheader/',
'echoMeStringRequest',
'hello world'));
?>
기타
- SoapClient::__soapCall() - SOAP 함수를 호출합니다.
- SoapVar::__construct() - SoapVar 생성자
- SoapParam::__construct() - SoapParam 생성자
- SoapServer::addSoapHeader() - 응답에 SOAP 헤더 추가