Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Programatic CXF features on JAX-WS endpoin

$
0
0
Hi,

how can I add/inject custom CXF features/interceptors to the client
endpoint created using JAX-WS API:

QName serviceName = new QName("...", "...");
Service service = Service.create(serviceName);
service.addPort(serviceName, SOAPBinding.SOAP12HTTP_BINDING, "...");
Dispatch<Object> disp = service.createDispatch(serviceName,
jaxbContext, Service.Mode.PAYLOAD);
...
disp.invoke(req);

After debugging I can see that org.apache.cxf.jaxws.ServiceImpl creates
org.apache.cxf.jaxws.support.JaxWsEndpointImpl object but I see no way of
customizing it. What I need is to add some CXF features/interceptors to the
endpoint after it has been created.

Any "standard" CXF way of doing it?

Many thanks,
Przemyslaw BIELICKI

Viewing all articles
Browse latest Browse all 5648

Trending Articles