Re: cvs: phpdoc-fr /reference/soap constants.xml ini.xml reference.xml /reference/soap/functions SoapClient-SoapClient.xml SoapClient-call.xml
SoapClient-getFunctions.xml SoapClient-getLastRequest.xml SoapClient-getLastResponse.xml SoapClient-getTypes.xml SoapFault-SoapFault.xml
SoapHeader-SoapHeader.xml SoapParam-SoapParam.xml SoapServer-SoapServer.xml SoapServer-addFunction.xml SoapServer-getFunctions.xml
SoapServer-handle.xml SoapServer-setClass.xml SoapServer-setPersistence.xml SoapVar-SoapVar.xml is-soap-fault.xml

From: Date: Tue, 09 Mar 2004 07:18:22 +0000
Subject: Re: cvs: phpdoc-fr /reference/soap constants.xml ini.xml reference.xml /reference/soap/functions SoapClient-SoapClient.xml SoapClient-call.xml
SoapClient-getFunctions.xml SoapClient-getLastRequest.xml SoapClient-getLastResponse.xml SoapClient-getTypes.xml SoapFault-SoapFault.xml
SoapHeader-SoapHeader.xml SoapParam-SoapParam.xml SoapServer-SoapServer.xml SoapServer-addFunction.xml SoapServer-getFunctions.xml
SoapServer-handle.xml SoapServer-setClass.xml SoapServer-setPersistence.xml SoapVar-SoapVar.xml is-soap-fault.xml
References: 1  Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2005@lists.php.net to get a copy of this message
Tu as oublié : 1 - Les accents 2 - Les tags de révision anglaise merci de corriger Mehdi Achour Damien Seguy wrote:
dams Mon Mar 8 23:11:40 2004 EDT
  Added files:                     /phpdoc-fr/reference/soap	constants.xml ini.xml reference.xml     /phpdoc-fr/reference/soap/functions	SoapClient-SoapClient.xml                                        	SoapClient-call.xml                                        	SoapClient-getFunctions.xml                                        	SoapClient-getLastRequest.xml                                        	SoapClient-getLastResponse.xml                                        	SoapClient-getTypes.xml                                        	SoapFault-SoapFault.xml                                        	SoapHeader-SoapHeader.xml                                        	SoapParam-SoapParam.xml                                        	SoapServer-SoapServer.xml                                        	SoapServer-addFunction.xml                                        	SoapServer-getFunctions.xml                                        	SoapServer-handle.xml                                        	SoapServer-setClass.xml                                        	SoapServer-setPersistence.xml                                        	SoapVar-SoapVar.xml                                        	is-soap-fault.xml   Log:
