Mercurial > repos > ganjoo > webservice_toolsuite
annotate WebServiceToolWorkflow/WebServiceTool_input_url.py~ @ 0:e7482c82796e default tip
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author | ganjoo |
---|---|
date | Tue, 07 Jun 2011 17:34:26 -0400 |
parents | |
children |
rev | line source |
---|---|
0
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
1 import platform |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
2 import os,sys |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
3 from getMethods import * |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
4 |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
5 url = sys.argv[1] |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
6 urllist = url.split('.') |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
7 |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
8 |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
9 wadlDocument = Document() |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
10 |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
11 if urllist[len(urllist)-1]=='wadl' or urllist[len(urllist)-1]=='WADL': |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
12 wadlDocument.getWADLMethods(url,sys.argv[2]) |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
13 elif urllist[len(urllist)-1]=='wsdl' or urllist[len(urllist)-1]=='WSDL': |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
14 wadlDocument.getWSDLMethods(url,sys.argv[2]) |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
15 elif urllist[len(urllist)-1]=='sawadl' or urllist[len(urllist)-1]=='SAWADL': |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
16 wadlDocument.getSAWADLMethods(url,sys.argv[2]) |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
17 |
e7482c82796e
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
ganjoo
parents:
diff
changeset
|
18 |