cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liu, Jervis" <j...@iona.com>
Subject RE: Handlers and Client target - How do I do that in cxf
Date Fri, 11 Jan 2008 02:55:38 GMT


> -----Original Message-----
> From: George McKinney [mailto:GMcKinney@cucbc.com]
> Sent: 2008年1月11日 6:22
> To: cxf-user@incubator.apache.org
> Subject: Handlers and Client target - How do I do that in cxf
> 
> Hi all,
> I'm new to cxf, though have used Weblogic, Axis, and JAX-WS tools
> ( beginning from wsdl . ( And I don't have access to the code base at the
> moment - otherwise I'd flail around a while longer :)
> 
> 3 questions
> server side, I am used to defining a a logging handler chain in ( for instance )
> sun-jaxws.xml in WEB-INF - just to log the SOAP messages to a log4J logger.
> What is the cxf equivalent?
> 
[Liu, Jervis] CXF supports the standard way per JAX-WS spec to configure handler chain on
the server side. An example of this can be found in samples\jaxws_handlers in CXF distribution..

> client side, I
>   1 programatically create a list of Handlers ( the same logging Handler, and
> another Handler that adds a specific http headers and values.
>   2 set the BindingProvider.ENDPOINT_ADDRESS_PROPERTY to the url of
> the webservice to be consumed.
> 
> doing both by casting to a BindingProvider and doing stuff.
> 
[Liu, Jervis] Both 1 and 2 should work, as long as you are using standard JAX-WS APIs.

> Will this kind of thing work with cxf, or is there another way?
> 
> Thanks
> --
> George McKinney
> Senior Software Developer/Analyst
> MemberDirect(r) Product Development
> phone: 604 737 5900
> email: gmckinney@memberdirect.ca
> website: memberdirect.ca
> 

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
Mime
View raw message