I tried the following code from my skeleton class. And it worked fine.
ServiceContext svcce =
(ServiceContext)messageContext.getServiceContext();
String xusername = (String)svcce.getProperty("username");
System.err.println("lh username is "+ xusername);
if(xusername==null){
svcce.setProperty(" lh username", "jeff");
}
The second call printed out what I expected.
I would like to move the code to a custom handler. However the
serviceContext is null. In fact all of the contexts off of the
messageContext are null. .getSessionContext, getServiceContext etc.
Any help would be appreciated.
TIA
--
View this message in context:
http://www.nabble.com/Axis2-Using-soapsession-from-Handler-tp19615062p19615062.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]