function wsdl::getOperationDataForSoapAction in Salesforce Suite 5
Same name in this branch
- 5 includes/nusoap.php \wsdl::getOperationDataForSoapAction()
- 5 includes/nusoap.orig.php \wsdl::getOperationDataForSoapAction()
Same name and namespace in other branches
- 5.2 includes/nusoap.php \wsdl::getOperationDataForSoapAction()
- 5.2 includes/nusoap.orig.php \wsdl::getOperationDataForSoapAction()
* returns an associative array of data necessary for calling an operation * *
Parameters
string $soapAction soapAction for operation: * @param string $bindingType type of binding eg: soap * @return array * @access public
File
- includes/
nusoap.orig.php, line 4653
Class
- wsdl
- parses a WSDL file, allows access to it's data, other utility methods
Code
function getOperationDataForSoapAction($soapAction, $bindingType = 'soap') {
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) {
// loop through operations for the binding
foreach ($this->bindings[$portData['binding']]['operations'] as $bOperation => $opData) {
if ($opData['soapAction'] == $soapAction) {
return $opData;
}
}
}
}
}