Initial translation ------------------------------------------------------------------------ http://cvs.php.net/co.php/phpdoc-fr/reference/soap/constants.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/constants.xml +++ phpdoc-fr/reference/soap/constants.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --> <section id="soap.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term>
    <constant>SOAP_1_1</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_1_2</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_PERSISTENCE_SESSION</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_PERSISTENCE_REQUEST</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_FUNCTIONS_ALL</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_ENCODED</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_LITERAL</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_RPC</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_DOCUMENT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_ACTOR_NEXT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_ACTOR_NONE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_ACTOR_UNLIMATERECEIVER</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>UNKNOWN_TYPE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_STRING</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_BOOLEAN</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_DECIMAL</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_FLOAT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_DOUBLE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_DURATION</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_DATETIME</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_TIME</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_DATE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_GYEARMONTH</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_GYEAR</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_GMONTHDAY</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_GDAY</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_GMONTH</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_HEXBINARY</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_BASE64BINARY</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_ANYURI</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_QNAME</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NOTATION</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NORMALIZEDSTRING</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_TOKEN</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_LANGUAGE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NMTOKEN</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NAME</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NCNAME</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_ID</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_IDREF</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_IDREFS</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_ENTITY</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_ENTITIES</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_INTEGER</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NONPOSITIVEINTEGER</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NEGATIVEINTEGER</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_LONG</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_INT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_SHORT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_BYTE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NONNEGATIVEINTEGER</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_UNSIGNEDLONG</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_UNSIGNEDINT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_UNSIGNEDSHORT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_UNSIGNEDBYTE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_POSITIVEINTEGER</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NMTOKENS</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_ANYTYPE</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_ENC_OBJECT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>SOAP_ENC_ARRAY</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_1999_TIMEINSTANT</constant>
     (<type>integer</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_NAMESPACE</constant>
     (<type>string</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> <varlistentry> <term>
    <constant>XSD_1999_NAMESPACE</constant>
     (<type>string</type>)
</term> <listitem>
    <simpara>
    </simpara>
</listitem> </varlistentry> </variablelist> </section> <!-- 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/ini.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/ini.xml +++ phpdoc-fr/reference/soap/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="soap.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> &ini.table.title; <tgroup cols="3">
    <thead>
     &ini.table.top;
    </thead>
    <tbody>
     <row>
      <entry>soap.wsdl_cache_enabled</entry>
      <entry>"1"</entry>
      <entry>PHP_INI_ALL</entry>
     </row>
     <row>
      <entry>soap.wsdl_cache_dir</entry>
      <entry>"/tmp"</entry>
      <entry>PHP_INI_ALL</entry>
     </row>
     <row>
      <entry>soap.wsdl_cache_ttl</entry>
      <entry>86400</entry>
      <entry>PHP_INI_ALL</entry>
     </row>
    </tbody>
</tgroup> </table> &ini.table.bottom; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.soap.wsdl_cache_enabled"> <term>
    <parameter>soap.wsdl_cache_enabled</parameter>
    <type>boolean</type>
</term> <listitem>
    <para>
     Active ou dÈsactive le cache WSDL.
    </para>
</listitem> </varlistentry> <varlistentry id="ini.soap.wsdl_cache_dir"> <term>
    <parameter>soap.wsdl_cache_dir</parameter>
    <type>string</type>
</term> <listitem>
    <para>
     SpÈcifie le nom du dossier où SOAP place les      fichiers mis en cache.
    </para>
</listitem> </varlistentry> <varlistentry id="ini.soap.wsdl_cache_ttl"> <term>
    <parameter>soap.wsdl_cache_ttl</parameter>
    <type>int</type>
</term> <listitem>
    <para>
     (time to live) Nombre de seconde de conservation
     des fichiers dans le systËme de cache.
    </para>
</listitem> </varlistentry> </variablelist> </para> </section> <!-- 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/reference.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/reference.xml +++ phpdoc-fr/reference/soap/reference.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --> <reference id="ref.soap"> <title>SOAP</title> <titleabbrev>SOAP</titleabbrev> <partintro> <section id="soap.intro"> &reftitle.intro; &warn.experimental;
    <para>
     L'extension SOAP sert à Ècrire des serveurs et clients
     SOAP. Elle supporte une partie des spÈcifications de      <ulink url="&spec.soap1.1;">SOAP 1.1</ulink>, <ulink
     url="&spec.soap1.2;">SOAP 1.2</ulink> et <ulink
     url="&spec.wsdl;">WSDL 1.1</ulink> .
    </para>
</section> <section id="soap.requirements">
    &reftitle.required;
    <para>
     Cette extension utilise la bibliothËque      <ulink url="&url.domxml;">GNOME xml</ulink>.      TÈlÈchargez et installez cette bibliothËque.
     Vous aurez besoin de la version 2.5.4.
    </para>
</section> <section id="soap.installation"> &reftitle.install;
    <para>
     Cette extension est uniquement disponible si &php;      a ÈtÈ configurÈ avev <option role="configure">--enable-soap</option>.
    </para>
</section> &reference.soap.ini; &reference.soap.constants; </partintro> &reference.soap.functions; </reference> <!-- 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/SoapClient-SoapClient.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapClient-SoapClient.xml +++ phpdoc-fr/reference/soap/functions/SoapClient-SoapClient.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapClient-SoapClient"> <refnamediv>
    <refname>SoapClient::SoapClient</refname>
    <refpurpose>
     Constructeur SoapClient
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapClient::SoapClient</methodname>
     <methodparam><type>mixed</type><parameter>wsdl</parameter></methodparam>
     <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
    </methodsynopsis>
    <para>
          <function>SoapServer::SoapClient</function> permet la crÈation
     d'objets SoapClient en mode WSDL ou non-WSDL.
     Dans le premier cas, <parameter>wsdl</parameter> doit être
     l'URI d'un fichier fichier WSDL, et <parameter>options</parameter> doit      être un tableau.
     Dans le second cas, <parameter>wsdl</parameter> doit valoir &null; et les
     options <literal>location</literal> et <literal>uri</literal> doivent être fournies :      <literal>location</literal> est l'URL d'action et <literal>uri</literal>      est l'espace de nommage du service SOAP.
    </para>
    <para>
     Les options <literal>style</literal> et <literal>use</literal> ne fonctionnent
     qu'en mode non-WSDL. En mode WSDL, elles sont dans le fichier WSDL.
    </para>
    <para>
     L'option <literal>soap_version</literal> spÈcifie si on utilise
     SOAP 1.1, ou le client SOAP 1.2.
    </para>
    <para>
     Dans le cas de l'identification HTTP, vous devez utiliser les options
     <literal>login</literal> et <literal>password</literal>. Pour une
     connexion HTTP via un serveur proxy, utilisez les options      <literal>proxy_host</literal>, <literal>proxy_port</literal>,      <literal>proxy_login</literal> et <literal>proxy_password</literal>.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapServer::SoapClient</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = new SoapClient("some.wsdl"); $client = new SoapClient("some.wsdl", array('soap_version' => SOAP_1_2));
$client = new SoapClient("some.wsdl", array('login'          => "some_name",
                                            'password'       => "some_password"));
$client = new SoapClient("some.wsdl", array('proxy_host'     => "localhost",
                                            'proxy_port'     => 8080));
$client = new SoapClient("some.wsdl", array('proxy_host'     => "localhost",
                                            'proxy_port'     => 8080,
                                            'proxy_login'    => "some_name",
                                            'proxy_password' => "some_password"));
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
                                     'uri'      => "http://test-uri/"));
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
                                     'uri'      => "http://test-uri/",
                                     'style'    => SOAP_DOCUMENT,
                                     'use'      => SOAP_LITERAL));
