You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Carolyn Vo <cv...@acornsys.com> on 2005/06/15 21:43:18 UTC

collection of complex types

We are trying to figure out how to access from C# an object that has a
collection of complex types, which in turn includes a collection of complex
types.  These complex types are inner classes of the parent object.  Is this
possible?

 

Thanks,

Carolyn


RE: collection of complex types

Posted by Ephemeris Lappis <ep...@gmail.com>.
Hello.

With few details about your model, i'm not sure my answer will help you...
But i'm currently doing new tests with different kinds of objects, and
particularly agregations with arrays of complex types that also have arrays
of objects, etc... It seems that all that fnally works rather well with
axis.

First, instead of collections (or similar classes), you should design your
exchange objects with arrays : arrays are easiy translated to and from xml
schema.

Then, avoid complex objects dependancies, such as inheritance. Indeed,
future clients of your services, because of their language or tools, will
not be able to handle them. I'd prefer to clearly separate my web services
from the applications they give access to. The applications components
generally provide complex classes that use all their native language
facilities. The web service layer provides a simplified view of this model,
with a different 'grain', and with flat complex types...

Did that help you ?

Regards.


--
Ephemeris Lappis


  -----Original Message-----
  From: Carolyn Vo [mailto:cvo@acornsys.com]
  Sent: Wednesday, June 15, 2005 9:43 PM
  To: axis-user@ws.apache.org
  Subject: collection of complex types


  We are trying to figure out how to access from C# an object that has a
collection of complex types, which in turn includes a collection of complex
types.  These complex types are inner classes of the parent object.  Is this
possible?



  Thanks,

  Carolyn