Santosh,

It shouldn't be Balaji's responsibility to generate the elements rather than
soap-enc:Array -- this is a problem with java2wsdl. As Balaji says, the
generated WSDL is still using still using soap-enc:array. If you specify
doc/literal, java2wsdl should generate an element definition to represent
the array.

Balaji -- I suggest you file this as a bug.

Anne

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 6:21 AM
Subject: RE: Object array And Document literal -


> Balaji,
>
> Why are you trying to send/receive Array of objects in the
Document/literal
> style in the first place. Have you thought about what would an
> java.lang.Array or a java.lang.Object mean to a non-java client?
>
> If you want to use Document/literal for interop reason, then consider
using
> elements instead of complextypes in the WSDL. Also with elements you can
> define max and min Occur properties in the Schema, which is much more
> elegant than what you are trying to achieve.
>
> I do not know the background of what you want to do, but above statements
> should definitely help you.
>
> Regards,
>
> Santosh
>
> -----Original Message-----
> From: Balaji D L [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 11:16 AM
> To: [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Subject: Object array And Document literal -
>
>
> Hi,
>   Have any one tried to create a webservice which
> returns an array of objects in document/literal style.
>   I'm able to do it with RPC style, but with
> document/literal style I'm getting the below exception
> when I try to consume the service
>  Referenced type
> 'http://schemas.xmlsoap.org/soap/encoding/:Array'
> valid only for encoded SOAP.
>  The generated WSDL is still using soapenc:arrayType
> for encoding the arrays, which i think shoudn't be
> right for a document/literal based service.
>  Could someone please help me to solvet this problem ?
>
> thank you.
> Regards
> Balaji
>
>
> http://mobile.yahoo.com.au - Yahoo! Mobile
> - Check & compose your email via SMS on your Telstra or Vodafone mobile.
>

Reply via email to