Hi Wang, If you are using Axis2 as the client side , the what you can do is, option.setManageSession(true);
Then client will automatically send the service group id. Thanks Deepal > How to make the client send back the servicegroupid? Thanks very much. > > > Hailong > > -----Original Message----- > From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] > Sent: Monday, June 11, 2007 1:42 PM > To: [email protected] > Subject: Re: Why my service class get initilized every service call? > > Yes it is , for soap session to work you need to first send in-out > operation and then invoke whatever you need to invoke. > > Thanks > Deepal > > Wang, Hailong (NIH/CIT) [C] wrote: > >> There is no exception happened during the initialization code. >> >> My first service is an input-only service, and second service is an >> in-out service. Does this cause problem for session management? >> >> >> Hailong >> >> -----Original Message----- >> From: Michele Mazzucco [mailto:[EMAIL PROTECTED] >> Sent: Monday, June 11, 2007 12:23 PM >> To: [email protected] >> Subject: Re: Why my service class get initilized every service call? >> >> Another reason could be an uncaught exception during the >> > initialization > >> code. >> >> Michele >> >> On Mon, 2007-06-11 at 21:32 +0530, Deepal Jayasinghe wrote: >> >> >>> Hi Wang, >>> Are you sure that client send the service group id , if not we will >>> initialize whenever we get the request, >>> >>> Thanks >>> Deepal >>> >>> >>>> Hi, >>>> >>>> >>>> >>>> I set my service scope to soapsession, but my service class gets >>>> initialized by every service call. That's not right. Consecutive >>>> service calls should share the same ServiceContext. Am I right? >>>> SessionContext is not created by Axis2. I also engaged addressing >>>> module by following snippet inside the init function of my service >>>> >>>> >> class: >> >> >>>> >>>> >>>> >>>> >>>> AxisService axisService = serviceContext.getAxisService(); >>>> >>>> AxisModule am = *new* AxisModule("addressing"); >>>> >>>> *try*{ >>>> >>>> axisService.engageModule(am, >>>> axisService.getAxisConfiguration()); >>>> >>>> }*catch*(AxisFault af){ >>>> >>>> >>>> >>>> } >>>> >>>> >>>> >>>> Any idea about this problem? Thanks in advance. >>>> >>>> >>>> >>>> >>>> >>>> **Hailong Wang** >>>> >>>> National Database for Autism Research(NDAR) >>>> >>>> NIH/CIT/DECA (MOM CONTRACTOR) >>>> >>>> 9000 Rockville Pike, Bld 12A/Room 2027 >>>> >>>> Bethesda, MD 20892 >>>> >>>> Phone: 301-402-3045 >>>> >>>> Fax: 301-480-0028 >>>> >>>> Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >>>> >>>> URL: http://ndar.nih.gov >>>> >>>> >>>> >>>> >>>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
