comparison WebServiceToolWorkflow/WebServiceTool_input_url.py @ 0:d5cd409b8a18 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 18:00:50 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d5cd409b8a18
1 import platform
2 import os,sys
3 from getMethods import *
4
5 url = sys.argv[1]
6 urllist = url.split('.')
7
8 #instantiate a Document
9 wadlDocument = Document()
10
11 #depending on the extension on the document passed call the appropriate method
12 if urllist[len(urllist)-1]=='wadl' or urllist[len(urllist)-1]=='WADL':
13 wadlDocument.getWADLMethods(url,sys.argv[2])
14 elif urllist[len(urllist)-1]=='wsdl' or urllist[len(urllist)-1]=='WSDL':
15 wadlDocument.getWSDLMethods(url,sys.argv[2])
16 elif urllist[len(urllist)-1]=='sawadl' or urllist[len(urllist)-1]=='SAWADL':
17 wadlDocument.getSAWADLMethods(url,sys.argv[2])
18
19