擅长:python、mysql、java
<p>这在很大程度上是假设的,因为我不知道有谁真正实现了它,但是suds支持定制suds.transport.transport的实现。这就是suds.transport.http.HttpTransport。所以从技术上讲,通过实现一个传输子类,您可以创建一个使用请求的suds传输。</p>
<p><a href="http://jortel.fedorapeople.org/suds/doc/suds.transport.http.HttpTransport-class.html" rel="nofollow">http://jortel.fedorapeople.org/suds/doc/suds.transport.http.HttpTransport-class.html</a>是默认使用的,它返回
<a href="http://jortel.fedorapeople.org/suds/doc/suds.transport.Reply-class.html" rel="nofollow">http://jortel.fedorapeople.org/suds/doc/suds.transport.Reply-class.html</a>如您所见,包装请求回复应该相当简单,以便suds能够理解它们。传输请求(应该随请求一起发送)记录在这里
<a href="http://jortel.fedorapeople.org/suds/doc/suds.transport.Request-class.html" rel="nofollow">http://jortel.fedorapeople.org/suds/doc/suds.transport.Request-class.html</a>
如果没人说服我,我迟早会实施的</p>
<p>为什么这么努力?因为suds在内部使用urllib2,这远不如python请求作为HTTP客户端实现。</p>
<p>还有一个编辑:我提供了一个要点作为起点<a href="https://gist.github.com/nanonyme/6268358" rel="nofollow">https://gist.github.com/nanonyme/6268358</a>。它是麻省理工学院的代码,未经测试,但应该作为传输的起点。</p>