Hi, I have WDSL+XSD web service contract for which I need to implement both client and server sides. There is a bunch of <xsd:any targetNamespace="##any"> placeholders in server's replies for which I need to be able to use "extension elements" from other XML namespaces, which are not known in advance (and not, therefore, hardcoded in WSDL). Nevertheless, client may be aware of some of the extensions and may have JAXB-driven POJOs for their schemas. JAXB compiler treats these extension points as List properties. I would client to find there either DOM elements for unknown extensions or bound POJOs for known extensions.
It seems that on the server side it works, although, I haven't checked this out yet. Theoretically I am able to put there both DOM elements or JABX-bound POJOs and marshaller will determine proper XML encoding from annotations. However, on the client's site is looks trickier. Could you explain how client's unmarshaller can find proper JAXB bindins for encountered elements from different schemas? I suppose there may be a way to add additional java packages to unmarshaller's JAXB context, but I haven't found it by browsing both documentation and code. Thanks a lot in advance. -- Best regards, Igor Lobanov -- View this message in context: http://cxf.547215.n5.nabble.com/Using-elements-from-extra-XSD-schema-for-any-extensions-tp3279551p3279551.html Sent from the cxf-user mailing list archive at Nabble.com.
