By the way, I just thought, perhaps in this case it is just possible to rely on the JAXRS jaxrs:server endpoint to expose a given pojo over SOAP. Much depends on the actual 3rd party pojo, but if this pojo has only single in and out types in selected methods to be invoked then one would be able to create a simple model describing this service in xml, ex, say that

setFoo accepts Foo with an application/soap media type and returns Bar, also 
with application/soap.
Additionally, one would need to register a SOAP-aware JAXRS message body reader/writer with a jaxrs:server and this provider would delegate to correspoinding SOAP interceptor chains - this is something I'm not sure is possible to do :-), but I'm just throwing this crazy idea :-) out there...May be this provider could simply register a dummy JAXWS endpoint and then get in/out interceptors out of this endpoint and invoke on them...

cheers, Sergey


This is one of the motivations behind introducing a CXF JAX-RS no-annotation feature - you have an existing 3rd party library and you just easily and nicely 'wrap' it with a simple xml file which itself can be generated from a simple ui tool. IMHO, having something similar for CXF Java WS would be beneficial.

cheers, Sergey

----- Original Message ----- From: "Barrie Treloar" <[email protected]>
To: <[email protected]>
Sent: Thursday, January 14, 2010 3:22 AM
Subject: Re: Expose pojo via webservice dynamically without annotations (maybe 
with Spring/AOP)?


I think the other problem is that simple != java-ws and I want to
expose my pojo as a web service.
What I am trying to do is avoid changing the code to add annotations.
e.g. what happens when I want to expose a third party class as a web
service and I dont have the source code for it?


Reply via email to