In the definition of the parameters of the call to Synchro
(in the WSDL
) appears:
<element name="SynchroRequest">
<complexType>
<sequence>
<element name="kind" type="int"/>
<element name="campaignId" type="long"/>
</sequence>
</complexType>
</element>
As you can see there is no parameter called parameters
, but there is a <sequence>
(a matrix), so we must send you a matrix in which, for example, the first element has the parameters kind
and campaignId
desired.
It is likely to be designed like this to allow synchronizing several campaigns in a single call by adding as many elements to the matrix as we need.
Using the PHP native SOAP client:
<?php
$client = new \SoapClient('http://v3lademo.fidely.net/fnet3web/proxy/wsdl_ca.php?v=01.02');
$result = $client->__soapCall(
'Synchro',
[
[
'kind'=> 3,
'campaignId'=>'803'
]
]
);
// $result->answerCode / $result->session
var_export($result);
Using nusoap
:
<?php
require 'lib/nusoap.php';
$client = new \nusoap_client('http://v3lademo.fidely.net/fnet3web/proxy/wsdl_ca.php?v=01.02', true);
$param = array('kind' => 3, 'campaignId' => '803');
$result = $client->call('Synchro', [ $param ], '', '', false, true);
// $result['answerCode'] / $result['session']
var_export($result);