SoapParam::SoapParam

(no version information, might be only in CVS)

SoapParam::SoapParam --  SoapParam constructor

Description

SoapParam SoapParam::SoapParam ( mixed data, string name)

SoapParam is a special low-level class for naming parameters and return ing values in non-WSDL mode. It is just a data holder and it does not have any special methods except the constructor. The constructor takes data to pass or return and name. It is possible to pass parameters directly as PHP values, but in this case it will be named as paramN and the SOAP Service may not understand them.

Example 1. Some examples

<?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"));
?>

See also SoapClient::__call(), and SoapVar::SoapVar().