Hi Stacy - Actually, if min and maxOccurs are not specified, they both default to 1. So you would need to edit the WSDL to get the results that you are looking for in this case.
You might think of it is a maintenance hazard, but really you gain some advantages by having an isolated WSDL document (and doing WSDL first has become the recommended way by most WS "heavyweights" anyway). Rather than thinking of the WSDL as something that the CFC generates and something that is attached to the CFC itself, think about it as an interface to the service you are providing, one that very clearly defines the semantics of the service, apart from the implementation. You can change the implementation (even to a different platform) without killing clients easily in this way. Also, when you go implementation-to-WSDL, you are letting your tools dictate the semantics of this interface for all parties involved (now and in the future), and likely requiring lots of data mapping, etc. If you go WSDL-to-implementation, you are dictating the semantics based on standards (XML/Schema/SOAP,etc), which reduces the need for such heavy translation. That's my take on it anyway! HTH, Scott Keene http://www.cfoop.com > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young > Sent: Friday, February 06, 2004 11:41 PM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] Achieving max compatibility for Web Service > > > Dear WSDL gurus, > > Ok I've managed to get my CFC to return the following: > > (clip from WSDL) > > <complexType name="lineitem"> > <sequence> > <element name="accountNumber" nillable="true" > type="xsd:double"/> > <element name="amount" nillable="true" type="xsd:double"/> > <element name="customerName" nillable="true" > type="xsd:string"/> > <element name="merchantTxnId" nillable="true" > type="xsd:string"/> > <element name="txnId" nillable="true" type="xsd:double"/> > </sequence> > </complexType> > > <complexType name="lineitemarray"> > <sequence> > <element name="lineItem" nillable="true" type="impl:lineitem"/> > </sequence> > </complexType> > > The above replaces my query object approach...but I'm > wondering if I need to add the following in the second type > definition: > > <complexType name="lineitemarray"> > <sequence> > <element minOccurs="0" maxOccurs="unbounded" name="lineItem" > nillable="true" type="impl:lineitem"/> > </sequence> > </complexType> > > The minOccurs and maxOccurs tells the client there can be n > lineitems in this lineitemarray...should I include this > manually by editing my WSDL (maintenance hazard) or is this > implied by default? Or does it even matter at all? > > Thanks! > > Stace > > > > > AVIS IMPORTANT: > ------------------------------- > Les informations contenues dans le present document et ses > pieces jointes sont strictement confidentielles et reservees > a l'usage de la (des) personne(s) a qui il est adresse. Si > vous n'etes pas le destinataire, soyez avise que toute > divulgation, distribution, copie, ou autre utilisation de ces > informations est strictement prohibee. Si vous avez recu ce > document par erreur, veuillez s'il vous plait communiquer > immediatement avec l'expediteur et detruire ce document sans > en faire de copie sous quelque forme. > > WARNING: > ------------------------------- > The information contained in this document and attachments is > confidential and intended only for the person(s) named above. > If you are not the intended recipient you are hereby notified > that any disclosure, copying, distribution, or any other use > of the information is strictly prohibited. If you have > received this document by mistake, please notify the sender > immediately and destroy this document and attachments without > making any copy of any kind. > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by > Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
