/** * * @param SoapService $service * @return array $actions */ public function scanServiceForAction(SoapService $service) { $client = $this->clientFactory->get($service->getWsdl()); $actions = []; foreach ($client->getFunctions() as $action) { $actionObj = $this->actionFactory->create($service, $action[1]); $actionObj->setReturnType($action[0]); $actionObj->setArguments($this->findArguments($action)); $actions[] = $actionObj; } return $actions; }
public function processByServiceAndMethodName(SoapService $service, $methodName) { $client = $this->clientFactory->get($service->getWsdl()); return $client->call($methodName); }