SoapHeader->__construct()
(No version information available, might be only in CVS)
SoapHeader->__construct() — SoapHeader コンストラクタ
説明
SoapHeader
__construct
( string $namespace
, string $name
[, mixed $data
[, bool $mustUnderstand
[, mixed $actor
]]] )
新規 SoapHeader オブジェクトを生成します。
パラメータ
- namespace
-
SOAP ヘッダ要素の名前空間
- name
-
SOAP ヘッダ要素の名前
- data
-
SOAP ヘッダの内容。PHP の値もしくは SoapVar オブジェクトです。
- mustUnderstand
-
SOAP ヘッダ要素の mustUnderstand 属性の値
- actor
-
SOAP ヘッダ要素の actor 属性の値
例
Example#1 いくつかの例
<?php
$client = new SoapClient(null, array('location' => "https://localhost/soap.php",
'uri' => "https://test-uri/"));
$client->__soapCall("echoVoid", null, null,
new SoapHeader('https://soapinterop.org/echoheader/',
'echoMeStringRequest',
'hello world'));
?>