Ejemplo n.º 1
0
    def _get_soap_headers(self):
        import oasis_200401_wss_wssecurity_secext_1_0_xsd_types
        from ZSI.schema import GED
        security = GED("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "Security").pyclass()
        token = GED("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "UsernameToken").pyclass()
        security.Any = [token]
        token.Username = '******'
        klass = GED("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "Password").pyclass
        token.Any = [klass('guest'),]

        return (security,)
Ejemplo n.º 2
0
    def _get_soap_headers(self):
        import oasis_200401_wss_wssecurity_secext_1_0_xsd_types
        from ZSI.schema import GED
        security = GED(
            "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
            "Security").pyclass()
        token = GED(
            "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
            "UsernameToken").pyclass()
        security.Any = [token]
        token.Username = '******'
        klass = GED(
            "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
            "Password").pyclass
        token.Any = [
            klass('guest'),
        ]

        return (security, )