diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebServiceToolWorkflow/WebServiceTool_input_url.py	Tue Jun 07 18:00:50 2011 -0400
@@ -0,0 +1,19 @@
+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])
+
+