axis_examplecompt_changesinfo-ops
Last change
on this file since aaf7f41 was
fbee30a,
checked in by Ted Faber <faber@…>, 14 years ago
|
Compile WSDL using ZSI 2.0 or ZSI 2.1
|
-
Property mode set to
100644
|
File size:
455 bytes
|
Rev | Line | |
---|
[fbee30a] | 1 | #!/usr/local/bin/python |
---|
| 2 | |
---|
| 3 | import ZSI |
---|
| 4 | import sys |
---|
| 5 | import subprocess |
---|
| 6 | |
---|
| 7 | from string import join |
---|
| 8 | |
---|
| 9 | ver = ZSI.Version() |
---|
| 10 | |
---|
| 11 | cmd = ['wsdl2py'] |
---|
| 12 | |
---|
| 13 | if ver[0] == 2: |
---|
| 14 | if ver[1] == 0: |
---|
| 15 | # ZSI 2.0 |
---|
| 16 | cmd.extend(sys.argv[1:-1] + ['--file', sys.argv[-1]]) |
---|
| 17 | elif ver[1] == 1: |
---|
| 18 | cmd.extend(sys.argv[1:]) |
---|
| 19 | else: |
---|
| 20 | sys.exit("Unknown version: %s" % join(ver, ".")) |
---|
| 21 | else: |
---|
| 22 | sys.exit("Unknown version: %s" % join(ver, ".")) |
---|
| 23 | |
---|
| 24 | print "%s" % join(cmd) |
---|
| 25 | sys.exit(subprocess.call(cmd)) |
---|
Note: See
TracBrowser
for help on using the repository browser.