SoapHeader
PHP Manual

SoapHeader::SoapHeader

(PHP 5 >= 5.0.1)

SoapHeader::SoapHeaderسازنده SoapHeader

Description

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

سازنده شی جدید SoapHeader object.

Parameters

namespace

فضای نام سرایند جز SOAP header.

name

نام شی SoapHeader.

data

محتوای سرایند SOAP. مقدار PHP یا شی SoapVar.

mustUnderstand

مقدار ویژگی mustUnderstand جز سرایند SOAP.

actor

مقدار ویژگی actor جز سرایند SOAP.

Examples

Example #1 مثال SoapHeader::SoapHeader()

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

See Also


SoapHeader
PHP Manual