-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate-classes.php
More file actions
25 lines (22 loc) · 832 Bytes
/
generate-classes.php
File metadata and controls
25 lines (22 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require("vendor/autoload.php");
error_reporting(E_ERROR | E_PARSE);
function generate($inputFile, $outputDir,$ns) {
$generator = new \Wsdl2PhpGenerator\Generator();
$generator->generate(
new \Wsdl2PhpGenerator\Config(array(
'inputFile' => $inputFile,
'outputDir' => $outputDir,
'namespaceName' => $ns
)
)
);
$filename = getcwd() . "/" . $outputDir."/"."AscioService.php";
echo "filename: ".$filename."\n";
}
echo "aws v3\n";
generate('https://aws.ascio.com/v3/aws.wsdl','src/v3/service','ascio\v3');
echo "aws v2\n";
generate('https://aws.ascio.com/2012/01/01/AscioService.wsdl','src/v2/service','ascio\v2');
echo "ascio dns\n";
generate('https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl','src/dns/service','ascio\dns');