hwd888 0 Newbie Poster

I am new one for python web service. I need to switch the below java webservice client source code to python.Two services. One is systemService, the other is queueService. It needs to maintain session for queueService to use the connection to inews server in systemService . Who can help me? Thanks.

systemService = new INEWSSystem();
queueService = new INEWSQueue();
INEWSSystemPortType systemPortType = systemService.getINEWSSystemPort();
INEWSQueuePortType queuePortType = queueService.getINEWSQueuePort();
((BindingProvider)systemPortType).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
((BindingProvider)queuePortType).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
CookieJar cookieJar = new CookieJar();
((BindingProvider)systemPortType).getRequestContext().put(BindingProviderProperties.HTTP_COOKIE_JAR, cookieJar);
((BindingProvider)queuePortType).getRequestContext().put(BindingProviderProperties.HTTP_COOKIE_JAR, cookieJar);