axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darma Muthiayen" <>
Subject RE: java2Wsdl and interface
Date Sun, 26 Feb 2006 07:02:12 GMT
I ran into the same issue, which looks very much like a bug (in Axis

Java2wsdl adds an undefined type to the types list on its first
occurrence, causing subsequent occurrences to output a message part with
the undefined type (instead of anyType).

Any chance to have a fix in 1.4?


-----Original Message-----
From: Nicolas De Loof [] 
Sent: Monday, January 23, 2006 1:34 AM
Subject: java2Wsdl and interface


My business service uses an Interface "UtilisateurWeb" as parameter.
Java2wsdl builds an invalid WSDL :

   <wsdl:message name="activerRenvoiRequest">
      <wsdl:part name="in0" type="tns1:UtilisateurWeb"/>

but complextype "UtilisateurWeb" is not defined anywhere in generated

Debuging Java2wsdl process I've found that first occurence of my
interface is translated as "xsd:anytype", as axis doesn't have a
serializer for it (Interface is not a Bean because it has no default
constructor). In o.a.a.wsdl.fromJava.Types (line 421) makeTypeElement
returns false, so Constants.XSD_ANYTYPE is used. BUT next occurence
returns true, as "addToTypesList" has added it to it's types list. Maybe
it's a bug ?

How can I configure Java2Wsdl to use a custom serializer, or any other
way to force using xsd:anytype ?


This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.

View raw message