?> ]]>
      </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/SoapClient-call.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapClient-call.xml +++ phpdoc-fr/reference/soap/functions/SoapClient-call.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapClient-call"> <refnamediv>
    <refname>SoapClient::__call</refname>
    <refpurpose>
     Appelle une fonction SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>mixed</type><methodname>SoapClient::__call</methodname>
     <methodparam><type>string</type><parameter>function_name</parameter></methodparam>
     <methodparam choice="opt"><type>array</type><parameter>arguments</parameter></methodparam>
     <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
     <methodparam choice="opt"><type>array</type><parameter>input_headers</parameter></methodparam>
     <methodparam choice="opt"><type>array</type><parameter>output_headers</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapClient::__call</function> est une fonction bas niveau
     pour rÈaliser un appel SOAP. GÈnÈralement en mode WSDL, vous pouvez
     simplement appeler les fonctions SOAP comme des mÈthodes. Cette mÈthode
     est pratique en mode non-WSDL, lorsque <literal>soapaction</literal> est
     inconnu, <literal>uri</literal>  diffËre de la valeur par dÈfaut, ou
     si vous envoyerz et/ou recevez des entêtes SOAP. En cas d'erreur,
     une exception &php; est Èmise, ou bien un objet SoapFault est
     retournÈ sir les exceptions sont dÈsactivÈes. Pour vÈrifier      qu'un appel a ÈchouÈ, interceptez les exception SoapFault, ou
     bien vÈrifiez le rÈsultat avec la fonction <function>is_soap_fault</function>.
</para> <para>
     Les fonctions SOAP peuvent retourner une ou plusieurs valeurs.      Dans le premier cas, elle retournera simplement la valeur, et dans
     le second cas, elle retournera un tableau associatif.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapClient::__call</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = new SoapClient("some.wsdl"); $client->SomeFunction($a, $b, $c); $client->__call("SomeFunction", array($a, $b, $c)); $client->__call("SomeFunction", array($a, $b, $c), NULL,
                new SoapHeader(...), $output_headers);
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
                                     'uri'      => "http://test-uri/"));
