[jbossws-users] [JBossWS] - Re: Type Substitution doesn't work with Schema2Java Client a

M_schumpa do-not-reply at jboss.com
Wed Aug 15 10:32:10 EDT 2007


hi again,
no one here who can help me with this issue?

Maybe my description of the problem is hard to understand. so I'll try to make it more clear.

First I have written a web service with a parameter and a return value.

the method is something like:
 returnValue calculate (List<Car> carList){...}

The parameter is something like:
 class car{...}
 class cheep extends car{...}
 class cabrio extends car{...}

so I added the @XmlSeeAlso ({cheep.class, cabrio.class}) annotation to the Car class.

I can now deploy the web service and the wsdl gets generated in a proper way.

The first thing I did to test the service was writting a simple client which creates a cheep and a cabrio instance and adds these two instances to a list and passes it to the web service. For this I used the classes I coded.

With this setup everything worked fine and the service was able to cast the list members to the proper type. So the type substitution worked well.

But I need the test the Schema2Java approach, too.

So I consumed the WSDL with wsconsume and the -t 2.1 switch.

I addopted the client to use the generated classes. But here the type substitution doesn't work. Only a list of car instances gets passed to the service.

Anybody here who has a clue on how to fix this problem? 

Thanks in advance. 

Greetings 
m_schumpa 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074455#4074455

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074455



More information about the jbossws-users mailing list