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 = &#39;Test1&#39;</div><div>    ctx.out_header.Elem2 = &#39;Test2&#39;   </div><div><br></div><div>HelloWorldService.event_manager.add_listener(&#39;method_call&#39;, _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 class="gmail_quote">On Fri, May 25, 2012 at 8:25 PM, Burak Arslan <span dir="ltr">&lt;<a href="mailto:burak.arslan@arskom.com.tr" target="_blank">burak.arslan@arskom.com.tr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/25/12 19:50, Mehmet Arikkan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry, it seems I was a quite hasty:<br>
<br>
__out_header__ = RespHeader<br>
<br>
This fixed the problem when added inside HelloWorldService class.<br>
<br>
But I am really still curious about whether or not this is the correct way to go. I would appreciate your comments.<br>
</blockquote>
<br>
<br></div>
merhaba,<br>
<br>
yes, that&#39;s the way to go. that&#39;s what the warning you saw was cautioning you to do actually.<br>
<br>
see: <a href="https://github.com/plq/rpclib/blob/e669e7e9227bda499e2a77fe5261a9238c232afe/src/rpclib/decorator.py#L149" target="_blank">https://github.com/plq/rpclib/<u></u>blob/<u></u>e669e7e9227bda499e2a77fe5261a9<u></u>238c232afe/src/rpclib/<u></u>decorator.py#L149</a><br>

<br>
best,<br>
burak<br>
<br>
</blockquote></div><br></div>