0

I need to integrate the OCPP connection with SOAP in php. I found a lot of examples with OCPP & JSON, but nothing with OCPP & SOAP. Can anyone please share few examples if possible? Thanks!

Avz Vicky
  • 11
  • 9

1 Answers1

0

Recommend use Json instead of SOAP. Json is most light and more fast.

But if you want to use SOAP with PHP:

$client = new SoapClient($wsdl_path, array(
        'soap_version' => SOAP_1_2,
        'connection_timeout' => 8,
        'cache_wsdl' => WSDL_CACHE_NONE,
        'trace' => 1
    )
);

then

$call = $client->remoteStartTransaction(array(
        'connectorId' => $connectorId,
        'idTag' => $idTag
    )
);
Yevhen Bondar
  • 4,357
  • 1
  • 11
  • 31
Lucaele
  • 39
  • 4