Esempio n. 1
0
class PortletsProducer(BrowserPage, Application):
    """Container of portlets, made available via web services.
    """

    transport = 'http://schemas.xmlsoap.org/soap/http'

    def __init__(self, context, request):
        BrowserPage.__init__(self, context, request)

        self.soap_app = Application(
                             services=[
                                 WSRP_v1_ServiceDescription,
                                 WSRP_v1_Markup,
                                 WSRP_v1_Registration,
                                 WSRP_v1_PortletManagement,
                                 ],
                             tns=WSRP_TYPES_NAMESPACE,
                             name='WSRP_v1_Service',
                             _wsdl_generation=None,
                             _endpoint_url=self.request.getURL(),
                             )
        self.soaplib_handler = SoaplibHandler(
                                self.request,
                                self.soap_app
                                )

    def __call__(self, *args, **kw):
        """  """
        self.soaplib_handler.handle_request()
Esempio n. 2
0
class WSDLView(BrowserView):
    """Display a wsdl
    """

    def __init__(self, context, request):
        BrowserView.__init__(self, context, request)
        soap_app = consturct_soaplib_application([SoapService], "T2")
        self.soaplib_handler = SoaplibHandler(self.request, soap_app)


    def __call__(self, *args, **kwargs):
        return self.soaplib_handler.handle_request()
Esempio n. 3
0
    def __init__(self, context, request):
        BrowserPage.__init__(self, context, request)

        self.soap_app = Application(
                             services=[
                                 WSRP_v1_ServiceDescription,
                                 WSRP_v1_Markup,
                                 WSRP_v1_Registration,
                                 WSRP_v1_PortletManagement,
                                 ],
                             tns=WSRP_TYPES_NAMESPACE,
                             name='WSRP_v1_Service',
                             _wsdl_generation=None,
                             _endpoint_url=self.request.getURL(),
                             )
        self.soaplib_handler = SoaplibHandler(
                                self.request,
                                self.soap_app
                                )
Esempio n. 4
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     soap_app = consturct_soaplib_application([SoapService], "T2")
     self.soaplib_handler = SoaplibHandler(self.request, soap_app)