[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-dev
Subject:    Re: [Axis2]
From:       "robertlazarski ." <robertlazarski () gmail ! com>
Date:       2020-02-14 2:04:36
Message-ID: CABpPLBUckU3jKf5SCgf4-XGeyTBjMXeSc0Q+pEckaqCwCDWNaA () mail ! gmail ! com
[Download RAW message or body]

I reviewed your code and logs, can you please post your services.xml for
completeness? Its probably correct since your module is getting invoked.

Its been a while since I looked at this module code, I contributed the soap
monitor module many years ago.

So it seems the messagecontext is not null, but rather the return values
from the methods of the Object are null. Looking at some of my previous
comments in this area, I noticed that the phase is important.

Here's an example, it may be the case that these values will not be null in
a different phase.

invoke(MessageContext messageContext) {
  EndpointReference ref = null;

  if (messageContext.getFLOW() == MessageContext.IN_FLOW) {
        ref = messageContext.getTo();
    } else if (messageContext.getFLOW() == MessageContext.OUT_FLOW) {
        ref = messageContext.getFrom();
    }
}

[Attachment #3 (text/html)]

<div dir="ltr"><div>I reviewed your code and logs, can you please post your \
services.xml for completeness? Its probably correct since your module is getting \
invoked. <br></div><div><br></div><div>Its been a while since I looked at this module \
code, I contributed the soap monitor module many years ago. \
<br></div><div><br></div><div>So it seems the messagecontext is not null, but rather \
the return values from the methods of the Object are null. Looking at some of my \
previous comments in this area, I noticed that the phase is important. \
<br></div><div><br></div><div>Here&#39;s an example, it may be the case that these \
values will not be null in a different phase. \
<br></div><div><br></div><div>invoke(<span class="gmail-il">MessageContext</span> \
<span class="gmail-il">messageContext</span>) {<br>  EndpointReference ref = \
null;<br> <br>
   if (<span class="gmail-il">messageContext</span>.<span \
class="gmail-il">getFLOW</span>() == <span \
                class="gmail-il">MessageContext</span>.IN_FLOW) {<br>
            ref = <span class="gmail-il">messageContext</span>.getTo();<br>
      } else if (<span class="gmail-il">messageContext</span>.<span \
class="gmail-il">getFLOW</span>() == <span \
                class="gmail-il">MessageContext</span>.OUT_FLOW) {<br>
            ref = <span class="gmail-il">messageContext</span>.getFrom();<br>
      }<br>
}</div><div>   <br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic