cvs: phpdoc-fr /reference/soap/functions soap-soapparam-construct.xml soap-soapserver-addfunction.xml soap-soapserver-construct.xml
soap-soapserver-fault.xml soap-soapserver-getfunctions.xml soap-soapserver-handle.xml soap-soapserver-setclass.xml soap-soapserver-setpersistence.xml
soap-soapvar-construct.xml use-soap-error-handler.xml
| From: | Yannick Torres | Date: | Sat, 15 Jan 2005 11:02:25 +0000 |
| Subject: | cvs: phpdoc-fr /reference/soap/functions soap-soapparam-construct.xml soap-soapserver-addfunction.xml soap-soapserver-construct.xml soap-soapserver-fault.xml soap-soapserver-getfunctions.xml soap-soapserver-handle.xml soap-soapserver-setclass.xml soap-soapserver-setpersistence.xml soap-soapvar-construct.xml use-soap-error-handler.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3817@lists.php.net to get a copy of this message | ||
yannick Sat Jan 15 06:02:25 2005 EDT
Added files:
/phpdoc-fr/reference/soap/functions soap-soapparam-construct.xml
soap-soapserver-addfunction.xml
soap-soapserver-construct.xml
soap-soapserver-fault.xml
soap-soapserver-getfunctions.xml
soap-soapserver-handle.xml
soap-soapserver-setclass.xml
soap-soapserver-setpersistence.xml
soap-soapvar-construct.xml
use-soap-error-handler.xml
Log:
initial translation
http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapparam-construct.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapparam-construct.xml +++ phpdoc-fr/reference/soap/functions/soap-soapparam-construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapparam-construct"> <refnamediv> <refname>SoapParam->__construct()</refname> <refpurpose> Constructeur SoapParam </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapParam</classname></ooclass> <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>mixed</type><parameter>data</parameter></methodparam> <methodparam><type>string</type><parameter>name</parameter></methodparam> </constructorsynopsis> </classsynopsis> <para> Construit un nouvel objet <classname>SoapParam</classname>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>data</parameter></term> <listitem> <para> Les données à passer ou à retourner. Vous pouvez passer ce paramètre directement en tant qu'une valeur &php;, mais dans ce cas, il sera nommé <literal>paramN</literal> et le service SOAP ne le comprendra pas. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>name</parameter></term> <listitem> <para> Le nom du paramètre. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $client = new SoapClient(null,array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $client->SomeFunction(new SoapParam($a, "a"), new SoapParam($b, "b"), new SoapParam($c, "c")); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapclient-call" /></member> <member><xref linkend="function.soap-soapvar-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-addfunction.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-addfunction.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-addfunction.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-addfunction"> <refnamediv> <refname>SoapServer->addFunction()</refname> <refpurpose> Ajoute une ou plusieurs fonctions qui vont gérer les requêtes SOAP </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>addFunction</methodname> <methodparam><type>mixed</type><parameter>functions</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Exporte un ou plusieurs fonctions pour les clients distants. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>functions</parameter></term> <listitem> <para> Pour exporter une fonction, passez le nom de la fonction dans ce paramètre en tant que chaîne de caractères. </para> <para> Pour exporter plusieurs fonctions, passez un tableau de noms de fonctions. </para> <para> Pour exporter toutes les fonctions, passez la constante spéciale <constant>SOAP_FUNCTIONS_ALL</constant>. </para> <note> <para> <parameter>functions</parameter> doit recevoir tous les arguments d'entrées dans le même ordre que celui définit dans le fichier WSDL (il ne doit recevoir aucun paramètres de sorties en tant qu'arguments) et retourne une ou plusieurs valeurs. Pour retourner plusieurs valeurs, il doit retourner un tableau contenant le nom des paramètres de sorties. </para> </note> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php function echoString($inputString) { return $inputString; } $server->addFunction("echoString"); function echoTwoStrings($inputString1, $inputString2) { return array("outputString1" => $inputString1, "outputString2" => $inputString2); } $server->addFunction(array("echoString", "echoTwoStrings")); $server->addFunction(SOAP_FUNCTIONS_ALL); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-setclass" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-construct.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-construct.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-construct"> <refnamediv> <refname>SoapServer->__construct()</refname> <refpurpose> Constructeur SoapServer </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>mixed</type><parameter>wsdl</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> </constructorsynopsis> </classsynopsis> <para> Ce constructeur autorise la création des objets <classname>SoapServer</classname> en mode WSDL ou non-WSDL. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>wsdl</parameter></term> <listitem> <para> Si vous voulez le mode WSDL, vous devez définir l'URI du fichier WSDL dans ce paramètre. Dans les autres cituations, vous devez définir ce paramètre à &null; et définir l'option <literal>uri</literal>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>options</parameter></term> <listitem> <para> Permet de définir une version SOAP par défaut (<literal>soap_version</literal>) et un URI acteur (<literal>actor</literal>). </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $server = new SoapServer("some.wsdl"); $server = new SoapServer("some.wsdl", array('soap_version' => SOAP_1_2)); $server = new SoapServer("some.wsdl", array('actor' => "http://example.org/ts-tests/C")); $server = new SoapServer(null, array('uri' => "http://test-uri/")); ?> ]]> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-fault.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-fault.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-fault.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-fault"> <refnamediv> <refname>SoapServer->fault()</refname> <refpurpose></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>fault</methodname> <methodparam><type>string</type><parameter>code</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>actor</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>details</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> </classsynopsis> &warn.undocumented.func; </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapfault-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-getfunctions.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-getfunctions.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-getfunctions.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-getfunctions"> <refnamediv> <refname>SoapServer->getFunctions()</refname> <refpurpose> Retourne la liste des fonctions définies </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <type>array</type> <methodname>getFunctions</methodname> <void /> </methodsynopsis> </classsynopsis> <para> Cette méthode retourne la liste de toutes les fonctions ajoutées par <xref linkend="function.soap-soapserver-addfunction" /> ou <xref linkend="function.soap-soapserver-setclass" />. </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> La liste de toutes les fonctions. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $server = new SoapServer(NULL, array("uri" => "http://test-uri")); $server->addFunction(SOAP_FUNCTIONS_ALL); if ($_SERVER["REQUEST_METHOD"] == "POST") { $server->handle(); } else { echo "Ce serveur SOAP peut gérer les fonctions suivantes : "; $functions = $server->getFunctions(); foreach($functions as $func) { echo $func . "\n"; } } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-addfunction" /></member> <member><xref linkend="function.soap-soapserver-setclass" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-handle.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-handle.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-handle.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-handle"> <refnamediv> <refname>SoapServer->handle()</refname> <refpurpose> Gère une requête SOAP </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>handle</methodname> <methodparam choice="opt"><type>string</type><parameter>soap_request</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Effectue une requête SOAP, appelle les fonctions nécessaire et envoie une réponse en retour. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>soap_request</parameter></term> <listitem> <para> La requête SOAP. Si cet argument est omis, la requête est supposée être dans la variable &php; <varname>$HTTP_RAW_POST_DATA</varname>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php function test($x) { return $x; } $server = new SoapServer(null, array('uri' => "http://test-uri/")); $server->addFunction("test"); $server->handle(); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-setclass.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-setclass.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-setclass.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-setclass"> <refnamediv> <refname>SoapServer->setClass()</refname> <refpurpose> Définie la classe qui gère les requêtes SOAP </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>setClass</methodname> <methodparam><type>string</type><parameter>class_name</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>args</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Exporte toutes les méthodes depuis une classe spécifiée. </para> <para> Cet objet peut être rendu persistent pour une session donnée &php; en utilisant la méthode <xref linkend='function.soap-soapserver-setpersistence' />. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>class_name</parameter></term> <listitem> <para> Le nom de la classe exportée. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>args</parameter></term> <listitem> <para> Ce paramètre optionnel sera passé au constructeur de la classe par défaut durant la création de l'objet. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php class foo { function foo() { } } $server->setClass("foo"); class bar { function bar($x, $y) { } } $server->setClass("bar", $arg1, $arg2); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-addfunction" /></member> <member><xref linkend="function.soap-soapserver-setpersistence" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-setpersistence.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-setpersistence.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-setpersistence.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-setpersistence"> <refnamediv> <refname>SoapServer->setPersistence()</refname> <refpurpose> Définie le mode persistent de SoapServer </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>setPersistence</methodname> <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Cette fonction permet de sauvegarder les données entre les requêtes dans une session &php;. Celà ne fonctionne qu'avec un serveur qui exporte les fonctions depuis une classe avec <xref linkend='function.soap-soapserver-setclass' />. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>mode</parameter></term> <listitem> <para> Une des constantes <literal>SOAP_PERSISTENCE_XXX</literal>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->setPersistence(SOAP_PERSISTENCE_REQUEST); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-setclass" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapvar-construct.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapvar-construct.xml +++ phpdoc-fr/reference/soap/functions/soap-soapvar-construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapvar-construct"> <refnamediv> <refname>SoapVar->__construct()</refname> <refpurpose> Constructeur SoapVar </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapVar</classname></ooclass> <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>mixed</type><parameter>data</parameter></methodparam> <methodparam><type>int</type><parameter>encoding</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>type_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>type_namespace</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>node_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>node_namespace</parameter></methodparam> </constructorsynopsis> </classsynopsis> <para> Construit un nouvel objet <classname>SoapVar</classname>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>data</parameter></term> <listitem> <para> Les données à passer ou à retourner. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>encoding</parameter></term> <listitem> <para> L'ID d'encodage, une des constantes <literal>XSD_...</literal>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>type_name</parameter></term> <listitem> <para> Le nom du type. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>type_namespace</parameter></term> <listitem> <para> Le type de l'espace de noms. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>node_name</parameter></term> <listitem> <para> Le nom du noeud XML. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>node_namespace</parameter></term> <listitem> <para> L'espace de noms du noeud XML. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php class SOAPStruct { function SOAPStruct($s, $i, $f) { $this->varString = $s; $this->varInt = $i; $this->varFloat = $f; } } $client = new SoapClient(null, array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $struct = new SOAPStruct('arg', 34, 325.325); $soapstruct = new SoapVar($struct, SOAP_ENC_OBJECT, "SOAPStruct", "http://soapinterop.org/xsd"); $client->echoStruct(new SoapParam($soapstruct, "inputStruct")); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapclient-call" /></member> <member><xref linkend="function.soap-soapparam-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/use-soap-error-handler.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/use-soap-error-handler.xml +++ phpdoc-fr/reference/soap/functions/use-soap-error-handler.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.use-soap-error-handler"> <refnamediv> <refname>use_soap_error_handler()</refname> <refpurpose></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <void /><methodname>use_soap_error_handler</methodname> <methodparam><type>bool</type><parameter>handler</parameter></methodparam> </methodsynopsis> &warn.undocumented.func; </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:"../../../../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 -->
http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapparam-construct.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapparam-construct.xml +++ phpdoc-fr/reference/soap/functions/soap-soapparam-construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapparam-construct"> <refnamediv> <refname>SoapParam->__construct()</refname> <refpurpose> Constructeur SoapParam </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapParam</classname></ooclass> <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>mixed</type><parameter>data</parameter></methodparam> <methodparam><type>string</type><parameter>name</parameter></methodparam> </constructorsynopsis> </classsynopsis> <para> Construit un nouvel objet <classname>SoapParam</classname>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>data</parameter></term> <listitem> <para> Les données à passer ou à retourner. Vous pouvez passer ce paramètre directement en tant qu'une valeur &php;, mais dans ce cas, il sera nommé <literal>paramN</literal> et le service SOAP ne le comprendra pas. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>name</parameter></term> <listitem> <para> Le nom du paramètre. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $client = new SoapClient(null,array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $client->SomeFunction(new SoapParam($a, "a"), new SoapParam($b, "b"), new SoapParam($c, "c")); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapclient-call" /></member> <member><xref linkend="function.soap-soapvar-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-addfunction.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-addfunction.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-addfunction.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-addfunction"> <refnamediv> <refname>SoapServer->addFunction()</refname> <refpurpose> Ajoute une ou plusieurs fonctions qui vont gérer les requêtes SOAP </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>addFunction</methodname> <methodparam><type>mixed</type><parameter>functions</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Exporte un ou plusieurs fonctions pour les clients distants. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>functions</parameter></term> <listitem> <para> Pour exporter une fonction, passez le nom de la fonction dans ce paramètre en tant que chaîne de caractères. </para> <para> Pour exporter plusieurs fonctions, passez un tableau de noms de fonctions. </para> <para> Pour exporter toutes les fonctions, passez la constante spéciale <constant>SOAP_FUNCTIONS_ALL</constant>. </para> <note> <para> <parameter>functions</parameter> doit recevoir tous les arguments d'entrées dans le même ordre que celui définit dans le fichier WSDL (il ne doit recevoir aucun paramètres de sorties en tant qu'arguments) et retourne une ou plusieurs valeurs. Pour retourner plusieurs valeurs, il doit retourner un tableau contenant le nom des paramètres de sorties. </para> </note> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php function echoString($inputString) { return $inputString; } $server->addFunction("echoString"); function echoTwoStrings($inputString1, $inputString2) { return array("outputString1" => $inputString1, "outputString2" => $inputString2); } $server->addFunction(array("echoString", "echoTwoStrings")); $server->addFunction(SOAP_FUNCTIONS_ALL); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-setclass" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-construct.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-construct.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-construct"> <refnamediv> <refname>SoapServer->__construct()</refname> <refpurpose> Constructeur SoapServer </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>mixed</type><parameter>wsdl</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> </constructorsynopsis> </classsynopsis> <para> Ce constructeur autorise la création des objets <classname>SoapServer</classname> en mode WSDL ou non-WSDL. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>wsdl</parameter></term> <listitem> <para> Si vous voulez le mode WSDL, vous devez définir l'URI du fichier WSDL dans ce paramètre. Dans les autres cituations, vous devez définir ce paramètre à &null; et définir l'option <literal>uri</literal>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>options</parameter></term> <listitem> <para> Permet de définir une version SOAP par défaut (<literal>soap_version</literal>) et un URI acteur (<literal>actor</literal>). </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $server = new SoapServer("some.wsdl"); $server = new SoapServer("some.wsdl", array('soap_version' => SOAP_1_2)); $server = new SoapServer("some.wsdl", array('actor' => "http://example.org/ts-tests/C")); $server = new SoapServer(null, array('uri' => "http://test-uri/")); ?> ]]> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-fault.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-fault.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-fault.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-fault"> <refnamediv> <refname>SoapServer->fault()</refname> <refpurpose></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>fault</methodname> <methodparam><type>string</type><parameter>code</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>actor</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>details</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> </classsynopsis> &warn.undocumented.func; </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapfault-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-getfunctions.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-getfunctions.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-getfunctions.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-getfunctions"> <refnamediv> <refname>SoapServer->getFunctions()</refname> <refpurpose> Retourne la liste des fonctions définies </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <type>array</type> <methodname>getFunctions</methodname> <void /> </methodsynopsis> </classsynopsis> <para> Cette méthode retourne la liste de toutes les fonctions ajoutées par <xref linkend="function.soap-soapserver-addfunction" /> ou <xref linkend="function.soap-soapserver-setclass" />. </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> La liste de toutes les fonctions. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $server = new SoapServer(NULL, array("uri" => "http://test-uri")); $server->addFunction(SOAP_FUNCTIONS_ALL); if ($_SERVER["REQUEST_METHOD"] == "POST") { $server->handle(); } else { echo "Ce serveur SOAP peut gérer les fonctions suivantes : "; $functions = $server->getFunctions(); foreach($functions as $func) { echo $func . "\n"; } } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-addfunction" /></member> <member><xref linkend="function.soap-soapserver-setclass" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-handle.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-handle.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-handle.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-handle"> <refnamediv> <refname>SoapServer->handle()</refname> <refpurpose> Gère une requête SOAP </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>handle</methodname> <methodparam choice="opt"><type>string</type><parameter>soap_request</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Effectue une requête SOAP, appelle les fonctions nécessaire et envoie une réponse en retour. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>soap_request</parameter></term> <listitem> <para> La requête SOAP. Si cet argument est omis, la requête est supposée être dans la variable &php; <varname>$HTTP_RAW_POST_DATA</varname>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php function test($x) { return $x; } $server = new SoapServer(null, array('uri' => "http://test-uri/")); $server->addFunction("test"); $server->handle(); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-setclass.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-setclass.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-setclass.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-setclass"> <refnamediv> <refname>SoapServer->setClass()</refname> <refpurpose> Définie la classe qui gère les requêtes SOAP </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>setClass</methodname> <methodparam><type>string</type><parameter>class_name</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>args</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Exporte toutes les méthodes depuis une classe spécifiée. </para> <para> Cet objet peut être rendu persistent pour une session donnée &php; en utilisant la méthode <xref linkend='function.soap-soapserver-setpersistence' />. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>class_name</parameter></term> <listitem> <para> Le nom de la classe exportée. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>args</parameter></term> <listitem> <para> Ce paramètre optionnel sera passé au constructeur de la classe par défaut durant la création de l'objet. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php class foo { function foo() { } } $server->setClass("foo"); class bar { function bar($x, $y) { } } $server->setClass("bar", $arg1, $arg2); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-addfunction" /></member> <member><xref linkend="function.soap-soapserver-setpersistence" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapserver-setpersistence.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapserver-setpersistence.xml +++ phpdoc-fr/reference/soap/functions/soap-soapserver-setpersistence.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapserver-setpersistence"> <refnamediv> <refname>SoapServer->setPersistence()</refname> <refpurpose> Définie le mode persistent de SoapServer </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapServer</classname></ooclass> <methodsynopsis> <void/> <methodname>setPersistence</methodname> <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> </classsynopsis> <para> Cette fonction permet de sauvegarder les données entre les requêtes dans une session &php;. Celà ne fonctionne qu'avec un serveur qui exporte les fonctions depuis une classe avec <xref linkend='function.soap-soapserver-setclass' />. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>mode</parameter></term> <listitem> <para> Une des constantes <literal>SOAP_PERSISTENCE_XXX</literal>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->setPersistence(SOAP_PERSISTENCE_REQUEST); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapserver-construct" /></member> <member><xref linkend="function.soap-soapserver-setclass" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/soap-soapvar-construct.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/soap-soapvar-construct.xml +++ phpdoc-fr/reference/soap/functions/soap-soapvar-construct.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.soap-soapvar-construct"> <refnamediv> <refname>SoapVar->__construct()</refname> <refpurpose> Constructeur SoapVar </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <classsynopsis> <ooclass><classname>SoapVar</classname></ooclass> <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>mixed</type><parameter>data</parameter></methodparam> <methodparam><type>int</type><parameter>encoding</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>type_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>type_namespace</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>node_name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>node_namespace</parameter></methodparam> </constructorsynopsis> </classsynopsis> <para> Construit un nouvel objet <classname>SoapVar</classname>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>data</parameter></term> <listitem> <para> Les données à passer ou à retourner. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>encoding</parameter></term> <listitem> <para> L'ID d'encodage, une des constantes <literal>XSD_...</literal>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>type_name</parameter></term> <listitem> <para> Le nom du type. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>type_namespace</parameter></term> <listitem> <para> Le type de l'espace de noms. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>node_name</parameter></term> <listitem> <para> Le nom du noeud XML. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>node_namespace</parameter></term> <listitem> <para> L'espace de noms du noeud XML. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Quelques exemples</title> <programlisting role="php"> <![CDATA[ <?php class SOAPStruct { function SOAPStruct($s, $i, $f) { $this->varString = $s; $this->varInt = $i; $this->varFloat = $f; } } $client = new SoapClient(null, array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $struct = new SOAPStruct('arg', 34, 325.325); $soapstruct = new SoapVar($struct, SOAP_ENC_OBJECT, "SOAPStruct", "http://soapinterop.org/xsd"); $client->echoStruct(new SoapParam($soapstruct, "inputStruct")); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="function.soap-soapclient-call" /></member> <member><xref linkend="function.soap-soapparam-construct" /></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-fr/reference/soap/functions/use-soap-error-handler.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/use-soap-error-handler.xml +++ phpdoc-fr/reference/soap/functions/use-soap-error-handler.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.use-soap-error-handler"> <refnamediv> <refname>use_soap_error_handler()</refname> <refpurpose></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <void /><methodname>use_soap_error_handler</methodname> <methodparam><type>bool</type><parameter>handler</parameter></methodparam> </methodsynopsis> &warn.undocumented.func; </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:"../../../../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 -->