Hi We are exposing some java services as web services using CXF, we wish to expose them as REST and SOAP services (we wanted REST, but some of our clients won't play so we have to have SOAP).
We are using joda time in our java service. We picked aegis data binding as we could then use our java interfaces for the service data model. the LocalDate object (as an example) from joda time is an attribute of a bean we return from our service, that bean may be in lists or nested in other beans. I've managed to create and register an AegisType for handling LocalDate from the joda time package, this work fine for SOAP. I've read the very limited documentation, googled, search the mailing lists and looked at the source but I can't see how I can reuse the Aegis type for AegisElementProvider. I've tried wrapping the SOAP databinding bean in a databinginprovider to then use as a provider in the rest service, but I get errors saying 'No message for part null' (see XMLStreamDataWriter line 70). I've tried wrapping the rest AegisElementProvider in a JAXRSDataBinding but get this message instead 'The message content list of the in message and out message are same, CXF can't set the holder object into the message content list of the out message.' (line 83 in HolderOutInterceptor I think). Does anyone have any working examples, of RS and WS sharing an AegisType, that works on an attribute of a bean, rather than the bean type declared in the response message?, or does anyone have any hints that might get us heading in the right direction. Thanks Jeremy -- Homepage: http://www.computerbooth.com/ Codepage: http://www.newdawnsoftware.com/
