Closed Bug 202485 Opened 21 years ago Closed 21 years ago

Accessing SOAP arrays via javascipt is unintuitive

Categories

(Core Graveyard :: Web Services, defect)

All
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: harishd, Assigned: harishd)

References

Details

Attachments

(1 file)

SOAP arrays defined by the WSDL can be acceessed from javascript only via a
function ( with name matching the SOAP array name ).

That is, if the WSDL contained the following:

<complexType name="ArrayOfstring">
  <complexContent>
    <restriction base="soap-enc:Array">
      <attribute ref="soap-enc:arrayType"wsdl:arrayType="string[]"/>
    </restriction>
  </complexContent>
</complexType>

then the only way to access the array of strings is to call a funtion
ArrayOfString ( that takes an object & length params which will get populated by
the array info ) on the call completion object instead of ArrayOfString[index]!
Attached patch patch v1.0Splinter Review
When dealing with an array always punt to nsIVariant.
Attachment #120925 - Flags: superreview?(jst)
Attachment #120925 - Flags: review?(dbradley)
Comment on attachment 120925 [details] [diff] [review]
patch v1.0

sr=jst
Attachment #120925 - Flags: superreview?(jst) → superreview+
Comment on attachment 120925 [details] [diff] [review]
patch v1.0

r=dbradley
Attachment #120925 - Flags: review?(dbradley) → review+
Fixed
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Blocks: 190182
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: