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

SUDS fails in GUI, but works in unittest

I have a weird problem with SUDS in python. I am writing an application, that uses a SOAP service. And for approximately 2 months everything was going fine. All of a sudden, it stopped working. Here is the weird part though. If I run the unittest…
0
votes
1 answer

Python suds file

I'm newbie as with python as programming, poor English also... I have a doubt, I'm using suds to get methods from a WSDL and then sometimes it returns me type instance or type text, when it returns me instance I could manipulate the object like a…
Luiz.brsp
  • 13
  • 4
0
votes
2 answers

Parsing XML with element tree

I'm trying to parse XML with ElementTree, but I get this error: xml.etree.ElementTree.ParseError: encoding specified in XML declaration is incorrect My file.py: from suds.client import Client import xml.etree.ElementTree as ET url =…
Luiz.brsp
  • 13
  • 4
0
votes
1 answer

SUDS client.service. issue

I am utterly lost at what should be an easy task. I am trying to use Python with SUDS to grab a WSDL URL, create client objects, modify some information, and then post back up the WSDL (Or where ever it tell me to post it). I get the following…
0
votes
2 answers

How query only number of records in SERVICE-NOW

I want to query to get only number of records and not all objects. Im doing it: """
brunozrk
  • 773
  • 1
  • 7
  • 14
0
votes
1 answer

How to filter by __encoded_query using suds?

How can I filter results with __encoded_query using SUDS api? I have it, but doesnt work: client = Client(WSDL_URL, username=USERNAME, password=PASSWORD) records = client.service.getRecords(__limit = 100, __encoded_query='incident_state=3')
brunozrk
  • 773
  • 1
  • 7
  • 14
0
votes
1 answer

Exception: Cannot import python-ntlm module

I am using suds 0.4 and running into below error,I read on the web the above issue is fixed since 0.3.8..so am wondering what is wrong here? File "script.py", line 532, in prism = Prism('http://prism:8000/SearchService.svc?wsdl') …
user2639990
0
votes
0 answers

How to use a handler from settings for a non-Django log

In my Django project, I'm using suds, which logs to a predetermined log (suds.client) and doesn't let me configure a different log for its messages. I'm trying to get around this by adding one of the handlers I have defined in settings.py. In my…
Cloud Artisans
  • 4,016
  • 3
  • 30
  • 37
0
votes
1 answer

How to specify which optional parameters to use in a method call?

I want to use optional parameter 4, not optional parameter 3. How do i specify that my 3rd parameter in my method call is supposed to use optional parameter 4 instead of default to 3? python code: from suds.client import Client client =…
Quinma
  • 1,436
  • 2
  • 17
  • 39
0
votes
3 answers

From Spyne to Suds

I'm trying to use a combination of Spyne and Suds(although I'm not very particular on using Suds) to create a module which functions as a middleman between two SOAP entities. There is a client, C, which connects to server S, calls a method M, which…
Vlad Wing
  • 69
  • 10
0
votes
1 answer

Python handle custom exception from java web service

I have a java web service and python client using suds. My server raises custom exceptions which I would like to handle in the python script. Is it possible to catch them or it always will be caught as suds.WebFault exception?
user1107922
  • 610
  • 1
  • 12
  • 25
0
votes
2 answers

can you import your own package in Python?

I'm trying to understand the import-logic in Python. If you take this tutorial as a reference, I think you won't be able to, for example state: from sound.effects import echo At least, not from within the package. However, Suds (a package I'm…
hsmit
  • 3,906
  • 7
  • 34
  • 46
0
votes
2 answers

how to identify connection error in python?

In python we get different exception for diff connection issues like ECONNREFUSED, ECONNRESET, EHOSTUNREACH etc. Is there any standard logic for identifying connection errors in python? Basically I am using suds for connecting to vmware WS SDK and I…
Litty
  • 305
  • 2
  • 16
0
votes
0 answers

Exception for ns4 not resolved

I am trying to run a python script that uses soapclient. I am running into the following exception. I googled around and couldn't get any details related to this exception. Can anyone provide inputs on how to overcome the exception? request =…
user2341103
  • 2,333
  • 5
  • 20
  • 19
0
votes
2 answers

python library which can be used for vSphere WS SDK

I am looking for a python library which can be used for accessing vSphere WS SDK. I have came across two which are having non GPL license: psphere - https://github.com/jkinred/psphere pysphere - https://code.google.com/p/pysphere/ Has anybody used…
Litty
  • 305
  • 2
  • 16