Hi Sergey, thanks for the reply. Excel has a concept called an "XML Mapping". Upon connecting to my RS method I get this "The specified XML source does not refer to a schema. Excel will create a schema based on the source XML data" But the guesswork does not work very well every time. After import the user is able to change the XML Map by supplying an alternative XSD. I suppose if the response XML had the schema definition in header then Excel would automatically pick it up. That would be nice to have but I would be even fine with supplying the XSD manually to Excel. Essentially at this stage I am interested in generating the XSD automatically and supplying it to Excel would be another thing. What I understand from your reply is if I had been returning a single object rather than a collection, then it would be possible to generate the schema definition. I think this does not work right out of the box and I should be doing something for that as I have another method that is returning a single object but it is returning a similar plain XML file with no reference to any XSD.
-- View this message in context: http://cxf.547215.n5.nabble.com/automatic-schema-generation-for-a-RS-method-tp5033048p5038521.html Sent from the cxf-user mailing list archive at Nabble.com.
