views:

31

answers:

1

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

A: 

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
谢谢!我改了一下源代码就成功了,thank you!
shen0956