You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Christian Vest Hansen <ka...@gmail.com> on 2007/08/07 14:36:38 UTC

Getting the source request

Hi!

In XFire, you could do this funky trick to get a hold of the source
request for a service invocation:

    HttpServletRequest req = XFireServletController.getRequest();

I wonder what the CXF counterpart is?


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

Re: Getting the source request

Posted by Christian Vest Hansen <ka...@gmail.com>.
Thanks for the help...


2007/8/7, Brad Harper <br...@gmail.com>:
> Check out the bottom of this page for more detail....
>
> http://cwiki.apache.org/CXF20DOC/servlet-transport.html
>
> On 8/7/07, Jiang, Ning (Willem) <Ni...@iona.com> wrote:
> >
> > Hi,
> >
> > You can get the request from the inMessage
> >
> > HttpServletRequest req  = inMessage.get(
> > AbstractHTTPDestination.HTTP_REQUEST);
> > HttpServletResponse resp = inMessage.get(
> > AbstractHTTPDestination.HTTP_RESPONSE);
> >
> > If you could get the inMessage from the exchange in you application code.
> >
> > Willem.
> >
> >
> > -----Original Message-----
> > From: Christian Vest Hansen [mailto:karmazilla@gmail.com]
> > Sent: Tue 8/7/2007 20:36
> > To: cxf-user@incubator.apache.org
> > Subject: Getting the source request
> >
> > Hi!
> >
> > In XFire, you could do this funky trick to get a hold of the source
> > request for a service invocation:
> >
> >     HttpServletRequest req = XFireServletController.getRequest();
> >
> > I wonder what the CXF counterpart is?
> >
> >
> > --
> > Venlig hilsen / Kind regards,
> > Christian Vest Hansen.
> >
> >
>


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

Re: Getting the source request

Posted by Brad Harper <br...@gmail.com>.
Check out the bottom of this page for more detail....

http://cwiki.apache.org/CXF20DOC/servlet-transport.html

On 8/7/07, Jiang, Ning (Willem) <Ni...@iona.com> wrote:
>
> Hi,
>
> You can get the request from the inMessage
>
> HttpServletRequest req  = inMessage.get(
> AbstractHTTPDestination.HTTP_REQUEST);
> HttpServletResponse resp = inMessage.get(
> AbstractHTTPDestination.HTTP_RESPONSE);
>
> If you could get the inMessage from the exchange in you application code.
>
> Willem.
>
>
> -----Original Message-----
> From: Christian Vest Hansen [mailto:karmazilla@gmail.com]
> Sent: Tue 8/7/2007 20:36
> To: cxf-user@incubator.apache.org
> Subject: Getting the source request
>
> Hi!
>
> In XFire, you could do this funky trick to get a hold of the source
> request for a service invocation:
>
>     HttpServletRequest req = XFireServletController.getRequest();
>
> I wonder what the CXF counterpart is?
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>
>

RE: Getting the source request

Posted by "Jiang, Ning (Willem)" <Ni...@iona.com>.
Hi,

You can get the request from the inMessage

 HttpServletRequest req  = inMessage.get(AbstractHTTPDestination.HTTP_REQUEST);
 HttpServletResponse resp = inMessage.get(AbstractHTTPDestination.HTTP_RESPONSE);

If you could get the inMessage from the exchange in you application code.

Willem.


-----Original Message-----
From: Christian Vest Hansen [mailto:karmazilla@gmail.com]
Sent: Tue 8/7/2007 20:36
To: cxf-user@incubator.apache.org
Subject: Getting the source request
 
Hi!

In XFire, you could do this funky trick to get a hold of the source
request for a service invocation:

    HttpServletRequest req = XFireServletController.getRequest();

I wonder what the CXF counterpart is?


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.