Aufbau der SOAP-Verbindung (SOAP Service)

Das SOAP Array ist wie nachfolgend beschrieben aufgebaut.

$options = array(
‘soap_version’ => SOAP_1_1,’exceptions’ => true,
‘trace’ => 1,
‘cache_wsdl’ => WSDL_CACHE_NONE,
‘local_cert’ => ‘C:/xampp/htdocs/js/Certs/sample.cert’,
‘charset’ => ‘utf8’,
‘stream_context’ => stream_context_create([‘ssl’ => [‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true]])
);

Note
The variable “stream_context” only needs to be set in the sample or dev system. This has to be omitted in the live environment.

The certificate used for the sample, dev or productive system is specified in the “local_cert” variable.

The web service is specified in the variable $ soap_service.

Sample and Dev
http://interface.unitedprint.com.onts.print24test.de/wsdl2.1

Productive
http://interface.unitedprint.com/wsdl2.1

Category: Administration
Tag: Soap Service