mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352231 c90b9560-bf6c-de11-be94-00142212c4b1
125 lines
3.5 KiB
XML
125 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 40d440e3fd0ce3418c42375129a1f363ba623833 Maintainer: dams Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id="soapclient.setsoapheaders" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>SoapClient::__setSoapHeaders</refname>
|
|
<refpurpose>Ajoute un en-tête SOAP pour les requêtes suivantes</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier> <type>bool</type><methodname>SoapClient::__setSoapHeaders</methodname>
|
|
<methodparam choice="opt"><type class="union"><type>SoapHeader</type><type>array</type><type>null</type></type><parameter>headers</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Définit un en-tête à utiliser dans les requêtes SOAP.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Cette méthode va remplacer la valeur précédente.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>headers</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
L'en-tête à configurer. Il peut être un objet
|
|
<classname>SoapHeader</classname> ou un tableau d'objetcs
|
|
<classname>SoapHeader</classname>. Si ce paramètre n'est pas
|
|
spécifié ou défini à &null;, les en-têtes seront supprimés.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>SoapClient::__setSoapHeaders</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
|
|
'uri' => "http://test-uri/"));
|
|
$header = new SoapHeader('http://soapinterop.org/echoheader/',
|
|
'echoMeStringRequest',
|
|
'hello world');
|
|
|
|
$client->__setSoapHeaders($header);
|
|
|
|
$client->__soapCall("echoVoid", null);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Configuration d'en-têtes multiples pour SOAP</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
|
|
'uri' => "http://test-uri/"));
|
|
$headers = array();
|
|
|
|
$headers[] = new SoapHeader('http://soapinterop.org/echoheader/',
|
|
'echoMeStringRequest',
|
|
'hello world');
|
|
|
|
$headers[] = new SoapHeader('http://soapinterop.org/echoheader/',
|
|
'echoMeStringRequest',
|
|
'hello world again');
|
|
|
|
$client->__setSoapHeaders($headers);
|
|
|
|
$client->__soapCall("echoVoid", null);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|