This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from suds.transport import Transport, Reply | |
from suds.client import Client | |
import requests | |
from StringIO import StringIO | |
class RequestsTransport(Transport): | |
def open(self, request): | |
""" suds assumes urllib2 which doesn't have keepalives so things can go royally wrong if it doesn't | |
read the entire request. Hence, read it all up and give a StringIO object instead. |