axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilias Bartolini <ilias.bartol...@studio.unibo.it>
Subject Java2WSDL generates non valid Schema! (element maxOccours)
Date Fri, 22 Apr 2005 14:02:58 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm using Axis1.2RC3

I don't know if it's a known bug, or maybe is not a bug. ...the problem is the 
follwing:

I've deployed a service which java methods return an array of objects. 
Signature follows:
  public Facolta[] getFacolta(String language) throws RemoteException {...}

The autogenerated WSDL contains the following schema snippet:
- ------------
<schema elementFormDefault="qualified" 
targetNamespace="http://mid2vm.unibo.it:7782/axis12RC3/services/guideDocument">
  <import namespace="urn:guide.www.unibo.it"/>
  <import namespace="http://guide.www.unibo.it"/>
  <element maxOccurs="unbounded" name="getFacoltaReturn" type="tns2:Facolta"/>
 [...cut...]
</schema>
- ------------

AS described in http://www.w3.org/TR/xmlschema-1/#declare-element
maxOccours attribute isn't allowed in XMLSchema if <element> descends directly 
from <schema>!!!

Is this a bug?
Is this problem already known?
Will be resolved in 1.2 release or is already resolved on CVS?  

If you need more information about my service definition, just ask.

thank you for any answer,
  Ilias

- -- 
/**
 * Reply to: ilias.bartolini(at)studio.unibo.it  
 * ICQ# 42797710 - FeSToso n°143 - PGP Key-IDs:0x6A951A45
 * http://www.brainetwork.net/homepage - https://www.universibo.unibo.it
 * http://www.icalx.com/html/brain79/week.php?cal=brain79.public
 */
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCaQQT+CP4pmqVGkURAnXBAJ9UIGhR4G5mPqpkQ0kR8MrCM2CWMQCdHJxy
MOI4sWyqouCG5qn8NpvhG60=
=V7xf
-----END PGP SIGNATURE-----

Mime
View raw message