view 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
line wrap: on
line source

import platform
import os,sys
from getMethods import *

url = sys.argv[1]
urllist = url.split('.')

#instantiate a Document   
wadlDocument = Document()

#depending on the extension on the document passed call the appropriate method
if urllist[len(urllist)-1]=='wadl' or urllist[len(urllist)-1]=='WADL':
    wadlDocument.getWADLMethods(url,sys.argv[2])
elif urllist[len(urllist)-1]=='wsdl' or urllist[len(urllist)-1]=='WSDL':
    wadlDocument.getWSDLMethods(url,sys.argv[2])
elif urllist[len(urllist)-1]=='sawadl' or urllist[len(urllist)-1]=='SAWADL':
    wadlDocument.getSAWADLMethods(url,sys.argv[2])