Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 31f25c3687ae280d7aae49073301a340 > files > 490

python3-pyxb-1.2.6-2.mga7.noarch.rpm

URI='http://services.aonaware.com/DictService/DictService.asmx?WSDL'
PREFIX='dict'
WSDL="${PREFIX}.wsdl"
if [ ! -f ${WSDL} ] ; then
  wget -O ${WSDL} "${URI}"
fi

rm -rf raw
mkdir -p raw
touch raw/__init__.py
pyxbgen \
   --wsdl-location="${WSDL}" \
   --module="${PREFIX}" \
   --write-for-customization
if [ ! -f ${PREFIX}.py ] ; then
  echo "from raw.${PREFIX} import *" > ${PREFIX}.py
fi