Problem connecting to web service. My code is the following:
$client = new \nusoap_client('clientesoap', true);
$param= array('parametro1'=> value1, 'parámetro2'=>'value2');
$result = $client->call('metodo', array('parameters' => $param), '', '', false, true);
the two parameters that I pass with those requested by the webservice method but it does not enter.
In the definition of the parameters of the call to
Synchro
(in theWSDL
) appears:As you can see, there is no parameter called
parameters
, but there is an<sequence>
(an array), so we must send it an array in which, for example, the first element has the desiredkind
y parameters.campaignId
It's probably designed like this to allow us to sync multiple campaigns in a single call by adding as many elements to the array as we need.
Using PHP's native SOAP client:
Using
nusoap
: