Hi Roman, 'm sorry I can't understand the meaning of your comment here.
If you want to get IP address of a invoker of a service, just get access to the message context, by following [1], as mentioned by Andreas, and call msgContext.getProperty(MessageContext.REMOTE_ADDR). If you want to access other http servlet request information, call msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST). All these assumes you are using a servlet as your HTTP transport. Having said above, what do u mean by "bit circular" ? -- Chinthaka [1] http://www.wso2.net/2006/05/how_do_i_make_message_contexts_available_to_my_service_impl_class Roman Weidlich wrote: > I have a web service and only want to log the IP address of the invoker > of the service. This seems to be a bit circular in Axis2... > > > Andreas Hörnicke wrote: >> Depends on where you need it but most likely you want to access >> it in your impl class so that a look at [1]. >> >> [1] >> http://www.wso2.net/2006/05/how_do_i_make_message_contexts_available_to_my_service_impl_class >> >> >> -- Andreas >> >> >> am Samstag, 3. Juni 2006 schrieb Roman Weidlich: >> >> RW> And how retrieve the MessageContext "msgContext"? >> >> >> >> RW> Andreas Hörnicke wrote: >>>> Hi Roman, >>>> >>>> msgContext.getProperty(MessageContext.REMOTE_ADDR) should be >>>> sufficent. >>>> >>>> -- Andreas >>>> >>>> >>>> am Samstag, 3. Juni 2006 schrieb Roman Weidlich: >>>> >>>> RW> Where is the (remote) IP address of the service invoker located? >>>> >>>> RW> ConfigurationContext ? >>>> >>>> RW> >>>> --------------------------------------------------------------------- >>>> RW> To unsubscribe, e-mail: >>>> [EMAIL PROTECTED] >>>> RW> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
signature.asc
Description: OpenPGP digital signature
