Hi

On Fri, Nov 5, 2010 at 12:40 PM, Kazi, Iftekhar <[email protected]> wrote:

> Hi,
>
>   I need to create a Web Service Gateway, that converts calls from an
> existing REST WS to a SOAP WS. Also, need the ability to transform the XML
> using XSLT. Any thoughts/ideas ? Thanks
>


While Camel can definitely be used, you can likely do an efficient bridge at
the CXF level alone.

For example, have two endpoints with the facade (RESTful) one being injected
(using @Resource) with the interface representing a SOAP service
(jaxrs:client reference or just a bean reference if the soap service is
collocated).

Next. you can do some local XSLT transformation and then forward the result
to the SOAP service bean. Basic XSLT transform is straightforward to setup.
In fact you can probably just create (at start-up) an instance of
XSLTJaxbProvider shipped with CXF which is quite optimized and use it (its
readFrom method) to transform the (pure XML) incoming data, using an
effective InputStream to JAXB transformation...

cheers, Sergey

Reply via email to