Does anyone know how to do this? I need to add a header of the form:
有谁知道如何做到这一点?我需要添加表单的标题:
value1 value2
4
As the question is phrased, it's hard to guess what the intention (or even the intended semantics) is. For setting headers, try the following:
由于问题是措辞,很难猜出意图(或甚至意图的语义)是什么。要设置标题,请尝试以下操作:
import SOAPpy headers = SOAPpy.Types.headerType() headers.value1 = value2
or
[...] headers.foo = value1 headers.bar = value2