-
Notifications
You must be signed in to change notification settings - Fork 2
/
generate.sh
executable file
·35 lines (31 loc) · 1.13 KB
/
generate.sh
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
# get the latest wsdltophp.phar
if [ ! -f wsdltophp.phar ]; then
echo "Download wsdltophp.phar once";
wget https://phar.wsdltophp.com/wsdltophp.phar;
fi
# get current folder
DEST=`pwd`;
# clean current folder
rm -rf $DEST/src/ \
$DEST/tutorial.php \
$DEST/composer.json \
$DEST/composer.lock;
# package informations
php-7.4 -dmemory_limit=-1 wsdltophp.phar generate:package \
--urlorpath=$DEST"/wsdl/services.updated.wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-ews365" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
--soapclient="SoapClient\SoapClientBase" \
--prefix="Ews";
# generate package
php-7.4 -dmemory_limit=-1 wsdltophp.phar generate:package \
--urlorpath=$DEST"/wsdl/services.updated.wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-ews365" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
--soapclient="SoapClient\SoapClientBase" \
--prefix="Ews" \
--force;