view WebServiceToolWorkflow/WebServiceTool1.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 warnings
import platform
import os,sys
from getMethods import *
from getMethods1 import *

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

        
wadlDocument = Document()
#wadlDocument1 = Document1()

if urllist[len(urllist)-1]=='wadl' or urllist[len(urllist)-1]=='WADL':
    wadlDocument.getWADLMethods(url,sys.argv[2])
 #   wadlDocument1.getWADLMethods(url,sys.argv[2])
elif urllist[len(urllist)-1]=='wsdl' or urllist[len(urllist)-1]=='WSDL':
    wadlDocument.getWSDLMethods(url,sys.argv[2])
 #   wadlDocument1.getWSDLMethods(url,sys.argv[2])
elif urllist[len(urllist)-1]=='sawadl' or urllist[len(urllist)-1]=='SAWADL':
    wadlDocument.getSAWADLMethods(url,sys.argv[2])
  #  wadlDocument1.getSAWADLMethods(url,sys.argv[2])