1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
ini_set('display_errors', 1);
ini_set('error_reporting', -1);
$file = "https://62.209.222.22/data-receiver-ws/endpoints/DataService.wsdl";
$client = new \Soapclient($file, array(
'version' => SOAP_1_1,
'cache_wsdl' => WSDL_CACHE_NONE,
'cache_ttl' => 86400,
'trace' => true,
'exceptions' => true
));
$functions = $client->__getFunctions();
$types = $client->__getTypes();
foreach ($functions as $value) {
var_dump($value);
echo "<br>";
}
echo "<br>";
foreach ($types as $value) {
var_dump($value);
echo "<br>";
}
$test = array(
"Header" => array(
"Verb" => "get",
"Noun" => "EnergyAccountReport",
"Context" => "PRODUCTION",
"Timestamp" => date("Y-m-d H:i:s"),
"AckRequired" => true
),
"Request" => array(
"StartTime" => "2015-02-01 00:00:00",
"EndTime" => "2015-03-01 00:00:00",
"Options" => array(
array(
"name" => "DataItem",
"Value" => "DAY_AHEAD_AGGREGATED_GENERATION"
),
array(
"name" => "AREA|CTA",
"Value" => "10YFR-RTE------C"
)
)
)
);
$result = $client->__soapCall("request", [$test]);
print_r($result); |
Partager