(PHP 5 >= 5.0.1)
SoapVar::SoapVar — SoapVar コンストラクタ
新規 SoapVar オブジェクトを生成します。
渡すもしくは返すデータ
エンコーディング ID。XSD_... 定数のうちの一つ。
型名
型の名前空間
XML ノードの名前
XML ノードの名前空間
例1 SoapVar::SoapVar() の例
<?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"));
?>