Questions tagged [suds]

Suds is a SOAP services library for Python & JavaScript.

Suds is a SOAP services library for Python & JavaScript.
Suds leverages python meta programming to provide an intuative API for consuming web services. Runtime objectification of types defined in the WSDL is provided without class generation.

678 questions
6
votes
1 answer

Python SUDS return type other than XML

I am working with a somewhat non-standard SOAP webservice. Most of the calls to the webservice return the standard SOAP XML as you would expect, but one call in particular returns a JSON string instead. This fouls up the xml parser on the client…
feathj
  • 3,019
  • 2
  • 22
  • 22
6
votes
1 answer

Suds is not reusing cached WSDLs and XSDs, although I expect it to

I'm pretty sure suds is not caching my WSDLs and XSDs like I expect it to. Here's how I know that cached objects are not being used: It takes about 30 seconds to create a client: client = Client(url) The logger entries show consistent digestion of…
Mike M. Lin
  • 9,992
  • 12
  • 53
  • 62
6
votes
3 answers

How to raise Suds.WebFault from python code?

I am trying to raise a Suds.WebFault from python code. The __init__ method\constructor takes three arguments __init__(self, fault, document). The fault has fault.faultcode and fault.detail members\attributes\properties. I could not find out what…
neel
  • 61
  • 1
  • 2
6
votes
4 answers

adding an attribute in suds

I have to do soap request with suds and Python http://mysafety.com
daxa
  • 61
  • 1
  • 3
6
votes
1 answer

Strange behavior from HTTP authentication with suds SOAP library

I have a working python program that is fetching a large volume of data via SOAP using suds. The web service is implemented with a paging function such that I can grab nnn rows with each fetch call and grab the next nnn with subsequent calls. If I…
zenzic
  • 1,517
  • 2
  • 16
  • 25
6
votes
1 answer

SAXParseException using Python and suds 0.4?

I have a simple Python script that uses Suds to pull data from a SOAP web service. It works perfectly on one machine, but when I move it to another that has an older version of Python (2.4.3), I get the following stack trace: >>> client =…
zenzic
  • 1,517
  • 2
  • 16
  • 25
6
votes
1 answer

How to set timeout on SUDS connection

I'm struggling with what should be a very simple problem. I'm failing to set the session timeout on a SUDS jurko connection. My WSDL is good. Everything works when pulling a smaller dataset. I've attempted several means of setting the timeout.…
user2460464
  • 475
  • 4
  • 5
6
votes
2 answers

How to add http headers in suds 0.3.6?

I have an application in python 2.5 which sends data through suds 0.3.6. The problem is that the data contains non-ascii characters, so I need the following header to exist in the soap message: Content-Type="text/html; charset="utf-8" and the header…
Esabe
  • 1,941
  • 4
  • 16
  • 19
6
votes
2 answers

Why do I get a connection error / timeout when using python suds to connect to Microsoft CRM?

When I try to connect to an MS CRM web service using suds/python-ntlm, I am getting a timeout on requests. However, the code that I'm trying to replace -- which calls out to the cURL command line app to do the same call -- succeeds. Clearly…
Chris R
  • 17,546
  • 23
  • 105
  • 172
6
votes
1 answer

TypeNotFoundError after import namespace

My application in Python(2.7) should use a client for consume a SOAP web service as is described on a WSDL(Generated by Magento(1.7.0) and posted at the end). For this task Suds(4.0) was chosen, when I tried to connect with these code: from…
6
votes
3 answers

SOAP, Python, suds

Please advise library for working with soap in python. Now, I'm trying to use "suds" and I can't undestand how get http headers from server reply Code example: from suds.client import Client url = "http://10.1.0.36/money_trans/api3.wsdl" client =…
iscarface
  • 61
  • 1
  • 2
6
votes
1 answer

Python2 sax parser, best speed and performance for large files?

So Ive been using suds with great benefit to consume a webservice. Hit an issue with performance, for some data the cpu would spike hard, it would take more than 60s to complete the request, which is served by gunicorn, suds to webservice and so…
rapadura
  • 5,242
  • 7
  • 39
  • 57
5
votes
1 answer

How to get the response headers from a suds request

I'm using the python suds module and would like to retrieve the response headers (specifically Last-Modified) from a suds response.
Pricey
  • 518
  • 1
  • 8
  • 20
5
votes
6 answers

AttributeError: 'NoneType' object has no attribute 'str' in suds

I am using suds client for WSDL in our project. i have this code . sudsclient = sudsClient(settings.WSDL_URL) values = { "MerchantCode": settings.YP_MERCHANT_CODE, …
gadss
  • 21,687
  • 41
  • 104
  • 154
5
votes
2 answers

Can I write a SOAP server using python suds?

I started using suds for soap clients and will never touch ZSI again. I know suds is meant for the client side, but I would love to use it to make also the server site, in order to get rid of ZSI. How could I use suds to parse soap requests instead…
Unpaid Oracles
  • 2,047
  • 2
  • 14
  • 8