Próbuję tak:
<?php
$wsdl_addr = 'https://user:pass@server/mantis/api/soap/mantisconnect.php?wsdl';
$namespace = "http://futureware.biz/mantisconnect";
$client = new nusoap_client($wsdl_addr, 'wsdl');
$certRequest1 = Array ('cainfofile' => '...', 'sslcertfile' => 'max.crt', 'sslkeyfile' => '...', 'passphrase' => 'pass'); $client->setCredentials("user","pass", "basic", array(), $certRequest1);
$client->decode_utf8 = false;
$client->username = $uname;
$client->password = $upass;
$result = $client->call('mc_version', $namespace);
?>
w debugu dostaję:
009-06-26 22:01:18.926954 soap_transport_http: no proper separation of headers and document
2009-06-26 22:01:18.927371 soap_transport_http: end of send()
2009-06-26 22:01:18.927801 wsdl: HTTP ERROR: no proper separation of headers and document
2009-06-26 22:01:18.928443 nusoap_client: checkWSDL
2009-06-26 22:01:18.928872 nusoap_client: got wsdl error: HTTP ERROR: no proper separation of headers and document
Co robię źle?