Hi,
since XFire 1.2.6 you can do the following in your service implementation:
import javax.servlet.http.HttpServletRequest;
import org.codehaus.xfire.service.invoker.AbstractInvoker;
import org.codehaus.xfire.transport.http.XFireServletController;
//...
MessageContext ctx=AbstractInvoker.getContext();
HttpServletRequest
req=(HttpServletRequest)ctx.getProperty(XFireServletController.HTTP_SERVLET_CONTEXT);
Hope that helps,
Bernd.
Stefan Arentz wrote:
I have a simple web service:
@WebService
public interface HelloService {
String sayHello(String name);
}
public public class HelloServiceImpl implements HelloService {
public String sayHello(String name) {
return "Hallo, " + name + "!";
}
}
But now I would like to access some stuff from the HttpServletRequest.
Like for example the remoteHost.
Is there any way to get the HttpServletRequest when defining services
using the JSR-181 annotations?
S.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Dr. Bernd Schuller
Central Institute for Applied Mathematics
Forschungszentrum Juelich GmbH
mail [EMAIL PROTECTED]
phone +49 2461 61 8736
fax +49 2461 61 6656
blog http://www.jroller.com/page/gridhaus
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email