0
|
1 ##################################################
|
|
2 # PhylipService_services.py
|
|
3 # generated by ZSI.generate.wsdl2python
|
|
4 ##################################################
|
|
5
|
|
6
|
|
7
|
|
8 import urlparse, types
|
|
9 from ZSI.TCcompound import ComplexType, Struct
|
|
10 from ZSI import client
|
|
11 import ZSI
|
|
12
|
|
13 # Locator
|
|
14 class PhylipServiceLocator:
|
|
15 Phylip_address = "http://pathport.bioinformatics.vt.edu:6565/axis/services/phylip"
|
|
16 def getPhylipAddress(self):
|
|
17 return PhylipServiceLocator.Phylip_address
|
|
18 def getPhylip(self, url=None, **kw):
|
|
19 return phylipSoapBindingSOAP(url or PhylipServiceLocator.Phylip_address, **kw)
|
|
20
|
|
21 # Methods
|
|
22 class phylipSoapBindingSOAP:
|
|
23 def __init__(self, url, **kw):
|
|
24 kw.setdefault("readerclass", None)
|
|
25 kw.setdefault("writerclass", None)
|
|
26 # no resource properties
|
|
27 self.binding = client.Binding(url=url, **kw)
|
|
28 # no ws-addressing
|
|
29
|
|
30 # op: protpars
|
|
31 def protpars(self, request):
|
|
32 if isinstance(request, protparsRequest) is False:
|
|
33 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
34 kw = {}
|
|
35 # no input wsaction
|
|
36 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
37 # no output wsaction
|
|
38 typecode = Struct(pname=None, ofwhat=protparsResponse.typecode.ofwhat, pyclass=protparsResponse.typecode.pyclass)
|
|
39 response = self.binding.Receive(typecode)
|
|
40 return response
|
|
41
|
|
42 # op: dnapars
|
|
43 def dnapars(self, request):
|
|
44 if isinstance(request, dnaparsRequest) is False:
|
|
45 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
46 kw = {}
|
|
47 # no input wsaction
|
|
48 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
49 # no output wsaction
|
|
50 typecode = Struct(pname=None, ofwhat=dnaparsResponse.typecode.ofwhat, pyclass=dnaparsResponse.typecode.pyclass)
|
|
51 response = self.binding.Receive(typecode)
|
|
52 return response
|
|
53
|
|
54 # op: codeml
|
|
55 def codeml(self, request):
|
|
56 if isinstance(request, codemlRequest) is False:
|
|
57 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
58 kw = {}
|
|
59 # no input wsaction
|
|
60 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
61 # no output wsaction
|
|
62 typecode = Struct(pname=None, ofwhat=codemlResponse.typecode.ofwhat, pyclass=codemlResponse.typecode.pyclass)
|
|
63 response = self.binding.Receive(typecode)
|
|
64 return response
|
|
65
|
|
66 # op: dnaml
|
|
67 def dnaml(self, request):
|
|
68 if isinstance(request, dnamlRequest) is False:
|
|
69 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
70 kw = {}
|
|
71 # no input wsaction
|
|
72 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
73 # no output wsaction
|
|
74 typecode = Struct(pname=None, ofwhat=dnamlResponse.typecode.ofwhat, pyclass=dnamlResponse.typecode.pyclass)
|
|
75 response = self.binding.Receive(typecode)
|
|
76 return response
|
|
77
|
|
78 # op: aboutService
|
|
79 def aboutService(self, request):
|
|
80 if isinstance(request, aboutServiceRequest) is False:
|
|
81 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
82 kw = {}
|
|
83 # no input wsaction
|
|
84 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
85 # no output wsaction
|
|
86 typecode = Struct(pname=None, ofwhat=aboutServiceResponse.typecode.ofwhat, pyclass=aboutServiceResponse.typecode.pyclass)
|
|
87 response = self.binding.Receive(typecode)
|
|
88 return response
|
|
89
|
|
90 # op: aboutOperations
|
|
91 def aboutOperations(self, request):
|
|
92 if isinstance(request, aboutOperationsRequest) is False:
|
|
93 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
94 kw = {}
|
|
95 # no input wsaction
|
|
96 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
97 # no output wsaction
|
|
98 typecode = Struct(pname=None, ofwhat=aboutOperationsResponse.typecode.ofwhat, pyclass=aboutOperationsResponse.typecode.pyclass)
|
|
99 response = self.binding.Receive(typecode)
|
|
100 return response
|
|
101
|
|
102 # op: acknowledge
|
|
103 def acknowledge(self, request):
|
|
104 if isinstance(request, acknowledgeRequest) is False:
|
|
105 raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
106 kw = {}
|
|
107 # no input wsaction
|
|
108 self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
109 # no output wsaction
|
|
110 typecode = Struct(pname=None, ofwhat=acknowledgeResponse.typecode.ofwhat, pyclass=acknowledgeResponse.typecode.pyclass)
|
|
111 response = self.binding.Receive(typecode)
|
|
112 return response
|
|
113
|
|
114 class protparsRequest:
|
|
115 def __init__(self):
|
|
116 self._in0 = None
|
|
117 self._in1 = None
|
|
118 return
|
|
119 protparsRequest.typecode = Struct(pname=("urn:phylip","protpars"), ofwhat=[ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="in1", aname="_in1", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=protparsRequest, encoded="urn:phylip")
|
|
120
|
|
121 class protparsResponse:
|
|
122 def __init__(self):
|
|
123 self._protparsReturn = None
|
|
124 return
|
|
125 protparsResponse.typecode = Struct(pname=("urn:phylip","protparsResponse"), ofwhat=[ZSI.TC.String(pname="protparsReturn", aname="_protparsReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=protparsResponse, encoded="urn:phylip")
|
|
126
|
|
127 class dnaparsRequest:
|
|
128 def __init__(self):
|
|
129 self._in0 = None
|
|
130 self._in1 = None
|
|
131 return
|
|
132 dnaparsRequest.typecode = Struct(pname=("urn:phylip","dnapars"), ofwhat=[ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="in1", aname="_in1", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=dnaparsRequest, encoded="urn:phylip")
|
|
133
|
|
134 class dnaparsResponse:
|
|
135 def __init__(self):
|
|
136 self._dnaparsReturn = None
|
|
137 return
|
|
138 dnaparsResponse.typecode = Struct(pname=("urn:phylip","dnaparsResponse"), ofwhat=[ZSI.TC.String(pname="dnaparsReturn", aname="_dnaparsReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=dnaparsResponse, encoded="urn:phylip")
|
|
139
|
|
140 class codemlRequest:
|
|
141 def __init__(self):
|
|
142 self._in0 = None
|
|
143 self._in1 = None
|
|
144 return
|
|
145 codemlRequest.typecode = Struct(pname=("urn:phylip","codeml"), ofwhat=[ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="in1", aname="_in1", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=codemlRequest, encoded="urn:phylip")
|
|
146
|
|
147 class codemlResponse:
|
|
148 def __init__(self):
|
|
149 self._codemlReturn = None
|
|
150 return
|
|
151 codemlResponse.typecode = Struct(pname=("urn:phylip","codemlResponse"), ofwhat=[ZSI.TC.String(pname="codemlReturn", aname="_codemlReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=codemlResponse, encoded="urn:phylip")
|
|
152
|
|
153 class dnamlRequest:
|
|
154 def __init__(self):
|
|
155 self._in0 = None
|
|
156 self._in1 = None
|
|
157 return
|
|
158 dnamlRequest.typecode = Struct(pname=("urn:phylip","dnaml"), ofwhat=[ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="in1", aname="_in1", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=dnamlRequest, encoded="urn:phylip")
|
|
159
|
|
160 class dnamlResponse:
|
|
161 def __init__(self):
|
|
162 self._dnamlReturn = None
|
|
163 return
|
|
164 dnamlResponse.typecode = Struct(pname=("urn:phylip","dnamlResponse"), ofwhat=[ZSI.TC.String(pname="dnamlReturn", aname="_dnamlReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=dnamlResponse, encoded="urn:phylip")
|
|
165
|
|
166 class aboutServiceRequest:
|
|
167 def __init__(self):
|
|
168 return
|
|
169 aboutServiceRequest.typecode = Struct(pname=("urn:phylip","aboutService"), ofwhat=[], pyclass=aboutServiceRequest, encoded="urn:phylip")
|
|
170
|
|
171 class aboutServiceResponse:
|
|
172 def __init__(self):
|
|
173 self._aboutServiceReturn = None
|
|
174 return
|
|
175 aboutServiceResponse.typecode = Struct(pname=("urn:phylip","aboutServiceResponse"), ofwhat=[ZSI.TC.String(pname="aboutServiceReturn", aname="_aboutServiceReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=aboutServiceResponse, encoded="urn:phylip")
|
|
176
|
|
177 class aboutOperationsRequest:
|
|
178 def __init__(self):
|
|
179 return
|
|
180 aboutOperationsRequest.typecode = Struct(pname=("urn:phylip","aboutOperations"), ofwhat=[], pyclass=aboutOperationsRequest, encoded="urn:phylip")
|
|
181
|
|
182 class aboutOperationsResponse:
|
|
183 def __init__(self):
|
|
184 self._aboutOperationsReturn = None
|
|
185 return
|
|
186 aboutOperationsResponse.typecode = Struct(pname=("urn:phylip","aboutOperationsResponse"), ofwhat=[ZSI.TC.String(pname="aboutOperationsReturn", aname="_aboutOperationsReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=aboutOperationsResponse, encoded="urn:phylip")
|
|
187
|
|
188 class acknowledgeRequest:
|
|
189 def __init__(self):
|
|
190 self._in0 = None
|
|
191 self._in1 = None
|
|
192 return
|
|
193 acknowledgeRequest.typecode = Struct(pname=("urn:phylip","acknowledge"), ofwhat=[ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="in1", aname="_in1", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=acknowledgeRequest, encoded="urn:phylip")
|
|
194
|
|
195 class acknowledgeResponse:
|
|
196 def __init__(self):
|
|
197 self._acknowledgeReturn = None
|
|
198 return
|
|
199 acknowledgeResponse.typecode = Struct(pname=("urn:phylip","acknowledgeResponse"), ofwhat=[ZSI.TC.String(pname="acknowledgeReturn", aname="_acknowledgeReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=acknowledgeResponse, encoded="urn:phylip")
|