RE: java2Wsdl and interface

2006-02-26 Thread Darma Muthiayen
This issue is probably related to the open one AXIS-1720, where a class
that fails the isBeanCompatible test and appears more than once, leads
to an invalid schema that references a non-existent type.

https://issues.apache.org/jira/browse/AXIS-1720

Regards,
Darma

-Original Message-
From: Darma Muthiayen 
Sent: Saturday, February 25, 2006 11:02 PM
To: 'axis-user@ws.apache.org'
Cc: 'axis-dev@ws.apache.org'; '[EMAIL PROTECTED]'
Subject: 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:[EMAIL PROTECTED]
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.



RE: java2Wsdl and interface

2006-02-25 Thread Darma Muthiayen
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:[EMAIL PROTECTED] 
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.