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

Source Code for Module Pmv.SecurityuserimportImplService_services

 1  ##################################################  
 2  # ./SecurityuserimportImplService_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 SecurityuserimportImplServiceInterface:
15 - def getSecurityuserimportImpl(self, portAddress=None, **kw):
16 raise NonImplementationError, "method not implemented"
17 18
19 -class SecurityuserimportImplServiceLocator(SecurityuserimportImplServiceInterface):
20 SecurityuserimportImpl_address = "https://gama.nbcr.net:9443/axis/services/SecurityUserImportService" 23
24 - def getSecurityuserimportImpl(self, portAddress=None, **kw):
26 27
28 -class SecurityUserImportServiceSoapBindingSOAP:
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 listUsers(self, request):
42 """ 43 @param: request to listUsersRequest 44 @return: response from listUsersResponse:: 45 _listUsersReturn: str 46 """ 47 48 if not isinstance(request, listUsersRequest) and\ 49 not issubclass(listUsersRequest, request.__class__): 50 raise TypeError, "%s incorrect request type" %(request.__class__) 51 kw = {} 52 response = self.binding.Send(None, None, request, soapaction="", **kw) 53 response = self.binding.Receive(listUsersResponseWrapper()) 54 55 if not isinstance(response, listUsersResponse) and\ 56 not issubclass(listUsersResponse, response.__class__): 57 raise TypeError, "%s incorrect response type" %(response.__class__) 58 return response
59 60 61
62 -class listUsersRequest (ZSI.TCcompound.Struct):
63 - def __init__(self, name=None, ns=None):
64 65 oname = None 66 if name: 67 oname = name 68 if ns: 69 oname += ' xmlns="%s"' % ns 70 ZSI.TC.Struct.__init__(self, listUsersRequest, [], pname=name, aname="%s" % name, oname=oname )
71
72 -class listUsersRequestWrapper(listUsersRequest):
73 """wrapper for rpc:encoded message""" 74 75 typecode = listUsersRequest(name='listUsers', ns='urn:axis')
76 - def __init__( self, name=None, ns=None, **kw ):
77 listUsersRequest.__init__( self, name='listUsers', ns='urn:axis' )
78
79 -class listUsersResponse (ZSI.TCcompound.Struct):
80 - def __init__(self, name=None, ns=None):
81 self._listUsersReturn = None 82 83 oname = None 84 if name: 85 oname = name 86 if ns: 87 oname += ' xmlns="%s"' % ns 88 ZSI.TC.Struct.__init__(self, listUsersResponse, [ZSI.TC.String(pname="listUsersReturn",aname="_listUsersReturn",optional=1),], pname=name, aname="%s" % name, oname=oname )
89
90 -class listUsersResponseWrapper(listUsersResponse):
91 """wrapper for rpc:encoded message""" 92 93 typecode = listUsersResponse(name='listUsersResponse', ns='urn:axis')
94 - def __init__( self, name=None, ns=None, **kw ):
95 listUsersResponse.__init__( self, name='listUsersResponse', ns='urn:axis' )
96