<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 05/25/12 21:09, Mehmet Arikkan wrote:
<blockquote
cite="mid:CAOVa2xAeZfjmjzk5AU7o1yhHa2btiauecGznyqdu7rQa3YAk=Q@mail.gmail.com"
type="cite">Actually what I meant to ask is that whether my way to
add the header is a proper way:
<div><br>
</div>
<div><span class="Apple-style-span"
style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<div>
<div>def _on_method_call(ctx):</div>
<div> ctx.out_header = RespHeader()</div>
<div> ctx.out_header.Elem1 = 'Test1'</div>
<div> ctx.out_header.Elem2 = 'Test2' </div>
<div><br>
</div>
<div>HelloWorldService.event_manager.add_listener('method_call',
_on_method_call)</div>
</div>
<div><br>
</div>
<div>Is this how you would properly add a SOAP Header to your
outgoing message?</div>
<div><br>
</div>
</span></div>
</blockquote>
<br>
Yes, you could do it like this with events if you want to add that
header to every response regardless of the method name. You could
also do it in the user code as well, without messing with events at
all, in case you need to add method-specific headers.<br>
<br>
Does that help?<br>
<br>
Best,<br>
Burak<br>
<br>
</body>
</html>