blob: 21be5f50a1bab56253aefecd035f49fbe0b4cfa6 (
plain)
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
|
PYTHONPATH=../..
export PYTHONPATH
URI='http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML.xsd'
PREFIX='DWML'
rm -rf raw
mkdir -p raw
touch raw/__init__.py
../../scripts/pyxbgen \
-u "${URI}" \
-m "${PREFIX}" \
-r --write-schema-path . || exit
if [ ! -f ${PREFIX}.py ] ; then
echo "from raw.${PREFIX} import *" > ${PREFIX}.py
fi
# Retrieve the wsdl. Heck, show it off even. Just not using it yet.
WSDL_URI='http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl'
if [ ! -f ndfdXML.wsdl ] ; then
wget ${WSDL_URI}
fi
../../scripts/pyxbgen \
-u "${WSDL_URI}" \
-m ndfd \
-r -W || exit
../../scripts/pyxbwsdl file:ndfdXML.wsdl
# Get an example query
if [ ! -f NDFDgen.xml ] ; then
wget http://www.weather.gov/forecasts/xml/docs/SOAP_Requests/NDFDgen.xml
fi
|