Thank you very much, Anne!!! Your explanation has been very useful for me.
You have clarify my basic doubts. 

I was mixing basic concepts. I didn't know what Tuscany is and I am going to
research around this because I don't know how it works. I think you are
right, and probably I should use a model similar to DAO, but I am new
working with this issues and I don't know how I should start.

Thanks,

Ana Belen.


-----Mensaje original-----
De: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 04 de octubre de 2007 9:47
Para: [email protected]
Asunto: *SPAM*: 05.20/4.0 - Re: *SPAM*: 08.50/4.0 - Re: Problem building
available services

Tuscany is an implementation of the SCA specification, not a web services
framework. If you would prefer to try a different WSF, you might try Apache
CXF. I don't know whether it supports Generic Types, though.

As a general rule, it's best to avoid directly exposing language-specific
types through a web services interface, though. The purpose of a web
services interface is to enable interoperability with other languages. Other
languages don't support Java collections and generics. You want your
interface to map easily to the XML type system, therefore, your interface
should expose simple types, beans, and arrays. If you prefer to exploit the
power of the Java type system within your application -- fine. But use a
model similar to DAO to provide a layer of abstraction between your
interface (simple, flat
structures) and your internal object model (rich graphs).

If your plan is to only support Java clients, I suggest using RMI rather
than SOAP.

Anne

On 10/3/07, Ana Belén Antón Gironés <[EMAIL PROTECTED]> wrote:
>
>
> Hi!
>
> Thank you very much for your help, Suran and Lahiru.
>
> >First of all, I see that your class uses generics. Please note that 
> >Axis2
> only supports simple-types, arrays and beans. Since Axis2 is JDK1.4 
> compliant, generics are not >supported.
> >So what you can do is replace your genericised List arguments with
arrays.
> >e.g.: replace List<Class32> with Class32[].
>
>
> I think I am more confused than I thought :-(. Because of your 
> explanation I deduce that I should use another web service framework, 
> maybe Apache Tuscany. Is this right?
>
> >Your service folder structure looks ok to me. When the eclipse plugin 
> >has
> created the .aar file, check whether it contains the intended structure.
> >(rename the .aar file to .zip and you'll be able to deal with it 
> >using any
> zip tool, or extract the .aar file somewhere and take a look at the 
> extracted structure, or do  "jar tvf" on the archive).
>
> Regarding the generation of .aar files. I checked the structure 
> generated before and I thought that it was wrong, because where is the 
> "MyService.class"??. The generated structure is:
>
> -MyService.aar
>     -configuration
>         - .............
>     -lib (the libraries that I described in my latter mail)
>     -META-INF
>         -MANIFEST.MF
>         -services.xml (the same xml that I described in my latter mail)
>      -plugins
>
> Thanks,
>
> Ana.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to