2

How can I read s SOAP header from a SOAPpy response?

shen0956
  • 43
  • 1
  • 5

1 Answers1

0

You can't, without modifying SOAPy.

When you call a SOAP method, SOAPy runs its own request function, which returns a valid HTTPResponse object. However, it does not retain that object; within the same method call, it parses the body, and returns the result.

In order to alter this behaviour, you'll want to look at the __call__ method of the Method class in soap.py.

Andrew
  • 12,821
  • 2
  • 26
  • 18