suds

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

I want to use Sharepoint with python (C-Python) Has anyone tried this before ? ...

SUDS - programmatic access to methods and types

I'm investigating SUDS as a SOAP client for python. I want to inspect the methods available from a specified service, and the types required by a specified method. The aim is to generate a user interface, allowing users to select a method, then fill in values in a dynamically generated form. I can get some information on a particular ...

How do I get a value node moved up to be an attribute of its parent node?

What do I need to change so the Name node under FieldRef is an attribute of FieldRef, and not a child node? Suds currently generates the following soap: <ns0:query> <ns0:Where> <ns0:Eq> <ns0:FieldRef> <ns0:Name>_ows_ID</ns0:Name> </ns0:FieldRef> <ns0:Value>66</ns0:Value> </ns0:Eq> </ns0:Where> </ns...

SharePoint via SOAP using Python

I have been following the solution noted here - as this is exactly what I need to achieve; http://stackoverflow.com/questions/218987/how-can-i-use-sharepoint-via-soap-from-python however when I run one of the last lines of this code I get the following error; >>> client = SoapClient(url, {'opener' : opener}) Traceback (most recent ca...

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 = (userIdentification){ username = "" password = "" } itineraryArr = (i...

Python SOAP document handling

I've been trying to use suds for Python to call a SOAP WSDL. I just need to call the service programmatically and write the output XML document. However suds automatically parses this data into it's own pythonic data format. I've been looking through the examples and the documentation, but I can't seem to find a way to return the XML doc...

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 = client.service.GetPackageDetails( "MyPackage" ) print result When I run this test script I am getting the fol...

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 = 'http://webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/OTA_AirPriceLLSRQ.wsdl' client = Client(wsdl, cache=None) Debug trace returns : .DEBUG:suds.wsdl:rea...

Sending cookies in a SOAP request using Suds

I'm trying to access a SOAP API using Suds. The SOAP API documentation states that I have to provide three cookies with some login data. How can I accomplish this? ...

Writing python client for SOAP with suds

Dear python programmers, I want to convert a perl SOAP client into a python SOAP client. The perl client is initialized like $url = 'https://host:port/cgi-devel/Service.cgi'; $uri = 'https://host/Service'; my $soap = SOAP::Lite -> uri($uri) -> proxy($url); I tried to replicate this in python 2.4.2 with suds 0.3.6 doing fro...

Proxying imported schema but not SOAP requests with suds

I'm writing a SOAP client to talk to servers on our local network but our provider's WSDL references but doesn't import the SOAP encoding schema. We can fix this up with suds' ImportDoctor but doing so requires access to the internet to fetch the schema. Our internet access is via an HTTP proxy. If I set the $http_proxy environment varia...

suds + jira = SAXException

I'm using Python 2.6 and suds 0.3.7 to interact with Jira 4.0. I connect to the jira server and and get information just fine. I.e., I can get all the details about any issue I want and that's great. What's not so great is that when I want to update an issue, I get a SAXException from suds (presumably). The exception is: WebFault: Se...

Changing web service url in SUDS library

Using SUDS SOAP client how do I specify web service URL. I can see clearly that WSDL path is specified in Client constructor but what if I wan't to change web service url? ...

Problem with python soap library suds. Wsdl was not understood

The code below throw a SAXParseException: "mismatched tag": from suds.client import Client <br> url = 'http://www.didww.com/api/?wsdl' client = Client(url, cache=None) print client Is it problem with suds, or there is some errors in wsdl? ...

suds ignores my soapAction wsdl directives

I read that this should only happen if the SOAP server is not using HTTP protocol, but in my case it is. My WSDL is below. But instead of calling my soapActions (which are parsed correctly by suds): <wsdl:binding name="Authentication_x0020_ServiceSoap" type="tns:Authentication_x0020_ServiceSoap"> <soap:binding transport="http://s...

Huge amount of time sending data with suds and proxy

Hi everyone, I have the following code to send data through a proxy using suds: import suds t = suds.transport.http.HttpTransport() proxy = urllib2.ProxyHandler({'http': 'http://192.168.3.217:3128'}) opener = urllib2.build_opener(proxy) t.urlopener = opener ws = suds.client.Client('http://xxxxxxx/web.asmx?WSDL', transport=t) re...

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

This question is related to: http://stackoverflow.com/questions/1751027/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 is to create soap services in python that can b...

Installing SUDS in python 2.6.4

Hello, I am having real trouble installing SUDS in python 2.6.4. I have tried to install the setup file but it says the location of python cannot be found. This is because I have changed the location of python. I have tried to use easy_install but am having no luck. Does anyone know a simple way to do this or have a link to clear instal...

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 stored in WSDL files. I have read that SOAPAy is no longer supported in Python 2.6+. Is this ...

Passing arguements into SUDS client statement

Hello, I am using SUDS (Like SOAP) to test WSDL files. The methods contain types that are linked to further functions. I am not sure how to access the variables stored in the types that are displayed. Some sample code is below: from suds.client import Client client=Client('http://eample.wsdl') print client response is: Ports (1): ...