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
8
votes
1 answer

How to extract method using Suds in Python

I want to extract all the methods and want to send some parameters using how can I do automation using python. I want only methods as user input and send parameters to the method. How can I achieve this? from suds.client import client url="name fo…
user3157084
  • 159
  • 1
  • 3
  • 8
8
votes
6 answers

Parsing Suds SOAP complex data type into Python dict

I have some data coming from a SOAP API using Suds which I need to parse in my Python script. Before I go off and write a parser (there is more than just this one to do): 1) Does anyone recognise what this is? It's the standard complex object…
Jamie Bull
  • 12,889
  • 15
  • 77
  • 116
7
votes
1 answer

Empty cookiejar using SUDS

I'm running SUDS 0.4 on Linux Slackware 13.0 with python 2.6.2. When I call SOAP method using this code: from suds.client import Client client = Client(url='file:acctWeb.wsdl', location='http://10.242.69.4:8088/pfmaccess') res =…
rjan
  • 71
  • 4
7
votes
1 answer

Soap Client using Suds

Soap call in Python Hi above is my previous question regarding soap. In there i am passing a 1D array. Now my problem is i need to pass the 2D array to the following Soap schema. Request Schema
Milin
  • 235
  • 3
  • 6
  • 12
7
votes
3 answers

How to fix unicode issue when using a web service with Python Suds

I am trying to work with the HORRIBLE web services at Commission Junction (CJ). I can get the client to connect and receive information from CJ, but their database seems to include a bunch of bad characters that cause a UnicideDecodeError. Right…
chris
  • 825
  • 2
  • 9
  • 22
7
votes
1 answer

Getting zeep.exceptions.ValidationError: Missing element for method that worked with suds

I'm porting over code that was developed with suds 0.6 over to zeep 2.4.0. Previous suds code: client = Client(WSDLfile, proxy=proxy, faults=True) config = client.factory.create('perUserDataExportConfiguration') config.param1 =…
raphael
  • 2,762
  • 5
  • 26
  • 55
7
votes
6 answers

Bypass SSL when I'm using SUDS for consume web service

I'm using SUDS for consuming web service. I tried like bellow: client = Client(wsdl_url) list_of_methods = [method for method in client.wsdl.services[0].ports[0].methods] print(list_of_methods) I got this error: urllib.error.URLError:
Artin Falahi
  • 1,101
  • 2
  • 16
  • 34
7
votes
4 answers

Overwrite the Soap Envelope in Suds python

I have a camera and I am trying to connect to it vis suds. I have tried to send raw xml and have found that the only thing stopping the xml suds from working is an incorrect Soap envelope namespace. The envelope namespace…
chrisg
  • 40,337
  • 38
  • 86
  • 107
7
votes
3 answers

Has anyone combined soap.py or suds with python-ntlm?

I'd like to replace an app's current (badly busted and crufty) cURL-based (cURL command-line based!) SOAP client with suds or soap.py. Trouble is, we have to contact an MS CRM service, and therefore must use NTLM. For a variety of reasons the NTLM…
Chris R
  • 17,546
  • 23
  • 105
  • 172
7
votes
3 answers

Using SUDS to test WSDL

Does anyone know about a good SUDS tutorial. I am trying to run tests on WSDL files and I am having trouble finding any imformation on how to do this. Is SUDS much different to SOAPy and would anyone recommend it to run smoke tests on functions…
chrisg
  • 40,337
  • 38
  • 86
  • 107
7
votes
6 answers

Suds ignoring proxy setting

I'm trying to use the salesforce-python-toolkit to make web services calls to the Salesforce API, however I'm having trouble getting the client to go through a proxy. Since the toolkit is based on top of suds, I tried going down to use just suds…
cji
  • 235
  • 2
  • 9
7
votes
3 answers

How to create arrayType for WSDL in Python (using suds)?

Environment: Python v2.6.2 suds v0.3.7 The WSDL (server) I work with, have the following schema sub-sections (I tried to write it clearly using plain text) - [ sub-section #1 ] searchRequest: (searchRequest){ userIdentification =…
Uri
  • 71
  • 1
  • 1
  • 3
7
votes
4 answers

python suds wrong namespace prefix in SOAP request

I use python/suds to implement a client and I get wrong namespace prefixes in the sent SOAP header for a spefic type of parameters defined by element ref= in the wsdl. The .wsdl is referencing a data types .xsd file, see below. The issue is with…
al_miro
  • 484
  • 1
  • 5
  • 6
6
votes
2 answers

Python UTF-8 XML parsing (SUDS): Removing 'invalid token'

Here's a common error when dealing with UTF-8 - 'invalid tokens' In my example, It comes from dealing with a SOAP service provider that had no respect for unicode characters, simply truncating values to 100 bytes and neglecting that the 100'th…
FlipMcF
  • 12,636
  • 2
  • 35
  • 44
6
votes
2 answers

Python SUDS SOAP request to https service 401

I am trying use SUDS and am stuck trying to figure out why I can't get authentication to work (or https). The service I am trying to access is over https with basic digest authentication. Based on the debugs it seems to be using http instead of…
user9303
  • 61
  • 1
  • 1
  • 2
1 2
3
45 46