Forum und email

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"nullnull,
                new 
SoapHeader('https://soapinterop.org/echoheader/',
                               
'echoMeStringRequest',
                               
'hello world'));
?>