##################################################
# file: SessionService_server.py
#
# skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
#      wsdl2py -bd //fayfiler/seecoapps/gis/projects/enerdeq/wsdl/Session3.wsdl
#
##################################################

from ZSI.schema import GED, GTD
from ZSI.TCcompound import ComplexType, Struct
from SessionService_types import *
from ZSI.ServiceContainer import ServiceSOAPBinding

# Messages  
LoginSoapIn = GED("http://www.ihsenergy.com/Enerdeq/Schemas/Session", "LoginRequest").pyclass

LoginSoapOut = GED("http://www.ihsenergy.com/Enerdeq/Schemas/Session", "LoginResponse").pyclass

LogoutSoapIn = GED("http://www.ihsenergy.com/Enerdeq/Schemas/Session", "LogoutRequest").pyclass

LogoutSoapOut = GED("http://www.ihsenergy.com/Enerdeq/Schemas/Session", "LogoutResponse").pyclass


# Service Skeletons
class SessionService(ServiceSOAPBinding):
    soapAction = {}
    root = {}

    def __init__(self, post='/WebServices/Session', **kw):
        ServiceSOAPBinding.__init__(self, post)

    def soap_Login(self, ps, **kw):
        request = ps.Parse(LoginSoapIn.typecode)
        return request,LoginSoapOut()

    soapAction['http://www.ihsenergy.com/Enerdeq/Schemas/Session/Login'] = 'soap_Login'
    root[(LoginSoapIn.typecode.nspname,LoginSoapIn.typecode.pname)] = 'soap_Login'

    def soap_Logout(self, ps, **kw):
        request = ps.Parse(LogoutSoapIn.typecode)
        return request,LogoutSoapOut()

    soapAction['http://www.ihsenergy.com/Enerdeq/Schemas/Session/Logout'] = 'soap_Logout'
    root[(LogoutSoapIn.typecode.nspname,LogoutSoapIn.typecode.pname)] = 'soap_Logout'

