dclarke
10/03/2019, 2:54 PMprivate function createOptions($config, $overrides = array())
{
return array_merge(array(
'classmap' => require __DIR__."/includes/classmap.php",
'trace' => 1,
'connection_timeout' => 5,
'cache_wsdl' => WSDL_CACHE_BOTH,
'location' => $config['host']."/services/NetSuitePort_".$config['endpoint'],
'keep_alive' => false,
'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
'user_agent' => "PHP-SOAP/".phpversion()." + ryanwinchester/netsuite-php",
'stream_context' => stream_context_create(
array(
'http' => array(
'protocol_version' => 1.1,
'header' => "Transfer-Encoding: chunked",
),
)
),
), $overrides);
}