SoapVar::__construct Constructeur SoapVar &reftitle.description; public SoapVar::__construct mixeddata intnullencoding stringnulltypeName&null; stringnulltypeNamespace&null; stringnullnodeName&null; stringnullnodeNamespace&null; Construit un nouvel objet SoapVar. &reftitle.parameters; data Les données à passer ou à retourner. encoding L'ID d'encodage, une des constantes XSD_.... type_name Le nom du type. type_namespace Le type de l'espace de noms. node_name Le nom du nœud XML. node_namespace L'espace de noms du nœud XML. &reftitle.changelog; &Version; &Description; 8.0.3 typeName, typeNamespace, nodeName, et nodeNamespace sont désormais nullable. &reftitle.examples; Exemple avec <function>SoapVar::__construct</function> 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")); ?> ]]> &reftitle.seealso; SoapClient::__soapCall SoapParam::__construct