You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Darma Muthiayen <da...@opsware.com> on 2006/02/26 08:02:12 UTC

RE: java2Wsdl and interface

I ran into the same issue, which looks very much like a bug (in Axis
1.4).

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?

Regards,
Darma 

-----Original Message-----
From: Nicolas De Loof [mailto:nicolas.deloof@capgemini.com] 
Sent: Monday, January 23, 2006 1:34 AM
To: axis-user@ws.apache.org
Subject: java2Wsdl and interface


Hello,

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"/>
   </wsdl:message>

but complextype "UtilisateurWeb" is not defined anywhere in generated
WSDL.

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 ?

Nico.

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.