Has anyone tried to return a Hibernate detached object in an Axis2 web service? I have an object with lazy-loaded collections of objects. When I try to call the web service, I get a LazyInitializationException because the serializer (Axiom? StAX?) is trying to iterate over the collection. What I need is a way to skip the attribute if it is a PersistentSet that hasn't been initialized. I suspect that the actual coding is pretty simple, the trick is figuring out where to put it, and how to get Axis to use it.
Does anyone have any ideas? Thanks, Steve
