Hi, we have a requirement in our project to convert (text/xml) into Service
Data Objects (SDOs).  I tried writing a custom provider which will convert
the input xml into SDO and vice versa.  But for some reason, I do not see
that piece of code is getting called.   Below are the steps I did follow.

1) Wrote a class which implements MessageBodyWriter and MessageBodyReader
2) Provided implementation for writeTo, and readFrom methods
3) Have @Provider, @Consumes(MediaType.TEXT_XML),
@Produces(MediaType.TEXT_XML) annotations at the beginning of my provider
class.
4) Added the same provider class in the application file where we would
usually provide the wink application name (which has reference in web.xml)

Any help is greatly appreciated!

Regards / Rajan Kumar

Reply via email to