Almost one year later I experience the same issue.
Does anyone have a solution to this?
lujop wrote:
>
> Hi,
>
> I've problems making a simple web service that instead of only primitive
> types returns a bean. What I want is to work as a basis with beans and
> annotate them.
> I always get a BeanXXX not know in this context or similar.
>
> I understand that JAXB can't found the BeanXXX but I don't know how to
> register it in a way that Axis2 found it. Because if I use the same code
> and I put it in GlassFish it works as expected.
>
> That's my code:
>
> ---WebS.java
> @WebService()
> public class WebS{
> @WebMethod
> @WebResult
> public Missatge getMissatge(String m1,String m2) {
> Message m=new Message ();
> m.setM1(m1);
> m.setM2(m2);
> return m;
> }
> }
>
> ---And Message.java----
> @XmlRootElement
> public class Message {
> it's a simple bean with String m1 and String m2 properties
> }
>
> That's a problem of Axis2 with complex types? A functionality that isn't
> supported? I'm a newbie in JAX-WS but what confuses me is that in
> Glassfish works as expected.
>
> I've tried also to generate the code with wsgen before deploy, and try
> several ways of annotating but nothing worked well.
>
> I will greatly appreciate if someone can give me a clue of what I'm doing
> wrong or point me to a sample that returns complex type and work through
> annotated beans.
>
>
> A lot of thanks in advance,
>
> ---
> Joan Jesus Pujol Espinar
> http://www.joanpujol.cat
>
>
-----
--
Hamlet D'Arcy
--
View this message in context:
http://www.nabble.com/JAX-WS-with-complex-types-problems-%C2%BF-tp17289551p22790080.html
Sent from the Axis - User mailing list archive at Nabble.com.