- stream_context_create: documentation ( source)
<?php
class EconomicsWS {
const WSDL = array();
static function WSDL() {
return array();
}
}
$opts = array(
'http' => array(
'header' => "X-EconomicAppIdentifier: RevirusDKInvoicing/1.0 (http://revi-rus.dk/; administrator@revi-rus.dk) PHP-SOAP/1.0\r\n"
)
);
$context = stream_context_create($opts);
$this->client = new SoapClient(EconomicsWS::WSDL, array("trace" => 1, "exceptions" => 1, 'stream_context' => $context));