def __init__(self, **kw): Struct.__init__(self, ActorFaultDetail, [ String(pname=(ZSI_SCHEMA_URI, 'URI')), ], pname=(ZSI_SCHEMA_URI, 'ActorFaultDetail'), **kw)
def __init__(self, **kw): Struct.__init__(self, URIFaultDetail, [ String(pname=(ZSI_SCHEMA_URI, 'URI')), String(pname=(ZSI_SCHEMA_URI, 'localname')), ], pname=(ZSI_SCHEMA_URI, 'URIFaultDetail'), **kw)
def __init__(self, **kw): Struct.__init__( self, ZSIFaultDetail, [ String(pname=(ZSI_SCHEMA_URI, 'string')), String(pname=(ZSI_SCHEMA_URI, 'trace'), minOccurs=0), ], pname=(ZSI_SCHEMA_URI, 'FaultDetail'), **kw)
def getPolicyInfo3(self, request, **kw): if isinstance(request, getPolicyInfoRequest3) is False: raise TypeError, "%s incorrect request type" % (request.__class__) # no input wsaction self.binding.Send(None, None, request, soapaction="urn:xmethods-delayed-quotes#getPolicyInfo3", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw) # no output wsaction typecode = Struct(pname=None, ofwhat=getPolicyInfoResponse3.typecode.ofwhat, pyclass=getPolicyInfoResponse3.typecode.pyclass) response = self.binding.Receive(typecode) return response
def removeCertificate(self, request): if isinstance(request, removeCertificateRequest) is False: raise TypeError, "%s incorrect request type" % (request.__class__) kw = {} # no input wsaction self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw) # no output wsaction typecode = Struct(pname=None, ofwhat=removeCertificateResponse.typecode.ofwhat, pyclass=removeCertificateResponse.typecode.pyclass) response = self.binding.Receive(typecode) return response
def get_typecode(cls): return Struct(FaultType, [ QName(pname='faultcode'), String(pname='faultstring'), URI(pname=(SOAP.ENV, 'faultactor'), minOccurs=0), Detail.typecode, AnyElement(aname='any', minOccurs=0, maxOccurs=UNBOUNDED, processContents="lax"), ], pname=(SOAP.ENV, 'Fault'), inline=True, hasextras=0)
def getalerts(self, request, **kw): if isinstance(request, GetAlertsRequest) is False: raise TypeError, "%s incorrect request type" % (request.__class__) # no input wsaction self.binding.Send( None, None, request, soapaction="urn:PyVision#getalerts", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw) # no output wsaction typecode = Struct(pname=None, ofwhat=GetAlertsResponse.typecode.ofwhat, pyclass=GetAlertsResponse.typecode.pyclass) response = self.binding.Receive(typecode) return response
def UpdateDoctors(self, request, **kw): if isinstance(request, UpdateDoctors3Request) is False: raise TypeError, "%s incorrect request type" % (request.__class__) # no input wsaction self.binding.Send( None, None, request, soapaction="urn:unAcrossIntf-IConvert#UpdateDoctors", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw) # no output wsaction typecode = Struct(pname=None, ofwhat=UpdateDoctors3Response.typecode.ofwhat, pyclass=UpdateDoctors3Response.typecode.pyclass) response = self.binding.Receive(typecode) return response
def __init__(self, **kw): Struct.__init__(self, ZSIFaultDetail, [String(pname=(ZSI_SCHEMA_URI, 'string')), String(pname=(ZSI_SCHEMA_URI, 'trace'),minOccurs=0),], pname=(ZSI_SCHEMA_URI, 'FaultDetail'), **kw )
def __init__(self, **kw): Struct.__init__(self, ActorFaultDetail, [String(pname=(ZSI_SCHEMA_URI, 'URI')),], pname=(ZSI_SCHEMA_URI, 'ActorFaultDetail'), **kw )
import urlparse, types from ZSI.TCcompound import ComplexType, Struct import ZSI class listRolesRequest: def __init__(self): self._in0 = None self._in1 = None return listRolesRequest.typecode = Struct( pname=( "http://glite.org/wsdl/services/org.glite.security.voms.service.admin", "listRoles"), ofwhat=[], pyclass=listRolesRequest, encoded= "http://glite.org/wsdl/services/org.glite.security.voms.service.admin") class listRolesResponse: def __init__(self): self._listRolesReturn = None return listRolesResponse.typecode = Struct( pname=( "http://glite.org/wsdl/services/org.glite.security.voms.service.admin", "listRolesResponse"),
def __init__(self, name=None, ns=None): getAppMetadataRequest.typecode = Struct(getAppMetadataRequest,[], pname=name, aname="%s" % name, oname="%s xmlns=\"\"" % name )
class _AuthHeader: """<BasicAuth xmlns="ZSI_SCHEMA_URI"> <Name>%s</Name><Password>%s</Password> </BasicAuth> """ def __init__(self, name=None, password=None): self.Name = name self.Password = password _AuthHeader.typecode = Struct(_AuthHeader, ofwhat=(String((ZSI_SCHEMA_URI, 'Name'), typed=False), String((ZSI_SCHEMA_URI, 'Password'), typed=False)), pname=(ZSI_SCHEMA_URI, 'BasicAuth'), typed=False) class _Caller: '''Internal class used to give the user a callable object that calls back to the Binding object to make an RPC call. ''' def __init__(self, binding, name, namespace=None): self.binding = binding self.name = name self.namespace = namespace def __call__(self, *args):
# Messages class EchoRequest: def __init__(self, **kw): """Keyword parameters: Message -- part Message """ self._Message = kw.get("Message") EchoRequest.typecode = Struct(pname=("urn:Test", "echo"), ofwhat=[ ZSI.TC.String(pname="Message", aname="_Message", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True) ], pyclass=EchoRequest, encoded="urn:Test") class EchoResponse: def __init__(self, **kw): """Keyword parameters: Message -- part Message """ self._Message = kw.get("Message")
from ZSI.wstools.Namespaces import SOAP, ZSI_SCHEMA_URI from ZSI.wstools.c14n import Canonicalize from ZSI.TC import ElementDeclaration import traceback, cStringIO as StringIO class Detail: def __init__(self, any=None): self.any = any Detail.typecode = Struct(Detail, [ AnyElement( aname='any', minOccurs=0, maxOccurs="unbounded", processContents="lax") ], pname='detail', minOccurs=0) class FaultType: def __init__(self, faultcode=None, faultstring=None, faultactor=None, detail=None): self.faultcode = faultcode self.faultstring = faultstring self.faultactor = faultactor self.detail = detail self.typecode = self.get_typecode()
# limitations under the License. # # Authors: # Andrea Ceccanti (INFN) # from VOMSCertificatesService_services_types import * import urlparse, types from ZSI.TCcompound import ComplexType, Struct import ZSI serviceNameSpace = "http://glite.org/wsdl/services/org.glite.security.voms.service.certificates" _getCertificatesRequestTypecode = Struct(pname=(serviceNameSpace,"getCertificates"), ofwhat=[ZSI.TC.String(pname="subject", aname="_subject", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="issuer", aname="_issuer", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded=serviceNameSpace) class getCertificatesRequest: typecode = _getCertificatesRequestTypecode __metaclass__ = pyclass_type def __init__(self): self._subject = None self._issuer = None return getCertificatesRequest.typecode.pyclass = getCertificatesRequest _getCertificatesResponseTypecode = Struct(pname=("http://glite.org/wsdl/services/org.glite.security.voms.service.certificates","getCertificatesResponse"), ofwhat=[ns0.ArrayOfX509Certificate_Def(pname="getCertificatesReturn", aname="_getCertificatesReturn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://glite.org/wsdl/services/org.glite.security.voms.service.certificates") class getCertificatesResponse: typecode = _getCertificatesResponseTypecode __metaclass__ = pyclass_type def __init__(self):
class createAttributeClassRequest2: def __init__(self): self._in0 = None return createAttributeClassRequest2.typecode = Struct( pname= ("http://glite.org/wsdl/services/org.glite.security.voms.service.attributes", "createAttributeClass"), ofwhat=[ ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True) ], pyclass=createAttributeClassRequest2, encoded= "http://glite.org/wsdl/services/org.glite.security.voms.service.attributes" ) class createAttributeClassResponse2: def __init__(self): return
_createAttributeClassRequestTypecode = Struct( pname= ("http://glite.org/wsdl/services/org.glite.security.voms.service.attributes", "createAttributeClass"), ofwhat=[ ZSI.TC.String(pname="name", aname="_name", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=False), ZSI.TC.String(pname="description", aname="_description", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.Boolean(pname="unique", aname="_unique", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True) ], pyclass=None, encoded= "http://glite.org/wsdl/services/org.glite.security.voms.service.attributes" )
def __init__(self, **kw): Struct.__init__(self, URIFaultDetail, [String(pname=(ZSI_SCHEMA_URI, 'URI')), String(pname=(ZSI_SCHEMA_URI, 'localname')),], pname=(ZSI_SCHEMA_URI, 'URIFaultDetail'), **kw )
class getACLRequest: def __init__(self): self._in0 = None return getACLRequest.typecode = Struct( pname=( "http://glite.org/wsdl/services/org.glite.security.voms.service.acl", "getACL"), ofwhat=[ ZSI.TC.String(pname="in0", aname="_in0", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True) ], pyclass=getACLRequest, encoded="http://glite.org/wsdl/services/org.glite.security.voms.service.acl" ) class getACLResponse: def __init__(self): self._getACLReturn = None return
from ZSI.TC import QName, URI, String, XMLString, AnyElement, UNBOUNDED from ZSI.wstools.Namespaces import SOAP, ZSI_SCHEMA_URI from ZSI.wstools.c14n import Canonicalize from ZSI.TC import ElementDeclaration import traceback, io as StringIO class Detail: def __init__(self, any=None): self.any = any Detail.typecode = Struct( Detail, [AnyElement(aname='any', minOccurs=0, maxOccurs="unbounded")], pname='detail', minOccurs=0) class FaultType: def __init__(self, faultcode=None, faultstring=None, faultactor=None, detail=None): self.faultcode = faultcode self.faultstring = faultstring self.faultactor = faultactor self.detail = detail FaultType.typecode = \
return response # op: getUserIdFromDn def getUserIdFromDn(self, request): if isinstance(request, getUserIdFromDnRequest) is False: raise TypeError, "%s incorrect request type" % (request.__class__) kw = {} # no input wsaction self.binding.Send(None, None, request, soapaction="", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw) # no output wsaction typecode = Struct(pname=None, ofwhat=getUserIdFromDnResponse.typecode.ofwhat, pyclass=getUserIdFromDnResponse.typecode.pyclass) response = self.binding.Receive(typecode) return response _removeCertificateRequestTypecode = Struct(pname=("http://service.admin.voms.security.glite.org","removeCertificate"), ofwhat=[ns0.X509Certificate_Def(pname="cert", aname="_cert", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://service.admin.voms.security.glite.org") class removeCertificateRequest: typecode = _removeCertificateRequestTypecode __metaclass__ = pyclass_type def __init__(self): self._cert = None return removeCertificateRequest.typecode.pyclass = removeCertificateRequest _removeCertificateResponseTypecode = Struct(pname=("http://glite.org/wsdl/services/org.glite.security.voms.service.certificates","removeCertificateResponse"), ofwhat=[], pyclass=None, encoded="http://glite.org/wsdl/services/org.glite.security.voms.service.certificates") class removeCertificateResponse: typecode = _removeCertificateResponseTypecode __metaclass__ = pyclass_type def __init__(self): return removeCertificateResponse.typecode.pyclass = removeCertificateResponse
################################################## # file: IConvertservice_server.py # # skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter" # /usr/bin/wsdl2py -b IConvert.wsdl # ################################################## from ZSI.TCcompound import Struct from IConvertservice_types import * from ZSI.ServiceContainer import ServiceSOAPBinding # Messages _GiveNewOrders0RequestTypecode = Struct(pname=("urn:unAcrossIntf-IConvert","GiveNewOrders"), ofwhat=[ZSI.TC.String(pname="Value", aname="_Value", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="urn:unAcrossIntf-IConvert") class GiveNewOrders0Request: typecode = _GiveNewOrders0RequestTypecode __metaclass__ = pyclass_type def __init__(self, **kw): """Keyword parameters: Value -- part Value """ self._Value = kw.get("Value") GiveNewOrders0Request.typecode.pyclass = GiveNewOrders0Request _GiveNewOrders0ResponseTypecode = Struct(pname=("urn:unAcrossIntf-IConvert","GiveNewOrdersResponse"), ofwhat=[ZSI.TCnumbers.Iint(pname="return", aname="_return", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="urn:unAcrossIntf-IConvert") class GiveNewOrders0Response: typecode = _GiveNewOrders0ResponseTypecode __metaclass__ = pyclass_type def __init__(self, **kw): """Keyword parameters: return -- part return
getPolicyInfoRequest3.typecode = Struct( pname=("urn:xmethods-delayed-quotes", "getPolicyInfo3"), ofwhat=[ ZSI.TC.String(pname="paramSource", aname="paramSource", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TCnumbers.Iint(pname="paramRID", aname="paramRID", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="paramForDate", aname="paramForDate", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="personSurname", aname="personSurname", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="personName", aname="personName", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="personPatronymic", aname="personPatronymic", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="personSex", aname="personSex", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="personBirthDate", aname="personBirthDate", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TCnumbers.IunsignedByte(pname="identityType", aname="identityType", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="identitySeries", aname="identitySeries", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="identityNumber", aname="identityNumber", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="Snils", aname="Snils", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TCnumbers.IunsignedByte(pname="policyType", aname="policyType", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="policySeries", aname="policySeries", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True), ZSI.TC.String(pname="policyNumber", aname="policyNumber", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True) ], pyclass=getPolicyInfoRequest3, encoded="urn:xmethods-delayed-quotes")
# Messages class EchoRequest: def __init__(self, **kw): """Keyword parameters: Message -- part Message """ self._Message = kw.get("Message") EchoRequest.typecode = Struct(pname=("urn:PyVision", "echo"), ofwhat=[ ZSI.TC.String(pname="Message", aname="_Message", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True) ], pyclass=EchoRequest, encoded="urn:PyVision") class EchoResponse: def __init__(self, **kw): """Keyword parameters: Message -- part Message """ self._Message = kw.get("Message")
# no resource properties self.binding = client.Binding(url=url, tracefile=sys.stdout, **kw) # no ws-addressing # op: generateRoutes def generateRoutes(self, request): if isinstance(request, generateRoutesRequest) is False: raise TypeError, "%s incorrect request type" % (request.__class__) kw = {} # no input wsaction self.binding.Send(None, None, request, soapaction="None", **kw) # no output wsaction response = self.binding.Receive(generateRoutesResponse.typecode) return response _generateRoutesRequestTypecode = Struct(pname=("http://www.nextone.com/ivms/wsdl","generateRoutes"), ofwhat=[ns0.editConfig_Def(pname="generateRoutesRequest", aname="_generateRoutesRequest", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.nextone.com/ivms/wsdl") class generateRoutesRequest: typecode = _generateRoutesRequestTypecode __metaclass__ = pyclass_type def __init__(self): self._generateRoutesRequest = None return generateRoutesRequest.typecode.pyclass = generateRoutesRequest _generateRoutesResponseTypecode = Struct(pname=("http://www.nextone.com/ivms/wsdl","generateRoutesResponse"), ofwhat=[ns0.reply_Def(pname="generateRoutesReply", aname="_generateRoutesReply", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.nextone.com/ivms/wsdl") class generateRoutesResponse: typecode = _generateRoutesResponseTypecode __metaclass__ = pyclass_type def __init__(self): self._generateRoutesReply = None return