Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 47010 invoked by uid 500); 15 Apr 2002 21:57:55 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 47001 invoked from network); 15 Apr 2002 21:57:55 -0000 Message-ID: From: Glen Daniels To: "'axis-dev@xml.apache.org'" Subject: RE: Array of Objects Date: Mon, 15 Apr 2002 17:58:01 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ahh. :) > -----Original Message----- > From: Tom Jordahl [mailto:tomj@macromedia.com] > Sent: Monday, April 15, 2002 5:56 PM > To: 'axis-dev@xml.apache.org' > Subject: RE: Array of Objects > > > > FYI - for those that were following this thread. > > I checked in a fix that should make things better for Object arrays. > We no longer spec arrays in quite the same way in the WSDL > generation code. > > We now generate this: > > xmlns="http://www.w3.org/2001/XMLSchema"> > > > > wsdl:arrayType="xsd:anyType[]" /> > > > > type="intf:ArrayOf_xsd_anyType" /> > > > > -- > Tom Jordahl > Macromedia > > > -----Original Message----- > From: Oliver Suciu [mailto:olivers@tibcofinance.com] > Sent: Friday, April 12, 2002 3:40 PM > To: axis-dev@xml.apache.org > Subject: Re: Array of Objects > > > Same problem posted on axis-user a while ago -- my solution > (workaround?) was to modify the Axis WSDL (attached). > > Why this WSDL works and not the one generated by java2wsdl, > I leave to the experts to analyze... The bottom line of the > typedef is the same (an array of anyType). It's either a bug > in .Net, or in the generated WSDL (or perhaps something in > between?)... > > -- Oliver > > Tom Jordahl wrote: > > > > If I have a Java class that looks like this: > > public class ArrayEcho { > > public Object[] echoArray (Object[] a) > > { > > return a; > > } > > > > } > > > > The WSDL we generate looks like this: > > > > targetNamespace="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns="http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > > > > > > > > > > > Is this valid WSDL? > > > > .NET wsdl.exe reports: > > ------------------------------------- > > Schema validation warning: Type > 'http://schemas.xmlsoap.org/soap/encoding/:Array' is not declared. > > > > Warning: Schema could not be validated. Class generation > may fail or may produce incorrect results. > > > > Error: Unable to import binding 'ArrayEchoSoapBinding' from > namespace 'http://localhost:8080/ArrayEcho.jws'. > > - Unable to import operation 'echoArray'. > > - The datatype 'Array' is missing. > > -------------------------------------------- > > > > But our tool correctly generates the stub: > > public java.lang.Object[] echoArray(java.lang.Object[] a) > > > > Does anyone (Rich?) who understands the WSDL we generate > for Arrays have any insight on this? Are generating (and > parsing) incorrect WSDL or do we understand SOAP-ENC:Array > and .NET just doesn't? > > > > -- > > Tom Jordahl > > Macromedia Server Development >