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
13
votes
7 answers

Suds generates empty elements; how to remove them?

[Major Edit based on experience since 1st post two days ago.] I am building a Python SOAP/XML script using Suds, but am struggling to get the code to generate SOAP/XML that is acceptable to the server. I had thought that the issue was that Suds was…
Torid
  • 4,176
  • 1
  • 28
  • 29
12
votes
1 answer

Python: How can I use Twisted as the transport for SUDS?

I have a project that is based on Twisted used to communicate with network devices and I am adding support for a new vendor (Citrix NetScaler) whose API is SOAP. Unfortunately the support for SOAP in Twisted still relies on SOAPpy, which is badly…
jathanism
  • 33,067
  • 9
  • 68
  • 86
11
votes
0 answers

How to add an element to a structure in SUDS (python)?

I create the structure AccountAssignment client = suds.client.Client(url) accountAssignment = client.factory.create('AccountAssignment') print accountAssignment I get the following result: (AccountAssignment){ Key = None AccountNo = None …
Mat
  • 189
  • 1
  • 15
11
votes
2 answers

Python soap using soaplib (server) and suds (client)

This question is related to: Python SOAP server / client In the case of soap with python, there are recommendation to use soaplib (http://wiki.github.com/jkp/soaplib) as soap server and suds (https://fedorahosted.org/suds/) as soap client. My target…
Celso Axelrud
  • 141
  • 1
  • 1
  • 4
10
votes
1 answer

How can I dump raw XML of my request and server's response using suds in python

i'm using suds 0.4 and python 2.6, to communicate with remote server. It's WSDL loads perfectly, but any function call returns error. Something is wrong with that server. Now i need to get a dump of soap structure, that is sent to server and it's…
gistart
  • 375
  • 1
  • 5
  • 7
10
votes
4 answers

how can i use sharepoint (via soap?) from python?

I want to use Sharepoint with python (C-Python) Has anyone tried this before ?
Blauohr
  • 5,985
  • 2
  • 25
  • 31
10
votes
1 answer

Sending xml by SUDS

I would like to send my hand build xml by SUDS using WSDL. I found, that I can do it like that: xml = Raw("""
user2529782
10
votes
1 answer

Python/Suds: Type not found: 'xs:complexType'

I have the following simple python test script that uses Suds to call a SOAP web service (the service is written in ASP.net): from suds.client import Client url = 'http://someURL.asmx?WSDL' client = Client( url ) result =…
Danielb
  • 1,608
  • 5
  • 24
  • 34
10
votes
2 answers

Python SOAP client, WSDL call with suds gives Transport Error 401 Unauthorized for HTTP basic authentication

Background I'm building a SOAP client with python 2.7.3 and using the suds 0.4.1 library provided by Canonical. The server is using basic authentication over HTTPS. Problem Can't pass authentication on the server, even to get at the WSDL. I get the…
Kenny Linsky
  • 1,726
  • 3
  • 17
  • 41
9
votes
2 answers

How can I pickle suds results?

To avoid repeatedly accessing a SOAP server during development, I'm trying to cache the results so I can run the rest of my code without querying the server each time. With the code below I get a PicklingError: Can't pickle
Mat
  • 82,161
  • 34
  • 89
  • 109
9
votes
4 answers

Python: Making a request with suds

i'm testing out SUDS library and I'm trying to make a simple request to an endpoint but i get unusual output. Why? from suds.client import Client import…
chuckfinley
  • 2,577
  • 10
  • 32
  • 42
9
votes
0 answers

Python & suds - how can I get information about the type of a method parameter?

I am calling methods in a SOAP API from my Python code using suds. I am trying to programmatically determine what information to send as parameters to the methods in the API. One of the WSDLs I'm looking at is here. There is a method defined in that…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
9
votes
2 answers

How to import XSD schema with Python Suds (version 0.3.6) SOAP library : TypeNotFound exception?

I'm trying to use SABRE travel web services with Python Suds, but one XSD seems not well-formed (maybe namespace is missing in this schema). from suds.client import Client wsdl =…
Paul Poulet
8
votes
3 answers

Change web service url for a suds client on runtime (keeping the wsdl)

First of all, my question is similar to this one But it's a little bit different. What we have is a series of environments, with the same set of services. For some environments (the local ones) we can get access to the wsdl, and thus generating the…
patanpatan
  • 111
  • 1
  • 1
  • 7
8
votes
1 answer

How can I inspect what SUDs is generating/receiving in "sudo 0.4.1 jurko 5" and newer?

This question is similar to this one: How can I output what suds is generating/receiving? The problem is that I am using the suds fork by Jurko and after version "0.4.1 jurko 5" the Client.last_sent(), Client.last_received() methods have been…
pmav99
  • 1,909
  • 2
  • 20
  • 27
1
2
3
45 46