Package Pmv :: Module SecuritymyproxyloginImplService_services
[hide private]
[frames] | no frames]

Source Code for Module Pmv.SecuritymyproxyloginImplService_services

  1  ##################################################  
  2  # ./SecuritymyproxyloginImplService_services.py  
  3  # generated by ZSI.wsdl2python  
  4  #  
  5  #  
  6  ################################################## 
  7   
  8   
  9  import urlparse, types 
 10  from ZSI.TCcompound import Struct 
 11  from ZSI import client 
 12  import ZSI 
 13   
14 -class SecuritymyproxyloginImplServiceInterface:
15 - def getSecuritymyproxyloginImpl(self, portAddress=None, **kw):
16 raise NonImplementationError, "method not implemented"
17 18
19 -class SecuritymyproxyloginImplServiceLocator(SecuritymyproxyloginImplServiceInterface):
20 SecuritymyproxyloginImpl_address = "https://gama.nbcr.net:9443/axis/services/SecurityMyproxyloginService" 23
24 - def getSecuritymyproxyloginImpl(self, portAddress=None, **kw):
26 27
28 -class SecurityMyproxyloginServiceSoapBindingSOAP:
29
30 - def __init__(self, addr, **kw):
31 netloc = (urlparse.urlparse(addr)[1]).split(":") + [80,] 32 if not kw.has_key("host"): 33 kw["host"] = netloc[0] 34 if not kw.has_key("port"): 35 kw["port"] = int(netloc[1]) 36 if not kw.has_key("url"): 37 kw["url"] = urlparse.urlparse(addr)[2] 38 self.binding = client.Binding(**kw)
39 40
41 - def loginUserMyProxy(self, request):
42 """ 43 @param: request to loginUserMyProxyRequest:: 44 _passwd: str 45 _username: str 46 47 @return: response from loginUserMyProxyResponse:: 48 _loginUserMyProxyReturn: str 49 """ 50 51 if not isinstance(request, loginUserMyProxyRequest) and\ 52 not issubclass(loginUserMyProxyRequest, request.__class__): 53 raise TypeError, "%s incorrect request type" %(request.__class__) 54 kw = {} 55 response = self.binding.Send(None, None, request, soapaction="", **kw) 56 response = self.binding.Receive(loginUserMyProxyResponseWrapper()) 57 58 if not isinstance(response, loginUserMyProxyResponse) and\ 59 not issubclass(loginUserMyProxyResponse, response.__class__): 60 raise TypeError, "%s incorrect response type" %(response.__class__) 61 return response
62 63 64
65 -class loginUserMyProxyRequest (ZSI.TCcompound.Struct):
66 - def __init__(self, name=None, ns=None):
67 self._username = None 68 self._passwd = None 69 70 oname = None 71 if name: 72 oname = name 73 if ns: 74 oname += ' xmlns="%s"' % ns 75 ZSI.TC.Struct.__init__(self, loginUserMyProxyRequest, [ZSI.TC.String(pname="username",aname="_username",optional=1),ZSI.TC.String(pname="passwd",aname="_passwd",optional=1),], pname=name, aname="%s" % name, oname=oname )
76
77 -class loginUserMyProxyRequestWrapper(loginUserMyProxyRequest):
78 """wrapper for rpc:encoded message""" 79 80 typecode = loginUserMyProxyRequest(name='loginUserMyProxy', ns='urn:axis')
81 - def __init__( self, name=None, ns=None, **kw ):
82 loginUserMyProxyRequest.__init__( self, name='loginUserMyProxy', ns='urn:axis' )
83
84 -class loginUserMyProxyResponse (ZSI.TCcompound.Struct):
85 - def __init__(self, name=None, ns=None):
86 self._loginUserMyProxyReturn = None 87 88 oname = None 89 if name: 90 oname = name 91 if ns: 92 oname += ' xmlns="%s"' % ns 93 ZSI.TC.Struct.__init__(self, loginUserMyProxyResponse, [ZSI.TC.String(pname="loginUserMyProxyReturn",aname="_loginUserMyProxyReturn",optional=1),], pname=name, aname="%s" % name, oname=oname )
94
95 -class loginUserMyProxyResponseWrapper(loginUserMyProxyResponse):
96 """wrapper for rpc:encoded message""" 97 98 typecode = loginUserMyProxyResponse(name='loginUserMyProxyResponse', ns='urn:axis')
99 - def __init__( self, name=None, ns=None, **kw ):
100 loginUserMyProxyResponse.__init__( self, name='loginUserMyProxyResponse', ns='urn:axis' )
101