You are here

function wsdl::getOperationData in Salesforce Suite 5

Same name in this branch
  1. 5 includes/nusoap.php \wsdl::getOperationData()
  2. 5 includes/nusoap.orig.php \wsdl::getOperationData()
Same name and namespace in other branches
  1. 5.2 includes/nusoap.php \wsdl::getOperationData()
  2. 5.2 includes/nusoap.orig.php \wsdl::getOperationData()

* returns an associative array of data necessary for calling an operation * *

Parameters

string $operation , name of operation: * @param string $bindingType , type of binding eg: soap * @return array * @access public

4 calls to wsdl::getOperationData()
wsdl::serializeParameters in includes/nusoap.php
* serialize a PHP value according to a WSDL message definition * * TODO * - multi-ref serialization * - validate PHP values against type definitions, return errors if invalid * *
wsdl::serializeParameters in includes/nusoap.orig.php
* serialize a PHP value according to a WSDL message definition * * TODO * - multi-ref serialization * - validate PHP values against type definitions, return errors if invalid * *
wsdl::serializeRPCParameters in includes/nusoap.php
* serialize PHP values according to a WSDL message definition * * TODO * - multi-ref serialization * - validate PHP values against type definitions, return errors if invalid * *
wsdl::serializeRPCParameters in includes/nusoap.orig.php
* serialize PHP values according to a WSDL message definition * * TODO * - multi-ref serialization * - validate PHP values against type definitions, return errors if invalid * *

File

includes/nusoap.php, line 4628

Class

wsdl
parses a WSDL file, allows access to it's data, other utility methods

Code

function getOperationData($operation, $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) {

      // get binding

      //foreach($this->bindings[ $portData['binding'] ]['operations'] as $bOperation => $opData) {
      foreach (array_keys($this->bindings[$portData['binding']]['operations']) as $bOperation) {

        // note that we could/should also check the namespace here
        if ($operation == $bOperation) {
          $opData = $this->bindings[$portData['binding']]['operations'][$operation];
          return $opData;
        }
      }
    }
  }
}