Php/docs/soapheader.soapheader

提供:Dev Guides
< Php
移動先:案内検索

SoapHeader::SoapHeader

(PHP 5, PHP 7)

SoapHeader::SoapHeaderSoapHeader コンストラクタ


説明

SoapHeader::SoapHeader ( string $namespace , string $name [, mixed $data [, bool $mustunderstand = false [, string $actor ]]] )

新規 SoapHeader オブジェクトを生成します。


パラメータ

namespace
SOAP ヘッダ要素の名前空間
name
SOAP ヘッダ要素の名前
data
SOAP ヘッダの内容。PHP の値もしくは SoapVar オブジェクトです。
mustUnderstand
SOAP ヘッダ要素の mustUnderstand 属性の値
actor
SOAP ヘッダ要素の actor 属性の値


例1 SoapHeader::SoapHeader() の例

<?php$client = new SoapClient(null, array('location' => "http://localhost/soap.php%22,                                     'uri'      => "http://test-uri/%22));$client->__soapCall("echoVoid", null, null,                new SoapHeader('http://soapinterop.org/echoheader/',                               'echoMeStringRequest',                               'hello world'));?>

参考