$client->SomeFunction($a, $b, $c); $client->__call("SomeFunction", array($a, $b, $c)); $client->__call("SomeFunction", array($a, $b, $c),
                 array('soapaction' => 'some_action',
                       'uri'        => 'some_uri'));
?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>,
     <function>SoapParam::SoapParam</function>,
     <function>SoapVar::SoapVar</function>,
     <function>SoapHeader::SoapHeader</function>,
     <function>SoapFault::SoapFault</function> et
     <function>is_soap_fault</function>.
    </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/SoapClient-getFunctions.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapClient-getFunctions.xml +++ phpdoc-fr/reference/soap/functions/SoapClient-getFunctions.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapClient-getFunctions"> <refnamediv>
    <refname>SoapClient::__getFunctions</refname>
    <refpurpose>
     Retourne la liste des fonctions SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>array</type><methodname>SoapClient::__getFunctions</methodname>
     <methodparam><type>void</type><parameter></parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapClient::__getFunctions</function> ne fonctionne
     qu'en mode WSDL.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapClient::__getFunctions</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = SoapClient("some.wsdl"); var_dump($client->__getFunctions()); ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>.
    </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/SoapClient-getLastRequest.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapClient-getLastRequest.xml +++ phpdoc-fr/reference/soap/functions/SoapClient-getLastRequest.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapClient-getLastRequest"> <refnamediv>
    <refname>SoapClient::__getLastRequest</refname>
    <refpurpose>
     Retourne la derniËre requête SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>string</type><methodname>SoapClient::__getLastRequest</methodname>
     <methodparam><type>void</type><parameter></parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapClient::__getLastRequest</function> ne fonctionne
     qu'avec SoapClient, s'il a ÈtÈ crÈÈ avec l'option <literal>trace</literal>.
    </para>
    <para>
     <example>
      <title>Exemple avec s<function>SoapClient::__getLastRequest</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = SoapClient("some.wsdl", array('trace' => 1)); $result = $client->SomeFunction(...); echo "REQUEST:\n" . $client->__getLastRequest() . "\n"; ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>.
    </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/SoapClient-getLastResponse.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapClient-getLastResponse.xml +++ phpdoc-fr/reference/soap/functions/SoapClient-getLastResponse.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapClient-getLastResponse"> <refnamediv>
    <refname>SoapClient::__getLastResponse</refname>
    <refpurpose>
     Retourne la derniËre rÈponse SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapClient::__getLastResponse</methodname>
     <methodparam><type>void</type><parameter></parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapClient::__getLastResponse</function> ne fonctionne
     qu'avec SoapClient, s'il a ÈtÈ crÈÈ avec l'option <literal>trace</literal>.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapClient::__getLastResponse</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = SoapClient("some.wsdl", array('trace' => 1)); $result = $client->SomeFunction(...); echo "RESPONSE:\n" . $client->__getLastResponse() . "\n"; ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>.
    </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/SoapClient-getTypes.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapClient-getTypes.xml +++ phpdoc-fr/reference/soap/functions/SoapClient-getTypes.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapClient-getTypes"> <refnamediv>
    <refname>SoapClient::__getTypes</refname>
    <refpurpose>
     Retourne la lsite des types SOAP.
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>array</type><methodname>SoapClient::__getTypes</methodname>
     <methodparam><type>void</type><parameter></parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapClient::__getTypes</function> ne fonctionne
     qu'en mode WSDL.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapClient::__getTypes</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = SoapClient("some.wsdl"); var_dump($client->__getTypes()); ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>.
    </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/SoapFault-SoapFault.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapFault-SoapFault.xml +++ phpdoc-fr/reference/soap/functions/SoapFault-SoapFault.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapFault-SoapFault"> <refnamediv>
    <refname>SoapFault::SoapFault</refname>
    <refpurpose>
     Constructeur SoapFault
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapFault::SoapFault</methodname>
     <methodparam><type>string</type><parameter>faultcode</parameter></methodparam>
     <methodparam><type>string</type><parameter>faultstring</parameter></methodparam>
     <methodparam choice="opt"><type>string</type><parameter>faultactor</parameter></methodparam>
     <methodparam choice="opt"><type>mixed</type><parameter>detail</parameter></methodparam>
     <methodparam choice="opt"><type>string</type><parameter>faultname</parameter></methodparam>
     <methodparam choice="opt"><type>mixed</type><parameter>headerfault</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapFault::SoapFault</function> est pratique lorsque vous voulez
     envoyer des erreurs comme rÈponse à un gestionnaire &php;.       <parameter>faultcode</parameter>, <parameter>faultstring</parameter>,      <parameter>faultactor</parameter> et <parameter>details</parameter> sont
     les ÈlÈments classiques d'une erreur SOAP. <parameter>faultname</parameter> est
     un paramËtre optionnel, qui peut être utilisÈ pour sÈlectionner
     correctement le jeu de caractËres WSDL.      <parameter>headerfault</parameter> est un paramËtre optionnel qui
     peut être utilisÈ pour rapporter une erreur dans l'entête de rÈponse.
    </para>
    <para>
     <example>
      <title>Exemples avec <function>SoapFault::SoapFault</function></title>
      <programlisting role="php">
