SoapHeader::__construct

(PHP 5, PHP 7, PHP 8)

SoapHeader::__construct — Constructeur SoapHeader

Description

public function SoapHeader::__construct(
string $namespace,
string $name,
mixed $data = ?,
bool $mustunderstand = ?,
string $actor = ?
)

Construit un nouvel objet SoapHeader .

Liste de paramètres

namespace

le namespace de l'élément d'en-tête SOAP.

name

Le nom de l'élément d'en-tête SOAP.

data

Un contenu de l'en-tête SOAP. Il peut être une valeur PHP ou un objet SoapVar .

mustUnderstand

Valeur de l'attribut mustUnderstand de l'élément d'en-tête SOAP.

actor

Valeur de l'attribut actor de l'élément d'en-tête SOAP.

Exemples

Exemple #1 Exemple avec 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'));
?>

Voir aussi

Found A Problem?

Learn How To Improve This Page • Submit a Pull Request • Report a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /