forked from wsdl2phpgenerator/wsdl2phpgenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (20 loc) · 725 Bytes
/
README
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
README wsdl2phpgenerator
Simple WSDL to PHP classes converter. Takes a wsdl file and outputs class files ready to use.
Uses the MIT licence (http://www.opensource.org/licenses/mit-license.php)
Usage:
Use the executable (uses #!/usr/bin/php so change this first if you have php installed elsewhere) or use the Generator class directly.
Usage executable:
./wsdl2php -i input.wsdl -o /tmp/my/directory/wsdl
The directory is created if possible.
usage listed under ./wsdl2php -h
Usage code:
<?php
require_once __DIR__."/path/here/Generator.php";
$generator = Generator::instance();
$generator->setDisplayCallback( function( $msg ) {
echo "{$msg}\n";
});
$generator->generate(
new Config( SOAPSERVICE, SOAPDIR )
);
?>