Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion FuelSDK/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import suds.client
import suds.wsse
from suds.sax.element import Element
import urllib2

from objects import ET_DataExtension,ET_Subscriber

Expand Down Expand Up @@ -157,7 +158,9 @@ def build_soap_client(self):
self.authObj = {'oAuth' : {'oAuthToken' : self.internalAuthToken}}
self.authObj['attributes'] = { 'oAuth' : { 'xmlns' : 'http://exacttarget.com' }}

self.soap_client = suds.client.Client(self.wsdl_file_url, faults=False, cachingpolicy=1)
self.soap_client = suds.client.Client(self.wsdl_file_url, faults=False, cachingpolicy=1,
proxy=urllib2.getproxies())

self.soap_client.set_options(location=self.endpoint)

element_oAuth = Element('oAuth', ns=('etns', 'http://exacttarget.com'))
Expand Down