On Monday 05 November 2007, Vespa, Anthony J wrote:
> Okie, so what is the next step?  Do I need to log a bug for this?  I'm
> not really 100% on why the mapping is broken.

I have it fixed.  :-)     Running the test suite now.

There were two issues:
1) We were generating the "ArrayOfAnyType" into the 
http://www.w3.org/2001/XMLSchema namespace which is really wrong as 
thats a standard namespace that we shouldn't be generating anything 
into.

2) Because that namespace is a standard one, we don't create an 
<xsd:import> element for it.    Thus, the SOAPui parser/validator cannot 
find it.   Fixing (1) actually fixes this. 


Dan



> -T
>
> -----Original Message-----
> From: Daniel Kulp [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 05, 2007 4:32 PM
> To: [email protected]
> Cc: Vespa, Anthony J
> Subject: Re: Help! Aegis not mapping Java.Util.Collection properly
>
>
> 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

Reply via email to