I've been googling and trying many possible approaches to do to pass an object from an application (skeleton) to the handler using Axis2 with no luck I don't know if what I'm doing is actually correct. For brevity, below is only the logic of what I've done.
Handler (mar): --> OutFlow
If the above logic is incorrect, can anyone please tell me how I should go about it?
Many thanks in advance. [ May 08, 2008: Message edited by: Freddy Wong ]
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
Where are you setting the property? Remember a new service instance is created for every incoming request and each service instance would have its own message context. So your would have to set the property in the web service method before the method returns.
I'm setting it in the web service method. It seems that I need to set it in the ServiceContext. This code below is now working.
Web Service Method:
According to JavaDoc for ServiceContext "Well this is never clearly defined, what it does or the life-cycle. So do NOT use this as it might not live up to your expectation.". I'm a bit scared to use it even though it's working as what I'm expecting.
Do you think what I'm doing is correct? Thanks.
Joined: Aug 19, 2005
Originally posted by Freddy Wong: Do you think what I'm doing is correct?