<![CDATA[ <?php function test($x) {
    return new SoapFault("Server", "Some error message");
} $server = new SoapServer(null, array('uri' => "http://test-uri/")); $server->addFunction("test"); $server->handle(); ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Il est possible d'utiliser le mÈcanisme d'exceptions PHP pour      Èmettre des exceptions SOAP Fault.
    </para>
    <para>
     <example>
      <title>Exemples avec <function>SoapFault::SoapFault</function>
      et les exceptions</title>
      <programlisting role="php">
<![CDATA[ <?php function test($x) {
    throw new SoapFault("Server", "Some error message");
} $server = new SoapServer(null, array('uri' => "http://test-uri/")); $server->addFunction("test"); $server->handle(); ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>,
     <function>SoapClient::__call</function>,
     <function>SoapParam::SoapParam</function>,
     <function>SoapVar::SoapVar</function> et
     <function>is_soap_fault</function>.
    </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/SoapHeader-SoapHeader.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapHeader-SoapHeader.xml +++ phpdoc-fr/reference/soap/functions/SoapHeader-SoapHeader.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapHeader-SoapHeader"> <refnamediv>
    <refname>SoapHeader::SoapHeader</refname>
    <refpurpose>
     Constructeur SoapHeader
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapHeader::SoapHeader</methodname>
     <methodparam><type>string</type><parameter>namespace</parameter></methodparam>
     <methodparam><type>string</type><parameter>name</parameter></methodparam>
     <methodparam choice="opt"><type>mixed</type><parameter>data</parameter></methodparam>
     <methodparam choice="opt"><type>bool</type><parameter>mustUnderstand</parameter></methodparam>
     <methodparam choice="opt"><type>mixed</type><parameter>actor</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapHeader::SoapHeader</function> est une classe spÈciale de
     bas niveau, pour passer ou lire des entêtes SOAP. C'est un simple conteneur
     de donnÈes, et il n'a aucune mÈthode particuliËre. Il peut être utilisÈ avec
     la fonction <function>SoapClient::__call</function> pour passer un entête
     SOAP, ou bien, dans un entête SOAP, pour retourner l'entête qui a ÈtÈ lu.      Les paramËtres <parameter>namespace</parameter> et <parameter>name</parameter>      sont l'espace de nom et le nom de l'ÈlÈment d'entête SOAP.
     <parameter>data</parameter> est le contenu de l'entête SOAP. Cela peut être
     une valeur &php; ou un objet SoapVar.      <parameter>mustUnderstand</parameter> et <parameter>actor</parameter> sont
     les valeurs des attributs <literal>mustUnderstand</literal> et
     <literal>actor</literal> de l'entête SOAP.
    </para>
    <para>
     <example>
      <title>Exemples avec <function>SoapHeader::SoapHeader</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = new SoapClient(null, array('location' => "http://localhost/soap.php",
                                     'uri'      => "http://test-uri/"));
$client->__call("echoVoid", null, null,
                new SoapHeader('http://soapinterop.org/echoheader/',
                               'echoMeStringRequest',
                               'hello world'));
?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::__call</function>,
     <function>SoapParam::SoapParam</function> et
     <function>SoapVar::SoapVar</function>.
    </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/SoapParam-SoapParam.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapParam-SoapParam.xml +++ phpdoc-fr/reference/soap/functions/SoapParam-SoapParam.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapParam-SoapParam"> <refnamediv>
    <refname>SoapParam::SoapParam</refname>
    <refpurpose>
     Constructeur SoapParam
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapParam::SoapParam</methodname>
     <methodparam><type>mixed</type><parameter>data</parameter></methodparam>
     <methodparam><type>string</type><parameter>name</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapParam::SoapParam</function> est une classe de bas niveau
     pour nommer les paramËtre et retourner les valeurs en mode non-WSDL. C'est
     simplement un conteneur de donnÈes, et il n'a aucune mÈthode particuliËre
     hormis sont constructeur. Le constructeur prend les donnÈes      <parameter>data</parameter> à passer ou retourner, et le nom      <parameter>name</parameter>. Il es possible de passer directement des      paramËtres qui sont des valeurs &php;, mais dans ce cas, elle prendront
     le nom de <literal>paramN</literal> et le service SOAP risque de
     ne pas les comprendre.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapParam::SoapParam</function></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>
    <para>
     Voir aussi
     <function>SoapClient::__call</function> et
     <function>SoapVar::SoapVar</function>.
    </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/SoapServer-SoapServer.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapServer-SoapServer.xml +++ phpdoc-fr/reference/soap/functions/SoapServer-SoapServer.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapServer-SoapServer"> <refnamediv>
    <refname>SoapServer::SoapServer</refname>
    <refpurpose>
     Constructeur SoapServer
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapServer::SoapServer</methodname>
     <methodparam><type>mixed</type><parameter>wsdl</parameter></methodparam>
     <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapServer::SoapServer</function> permet la crÈation
     d'objets SoapServer en mode WSDL ou non-WSDL.
     Dans le premier cas, <parameter>wsdl</parameter> doit être
     l'URI d'un fichier fichier WSDL.
     Dans le second cas, <parameter>wsdl</parameter> doit valoir &null; et l'option
     <literal>uri</literal> doit être fournie.
     D'autre options supplÈmentaires dans <parameter>options</parameter>      permettent la configuration de la version SOAP      (<literal>soap_version</literal>) et de l'URI d'action
     (<literal>actor</literal>).
    </para>
    <para>
     <example>
      <title>Exemples avec SoapServer</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/SoapServer-addFunction.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapServer-addFunction.xml +++ phpdoc-fr/reference/soap/functions/SoapServer-addFunction.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapServer-addFunction"> <refnamediv>
    <refname>SoapServer::addFunction</refname>
    <refpurpose>
     Ajoute une ou plusieurs fonctions pour gÈrer des requêtes SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>void</type><methodname>SoapServer::addFunction</methodname>
     <methodparam><type>mixed</type><parameter>functions</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapServer::addFunction</function> exporte une ou
     plusieurs fonctions vers les clients distants.
    </para>
    <para>
     Pour exporter une fonction, mettez son nom dans le paramËtre
     <parameter>functions</parameter>, sous forme de chaîne.      Pour exporter plusieurs fonctions, passez un tableau de chaines,
     et pour exporter toutes les fonctions, passez la constante
     spÈciale <constant>SOAP_FUNCTIONS_ALL</constant>.
    </para>
    <para>
     <parameter>functions</parameter> doit recevoir tous les arguments
     entrants, dans le même ordre que celui dÈfini dans le fichier WSDL.      Les paramËtres sortants ne sont pas autorisÈs. La fonction retourne
     une ou plusieurs valeurs. Pour retourner plusieurs valeurs, elle
     retourne un tableau associatif, dont les index sont les noms des
     paramËtres de sortie.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapServer::addFunction</function></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>
    <para>
     Voir aussi
     <function>SoapServer::SoapServer</function> et
     <function>SoapServer::SetClass</function>.
    </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/SoapServer-getFunctions.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapServer-getFunctions.xml +++ phpdoc-fr/reference/soap/functions/SoapServer-getFunctions.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapServer-getFunctions"> <refnamediv>
    <refname>SoapServer::getFunctions</refname>
    <refpurpose>
     Retourne la liste des fonctions SOAP dÈfinies
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>array</type><methodname>SoapServer::getFunctions</methodname>
     <methodparam><type>void</type><parameter></parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapServer::getFunctions</function> retourne la liste
     de toutes les fonctions qui ont ÈtÈ ajoutÈes avec      les fonctions <function>SoapServer::addFunction</function> et      <function>SoapServer::setClass</function>.
    </para>
    <para>
     <example>
      <title>Exemples avec <function>SoapServer::getFunctions</function></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 "This SOAP server can handle following functions: "; $functions = $server->getFunctions(); foreach($functions as $func) {
    echo $func . "\n";
} } ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapServer::SoapServer</function>,
     <function>SoapServer::addFunction</function>, et
     <function>SoapServer::SetClass</function>.
    </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/SoapServer-handle.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapServer-handle.xml +++ phpdoc-fr/reference/soap/functions/SoapServer-handle.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapServer-handle"> <refnamediv>
    <refname>SoapServer::handle</refname>
    <refpurpose>
     GËre une requête SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>void</type><methodname>SoapServer::handle</methodname>
     <methodparam choice="opt"><type>string</type><parameter>soap_request</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapServer::handle</function> traite une requête SOAP,
     appelle les fonctions adÈquates, et renvoie la rÈponse. Cette fonction
     attend une requête dans le paramËtre <parameter>soap_request</parameter>
     ou dans la variable globale <varname>$HTTP_RAW_POST_DATA</varname>,
     si l'argument a ÈtÈ omis.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>SoapServer::handle</function></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>
    <para>
     Voir aussi
     <function>SoapServer::SoapServer</function>.
    </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/SoapServer-setClass.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapServer-setClass.xml +++ phpdoc-fr/reference/soap/functions/SoapServer-setClass.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapServer-setClass"> <refnamediv>
    <refname>SoapServer::setClass</refname>
    <refpurpose>
     SpÈcifie la classe qui gËre les requêtes SOAP
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>void</type><methodname>SoapServer::setClass</methodname>
     <methodparam><type>string</type><parameter>class_name</parameter></methodparam>
     <methodparam choice="opt"><type>mixed</type><parameter>args</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapServer::setClass</function> exporte toutes les mÈthodes
     de la classe <parameter>class_name</parameter>. Les paramËtres additionnels
     <parameter>args</parameter> seront passÈs au constructeur de la classe
     durant l'instanciation. L'objet peut être rendu persistant entre requêtes,
     pour une session &php; donnÈe, grâce à la mÈthode      <function>SoapServer::setPersistence</function>.
    </para>
    <para>
     <example>
      <title>Exemples avec <function>SoapServer::setClass</function></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>
    <para>
     Voir aussi
     <function>SoapServer::SoapServer</function>,
     <function>SoapServer::addFunction</function> et
     <function>SoapServer::setPersistence</function>.
    </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/SoapServer-setPersistence.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapServer-setPersistence.xml +++ phpdoc-fr/reference/soap/functions/SoapServer-setPersistence.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapServer-setPersistence"> <refnamediv>
    <refname>SoapServer::setPersistence</refname>
    <refpurpose>
     Active la persistance d'un objet SoapServer
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>void</type><methodname>SoapServer::setPersistence</methodname>
     <methodparam><type>int</type><parameter>mode</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>SoapServer::setPersistence</function> permet la
     sauvegarde des donnÈes entre deux requêtes dans une
     session &php;. Cela ne fonctionne qu'avec un serveur, qui      exporte ses fonctions d'une classe, grâce à      <function>SoapServer::setClass</function>.
    </para>
    <para>
     <example>
      <title>Exemples avec <function>SoapServer::setPersistence</function></title>
      <programlisting role="php">
<![CDATA[ <?php $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->setPersistence(SOAP_PERSISTENCE_REQUEST); ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapServer::SoapServer</function> et
     <function>SoapServer::SetClass</function>.
    </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/SoapVar-SoapVar.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/SoapVar-SoapVar.xml +++ phpdoc-fr/reference/soap/functions/SoapVar-SoapVar.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.SoapVar-SoapVar"> <refnamediv>
    <refname>SoapVar::SoapVar</refname>
    <refpurpose>
     Constructeur SoapVar
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>object</type><methodname>SoapVar::SoapVar</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>
    </methodsynopsis>
    <para>
      SoapVar est une classe spÈciale, de bas niveau, pour gÈrer l'encodage
      des paramËtres, et retourner les valeurs en mode non-WSDL. C'est simplement
      un conteneur de donnÈes, qui n'a pas de fonctionnalitÈ spÈciale
      hormis le constructeur. Elle est utile lorsque vous devez
      spÈcifier le type de propriÈtÈ dans une requête ou une rÈponse SOAP.
      Le constructeur prend les donnÈes dans le paramËtre       <parameter>data</parameter>, aussi bien pour les lire que pour les faire
      Ècrire; <parameter>encoding</parameter> est le format d'encodage (voir       les constantes <literal>XSD_...</literal>). Les autres paramËtres
      optionnels sont le type de nom, <parameter>type_name</parameter>,       et l'esapce de nom, <parameter>type_namespace</parameter>       ainsi que les noeuds <parameter>node_name</parameter> et       espaces XML, <parameter>node_namespace</parameter>.
    </para>
    <para>
     <example>
      <title>Exemples avec <methodname>SoapVar::SoapVar</methodname></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>
    <para>
     Voir aussi
     <function>SoapClient::__call</function> et
     <function>SoapParam::SoapParam</function>.
    </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/is-soap-fault.xml?r=1.1&p=1 Index: phpdoc-fr/reference/soap/functions/is-soap-fault.xml +++ phpdoc-fr/reference/soap/functions/is-soap-fault.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry id="function.is-soap-fault"> <refnamediv>
    <refname>is_soap_fault</refname>
    <refpurpose>
     VÈrifie si l'API soap a ÈchouÈ
    </refpurpose>
</refnamediv> <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>bool</type><methodname>is_soap_fault</methodname>
     <methodparam><type>mixed</type><parameter>obj</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>is_soap_fault</function> sert à vÈrifier si l'API
     soap a ÈchouÈ, surtout lorsque vous n'aimez pas utiliser les
     exceptions. Pour l'utiliser, vous devez crÈer un objet
     SoapClient avec l'option <literal>exceptions</literal>      mise à zÈro ou &false;. Dans ce cas, la mÈthode SOAP      va retourner un objet spÈcial SoapFault, qui      encapsule les dÈtails de l'erreur (code d'erreur,
     message, acteur et dÈtails).
    </para>
    <para>
     Si <literal>exceptions</literal> n'est pas configurÈe,
     SOAP va Èmettre une exception.      <function>is_soap_fault</function> vÈrifie si le      paramËtre fournit est un objet SoapFault.
    </para>
    <para>
     <example>
      <title>Exemple avec <function>is_soap_fault</function></title>
      <programlisting role="php">
<![CDATA[ <?php $client = SoapClient("some.wsdl", array('exceptions' => 0)); $result = $client->SomeFunction(...); if (is_soap_fault($result)) {
    trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faulstring})", E_ERROR);
} ?> ]]>
      </programlisting>
     </example>
     <example>
      <title>Gestion des erreurs par exception avec SOAP</title>
      <programlisting role="php">
<![CDATA[ <?php try {
    $client = SoapClient("some.wsdl");
    $result = $client->SomeFunction(...);
} catch (SoapFault $fault) {
    trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faulstring})", E_ERROR);
} ?> ]]>
      </programlisting>
     </example>
    </para>
    <para>
     Voir aussi
     <function>SoapClient::SoapClient</function>, et
     <function>SoapFault::SoapFault</function>.
    </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 -->


« previous php.doc.fr (#2005) next »