cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Get HTTP Timestamp from SOAP response
Date Tue, 08 May 2012 20:23:17 GMT

All of the HTTP headers are stored in a Map on the response/response 
context.  From a client, you should be able to do something like:

((BindingProvider)proxy).getResponseContext()
   .get("org.apache.cxf.message.Message.PROTOCOL_HEADERS");

and use that returned Map to lookup the various headers such as the Date.

Dan


On Tuesday, May 08, 2012 02:09:19 AM meteora28 wrote:
> Is it possible to get the HTTP Timestamp from a SOAP response via CXF?
> 
> An answer could be for example: (Tracked by wireshark)
> 
> HTTP/1.1 200 OK
> Content-Type: application/soap+xml; charset=utf-8
> Content-Length: 1787
> Connection: close
> Date: Tue, 08 May 2012 16:29:46 GMT
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope ...
> 
> Is it possible to get the date via CXF?
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Get-HTTP-Timestamp-from-SOAP-response-tp5
> 693049.html Sent from the cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Mime
View raw message