I'm not an aegis expert at all, but I believe the "claim" is that the generics work on the Collections, but not on other classes. Thus, List<Integer> will map to int in the schema, but Foo<Integer> is not mapped. Basically, we only look at the generics if its an instance of a collection and at that point, we ONLY look at that collection. We don't going searching up all the declarations to figure out where the generics expansion came from.
That said, mapping to the anyType should have worked. Generating an invalid wsdl is definitely a bug. Dan On Monday 05 November 2007, Vespa, Anthony J wrote: > Hello, > > I am having a problem trying to return a 'complex object' that > contains a java.util.collection as one of the properties. I've > written a SOAP service using Aegis binding and I want to pass in a > generic return type from the various data accessing functions I have > written. I am getting this error in my SOAPUI: > > Mon Nov 05 13:17:48 EST 2007:WARN: error: src-resolve: type > '[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema' not found. > > I have defined the class as such: > > @XmlType(name = "wsResponse", namespace = "http://soap.ws.test.com/") > public class wsResponse<T> { > > protected Collection<T> response; > protected String sName; > protected String sessionId; > > public wsResponse(Collection<T> os) { > this.response = os; > } > > public wsResponse() { > > } > > public void setResponse(Collection<T> response) { > this.response = response; > } > > public Collection<T> getResponse() { > return response; > } > > > ... (other setters//getters) > } > > Please help, I have been held up for 2 days! > > Though there are no real examples out there, the Xfire/CXF docs > 'claim' this should be automatic with Java 1.5 > > Thanks! > > -Tony -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
