'https://giant-tst.graydon.nl/credit-data/v1?wsdl', 'RetrieveDataSet' => 'https://giant-tst.graydon.nl/credit-data/v1?wsdl', 'RetrieveOrderStatus' => 'https://giant-tst.graydon.nl/credit-data/v1?wsdl', 'RetrieveOptions' => 'https://giant-tst.graydon.nl/credit-data/v1?wsdl', 'AdvancedSearch' => 'http://giant-tst.graydon.nl/search/v1?wsdl', 'Search' => 'http://giant-tst.graydon.nl/search/v1?wsdl', 'StartInvestigation' => 'https://giant-tst.graydon.nl/credit-data/v1?wsdl', 'credit-data' => 'https://giant-tst.graydon.nl/credit-data/v1?wsdl', ); return ($servicesGiant[$service]); } function BuiltHeaders($pays) { $service_header = new StdClass; $service_header->ConsumerId = GIANT_CREDIT_USER; $service_header->Provider = new StdClass; $service_header->Provider->CountryCode = $pays; $service_header->Provider->ProviderId = getProviderId($pays); $service_header->TimeStamp = date('Y-m-d\TH:i:s'); $service_header->TestIndication = true; $soap_header = new SoapHeader('http://services.giant-net.com/schema/services/shared/1.0', 'ServiceHeader', $service_header ); return ($soap_header); } /** * * @param $pays Code Pays * @param $service Service demandé a Giant */ function getClient($pays, $service, $features = false) { $soap_header = BuiltHeaders($pays); $soap_client = new SoapClient(searchService($service), array('soap_version' => SOAP_1_1, 'login' => '006', 'password' => 'ClaudeMonet', 'trace' => true, 'features' => $features)); try { $soap_client->__setSoapHeaders($soap_header); } catch (SoapFault $faild) { echo getErreurSoap($client, $faild, true); } return ($soap_client); } ?>