function wsdl::getOperations in Salesforce Suite 5
Same name in this branch
- 5 includes/nusoap.php \wsdl::getOperations()
- 5 includes/nusoap.orig.php \wsdl::getOperations()
Same name and namespace in other branches
- 5.2 includes/nusoap.php \wsdl::getOperations()
- 5.2 includes/nusoap.orig.php \wsdl::getOperations()
* returns an assoc array of operation names => operation data * *
Parameters
string $bindingType eg: soap, smtp, dime (only soap is currently supported): * @return array * @access public
2 calls to wsdl::getOperations()
- wsdl::webDescription in includes/
nusoap.php - prints html description of services
- wsdl::webDescription in includes/
nusoap.orig.php - prints html description of services
File
- includes/
nusoap.orig.php, line 4593
Class
- wsdl
- parses a WSDL file, allows access to it's data, other utility methods
Code
function getOperations($bindingType = 'soap') {
$ops = array();
if ($bindingType == 'soap') {
$bindingType = 'http://schemas.xmlsoap.org/wsdl/soap/';
}
// loop thru ports
foreach ($this->ports as $port => $portData) {
// binding type of port matches parameter
if ($portData['bindingType'] == $bindingType) {
//$this->debug("getOperations for port $port");
//$this->debug("port data: " . $this->varDump($portData));
//$this->debug("bindings: " . $this->varDump($this->bindings[ $portData['binding'] ]));
// merge bindings
if (isset($this->bindings[$portData['binding']]['operations'])) {
$ops = array_merge($ops, $this->bindings[$portData['binding']]['operations']);
}
}
}
return $ops;
}