I think I see what you’re referring to with the array typing. In my example below I’m taking the query object and converting it to an array of lineItem VOs…

 

If you see below I’ve got lineItem and lineItemArray both as properties of my Dataset object. This is wrong but it’s the only way I could get the lineItem type to show up in the schema. (which I guess is what you’re driving at Sam) If I had only marked one property in the Dataset, the array, it would have stopped there…

 

So any ideas on how I could properly construct this?  Thx!  -Stace

 

 

- <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="ArrayOf_xsd_anyType">

   - <complexContent>

      - <restriction base="soapenc:Array">

           <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]" />

        </restriction>

     </complexContent>

  </complexType>

 

- <complexType name="dataset">

   - <sequence>

        <element name="lineItem" nillable="true" type="impl:lineitem" />

        <element name="lineItemArray" nillable="true" type="impl:ArrayOf_xsd_anyType" />

     </sequence>

  </complexType>

 

 

 

-----Original Message-----

From: Samuel R. Neff [mailto:[EMAIL PROTECTED]

Sent: Thursday, February 05, 2004 8:35 PM

To: [EMAIL PROTECTED]

Subject: RE: [CFCDev] Achieving max compatibility for Web Service

 

 

A ColdFusion array is not very compatible.  The problem is CF provides no

mechanism to type arrays so it will always be an array of anything.  To

interoperate with other languages you usually need to specify what it's an

array of.  I've had no problems with arrays of scalars but never with array

of struct or array of components.

 

We need typed arrays as web service returnTypes:

http://www.macromedia.com/go/wish

 

As far as complex type, Matt is completely correct about using CFC value

objects instead of structs.  They provide for real typed WSDLs instead of

just key/value pairs where the values are anything.

 

HTH,

 

Sam



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.

Reply via email to