Python Forum
Using Connection pooling suds-jurkok with python 3.5
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Connection pooling suds-jurkok with python 3.5
#1
Hello ,

Can any one help me on how i can use connection pooling using suds-jurko with python 3.x

import datetime
from suds.client import Client
client = Client('http://<IP>:<Port>/?wsdl')
try:
    respone= client.service.trigger(TriggerRequest)
    print(respone)
except Exception as e:
  print(e)
Ho
Hello ,

Can any one help me on how i can use connection pooling using suds-jurko with python 3.x . Below is my code but caching is not working . The wsdl object is getting downloaded on every request in the cache location

import datetime
from suds.client import Client
from suds.cache import ObjectCache

cache = ObjectCache()
cache.setduration(days=1)
cache.setlocation('suds_cache')

client = Client('http://<IP>:<Port>/?wsdl',cache=cache,cachingpolicy=1)
try:
    respone= client.service.trigger(TriggerRequest)
    print(respone)
except Exception as e:
  print(e)
Ho
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I don't know what is wrong (Python and SQL connection) shereen 3 377 Apr-01-2024, 08:56 AM
Last Post: Pedroski55
  No Internet connection when running a Python script basil_555 8 666 Mar-11-2024, 11:02 AM
Last Post: snippsat
  Connection LTspice-Python with PyLTSpice bartel90 0 359 Feb-05-2024, 11:46 AM
Last Post: bartel90
  Virtual Env changing mysql connection string in python Fredesetes 0 386 Dec-20-2023, 04:06 PM
Last Post: Fredesetes
  connection python and SQL dawid294 4 687 Dec-12-2023, 08:22 AM
Last Post: Pedroski55
  Networking Issues - Python GUI client and server connection always freezes Veritas_Vos_Liberabit24 0 743 Mar-21-2023, 03:18 AM
Last Post: Veritas_Vos_Liberabit24
  Python MYSQL connection does not work after 1h idle zazas321 9 6,854 Oct-07-2021, 12:02 PM
Last Post: ndc85430
  Serial connection connection issue Joni_Engr 15 8,106 Aug-30-2021, 04:46 PM
Last Post: deanhystad
  Little Help with Design of a Pooling Application roboroo 0 1,345 Dec-12-2020, 07:26 PM
Last Post: roboroo
  How can I make a plot representing connection relationship with python matplotlib? Berlintofind 1 1,967 May-08-2020, 09:27 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020