You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ilias Bartolini <il...@studio.unibo.it> on 2005/04/22 16:02:58 UTC

Java2WSDL generates non valid Schema! (element maxOccours)

-----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-----

Re: Java2WSDL generates non valid Schema! (element maxOccours)

Posted by Davanum Srinivas <da...@gmail.com>.
Please open a JIRA bug report with a sample to recreate the problem.

thanks,
dims

On 4/22/05, Ilias Bartolini <il...@studio.unibo.it> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Friday 22 April 2005 16:02, Ilias Bartolini wrote:
> > I've deployed a service which java methods return an array of objects.
> > Signature follows:
> >   public Facolta[] getFacolta(String language) throws RemoteException {...}
> 
> ah... don't know if the additional information is usefull: all Java objects
> are mapped with BeanMapping.
> 
> 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)
> 
> iD8DBQFCaQZ7+CP4pmqVGkURAn3+AJ96zGgAVsMhsO39xjpVsee807CM7ACeNZIl
> 1Wq9lmzauzXqGBfZ4bwOqMc=
> =tknd
> -----END PGP SIGNATURE-----
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: Java2WSDL generates non valid Schema! (element maxOccours)

Posted by Ilias Bartolini <il...@studio.unibo.it>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 22 April 2005 16:02, Ilias Bartolini wrote:
> I've deployed a service which java methods return an array of objects.
> Signature follows:
>   public Facolta[] getFacolta(String language) throws RemoteException {...}

ah... don't know if the additional information is usefull: all Java objects 
are mapped with BeanMapping.

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)

iD8DBQFCaQZ7+CP4pmqVGkURAn3+AJ96zGgAVsMhsO39xjpVsee807CM7ACeNZIl
1Wq9lmzauzXqGBfZ4bwOqMc=
=tknd
-----END PGP SIGNATURE-----