After some thought I realise that the choice item defines only one of the parameter, to
implement this in code generation it would be something like: the method would receive an
Object and then would check (ex. using reflection) what object was that.
This is not so simple.
 
A solution is to change the schema and the method receive the 2 arguments and the service
takes care of handling then.
 
 
----- Original Message -----
Sent: Tuesday, February 26, 2002 5:23 PM
Subject: WSDL2Java limitation or not?

Hi,
 
Here we had to develop dozens of webservices, so we start analizing the best aproach to do it.
 
Once Axis has a WSDL2java we thought using it, so we start creating the schemas then creating the
WSDL by hand (importing the schemas) and finally generating all the code to start focus on the service
 implementation.
 
In some of the services we saw that the code generated was ok and on the others it generated just
some classes and not others, after alot of inspection I realise the if you have a complextype and then
a choice item, the generator ignores it, if you have an all item it's fine.
 
Probably who did this thought well, my suggestion is one command line option to give us
the flexibility to generate code in this case
 
I supose is something in SchemaUtils.
 
 
Thanks, and keep the good work
Luis Novais

Reply via email to