Sunday, March 27, 2011

Adding a SOAP header to a SOAPpy request

Does anyone know how to do this? I need to add a header of the form:

value1 value2

From stackoverflow
  • 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
    

0 comments:

Post a Comment