Closed erickpac closed 7 years ago
Try:
$params = ['param1' => 'value_1'];
$this->soapWrapper->add('SERVICE_NAME', function ($service) use ($wsdl) {
$service
->wsdl($wsdl)
->trace(true)
->cache(WSDL_CACHE_NONE)
->options(['login' => 'login','password' => 'password']);
});
$response = $this->soapWrapper->call('SERVICE_NAME.FUNCTION_NAME', [$params]);
Hello, you could help me, I have an error when trying to make a function, I have this code: $params = ['param1' => 'value_1'];
$this->soapWrapper->add('FUNCTION_NAME', function ($service) use ($wsdl) { $service ->wsdl($wsdl) ->trace(true) ->cache(WSDL_CACHE_NONE) ->options(['login' => 'login','password' => 'password']); });
the error is: Undefined offset: 1