You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by George McKinney <GM...@cucbc.com> on 2008/01/10 23:21:46 UTC
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?
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.
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
RE: Handlers and Client target - How do I do that in cxf
Posted by "Liu, Jervis" <jl...@iona.com>.
> -----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
Re: Handlers and Client target - How do I do that in cxf
Posted by Glen Mazza <gl...@verizon.net>.
Am Donnerstag, den 10.01.2008, 14:21 -0800 schrieb George McKinney:
> 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?
>
The CXF equivalent to Metro's JAX-WS Handlers are JAX-WS Handlers--see
here for info: http://www.jroller.com/gmazza/date/20080107
> 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.
>
> Will this kind of thing work with cxf, or is there another way?
CXF also has interceptors you can use:
http://cwiki.apache.org/CXF20DOC/debugging.html
HTH,
Glen