Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suds Performance - client.factory.create() takes more than 2 minutes

I'm using Suds to send/receive SOAP messages in Python. It is taking an insanely long time to create an object to send via the soap envelope.

client = Client(wsdldict['Contact'], faults=True, headers=session) #takes ~5 seconds
lq1=client.factory.create("ns1:ListOfContactQuery") #takes ~130 seconds

The WSDL file is fairly large (1MB) but I do not know if that is the issue or not. Does Suds performance breakdown at a certain point?

like image 671
JiminyCricket Avatar asked Sep 05 '25 03:09

JiminyCricket


1 Answers

SUDS performance does breakdown on large WSDL files. I have experienced this same thing before with the Citrix NetScaler SOAP API.

If you are able to filter your WSDL into a subset of required commands, store the file on disk and load it locally, or make use of SUDS' caching functionality, you can dramatically increase this processing time when creating a new client.

like image 82
jathanism Avatar answered Sep 07 '25 20:09

jathanism