private function getPeers($entry) { $abi_service = new SoapClient(SOAP_CLIENT_BASEDIR . '/CoreTechService.wsdl.xml'); $abi_header = new SoapHeader('http://soap.sforce.com/schemas/class/CoreTechService', 'SessionHeader', array('sessionId' => $this->sforce->getSessionId())); $abi_service->__setSoapHeaders(array($abi_header)); $params = array('programId' => $this->progId, 'acctId' => $entry->Account__c); $responses = $abi_service->GetMetrics($params); $peers = array(); foreach ($responses->result as $r) { $peers[$r->QuestionId] = $r; } return $peers; }