Hi Deepal, is there any other way to engage module without writting serviceClient.engageModule(); function in the client class to engage the module when we invoke a service.
Deepal Jayasinghe-2 wrote: > > Senthil Sona wrote: >> Hi Deepal, >> Thanks for your reply. If any module is engage in service.xml. It get >> execute only when some other class invokes that service. > That is correct. >> But if the service >> (whose service.xml has module engage) invokes another service then its >> engaged module does not get execute. > Yes that also correct, invoking a service is you are creating a client. > Engaging a module to a service means you are engaging that to the > service, so only when someone invoke the service those hander will get > called. >> For that we need to explictly write the >> code serviceClient.engageModue(). But i dont want to write this code in >> my >> program. >> > Yes, I do not see any issues, here. When you call serviceClient, then > you need to engage module for that client. > > Thanks > Deepal >> Thanks, >> Swapna Soni. >> >> >> >> >> >> Deepal Jayasinghe-2 wrote: >> >>> So thats mean when you engage the module from services.xml that does not >>> work? >>> >>> I can not understand who breaks the working codes, anyway please create >>> a JIAR and attach whatever necessary to re-create the issue. >>> >>> Thanks, >>> Deepal >>> >>>> Hi Team, >>>> >>>> I have two webservices. One is server service and one is client >>>> service. >>>> >From the server service, i am calling the client service. I have one >>>> custom >>>> module engaged in both the service's service.xml. But when i call the >>>> client >>>> service from the server service, its custom module dont get execute. If >>>> i >>>> explicitly write the code "sender.engageModule("mesha")" then server's >>>> side >>>> custom module is executing. >>>> I dont want to hardcode the engageModule funtion in my server >>>> service >>>> class. Is there any way to execute server' service custom module when i >>>> cal >>>> the client service from it? >>>> >>>> Thanks, >>>> Swapna Soni. >>>> >>>> >>> -- >>> Thank you! >>> >>> >>> http://blogs.deepal.org >>> http://deepal.org >>> >>> >>> >>> >> >> > > > -- > Thank you! > > > http://blogs.deepal.org > http://deepal.org > > > -- View this message in context: http://www.nabble.com/how-to-engage-module-in-the-code-from-where-we-invoke-the-webservice---tp23997418p24086492.html Sent from the Axis - Dev mailing list archive at Nabble.com.