This content has been marked as final.
Show 2 replies
-
1. Re: how to obtain username of caller for a web service that
anders.hedstrom Oct 16, 2005 2:15 PM (in response to msumike55)Hi,
implement javax.xml.rpc.server.ServiceLifecycle interface.public class SubmitSMSImpl implements ServiceLifecycle { protected javax.xml.rpc.server.ServletEndpointContext ctx: public void init(Object context){ ctx = context; } public void destroy(){ ctx = null; } public String saySomething(String something){ System.out.println(name); //Get caller name here and store in database if possible Principal user = ctx.getUserPrincipal(); //.... do whatever.... return something; } }
//Anders -
2. Re: how to obtain username of caller for a web service that
msumike55 Oct 17, 2005 9:24 AM (in response to msumike55)Anders,
Thanks for replying! This was exactly what I needed!
Mike