Hello List,

I am working on trying to generate the code from a wsdl using the
wsdl2java utility included with axis 1.1.  The wsdl depends on a very
complex xsd which uses unions.  The xsd is dictated to me from a different
organization and I cannot change it.  From what I was able to find on this
list on the topic of unions, support is flaky at best.  The problem I am
having is that the generated classes that have a union element defines the
elements as an unsigned byte.  However, the classes that use these classes
take string arguments and try to pass those to the constructors instead of
an unsigned byte.  Is there anyway to get unions to work properly?  Should
I go in and hand edit the generated java files to pass the first byte of
the string to the constructor (I don't want to do this since we have to
deliver the wsdl and xsd's and nothing else).   Would that even be the
correct behavior?  If there are any another resources for questions of
this nature I would appreciate being directed to those as well.  Thanks
for any help.

- John Hennessy

Reply via email to