rajdeepd / salesforce-python-toolkit

Automatically exported from code.google.com/p/salesforce-python-toolkit
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Mission: To provide a thin layer around the raw SOAP interaction that consumes Salesforce's Enterprise and Partner WSDLs and handles the nitty-gritty details of the SOAP interaction.

The Salesforce Python Toolkit features the following:

But what about those other libraries? And why Suds and not SOAPpy or ZSI? And why not just Suds?

Dependencies:

Tested with:

Examples:

Caching:

h = SforceEnterpriseClient('https://example.com/enterprise.wsdl.xml', cacheDuration = 90)

h = SforcePartnerClient('https://example.com/partner.wsdl.xml', cacheDuration = 86400) # 1 day

Proxies:

h = SforceEnterpriseClient('enterprise.wsdl.xml', proxy = {'http': 'proxy.example.com:8888'})

h = SforcePartnerClient('partner.wsdl.xml', proxy = {'http': 'proxy.example.com:8888'})

Any attempt to pass an https proxy will raise a NotImplementedError.

Inspecting your data:

lead = h.generateObject('Lead') lead.FirstName = 'Joe' lead.LastName = 'Moke' lead.Company = 'Jamoke, Inc.'

print lead

outputs this:

(sObject){ fieldsToNull[] = Id = None type = "Lead" FirstName = "Joe" LastName = "Moke" Company = "Acme, Inc." }

Strict- and non-strict modes:

Logging:

Conventions:

Caveats (short form):

Caveats (long form):