Use @XMLTransient in CXF web service with jaxb binding

I have an application that is heavily dependent on a configuration object (template). Therefore, import / export functions are required. One developer completed the import / export function, and many DTOs were annotated with Jaxb @XMLTransient. The reason for this is that we do not want to sort the identifier of the object in one database and import it into another and prevent a circular link between the object.

Now we expose some function at the service level, using Cxf with jaxb binding. We do not generate dto from wsdl, but we use our current dtos, and, of course, some attributes are missing when passing through ws.

My question is how can I solve this problem without touching the existing import / export, but still support cxf ws.

Any recommendations and ideas are greatly appreciated.

+3
source share

Source: https://habr.com/ru/post/1737077/


All Articles