Roy Wood wrote:

I got Mozilla working by adding an "actionURI" to the SOAPCall object.  ...

Now, the only complication is that I am returning back a Vector of
Strings, and can't figure out how to process them in JavaScript.
Following along the examples I've Googled, I can access the single return
parameter of "GetAppraisalIndexReturn" which is the Vector, but not the
associated String elements. ...
Anyone have any suggestions as to how to deal with this?  I just want to
access the data coming back!

   <GetAppraisalIndexReturn href="#id0"/>
okay, your returned value is a multiref, and that multiref is a Vector id="id0"
<multiRef id="id0" soapenc:root="0" ...
xsi:type="ns2:Vector" ...
...>
<item xsi:type="xsd:string">1 2 2 Lot 25...RET - Retail</item>
<item xsi:type="xsd:string">2 2 2 28 Lan...RET - Retail</item>
If it's always going to be that way, with the data being in "item" tags which are
actually siblings, and no "item" tags which aren't your data, perhaps something like
  var soapResponse = soapCall.invoke();
 // deal with fault issues, return if needed
  var node= soapResponse.message.getElementsByTagName("item")[0]; // first item.
  var res=node.nodeValue;
  while(null!=(node=node.nextSibling))res+=node.nodeValue;
  return res;
Of course that's traversing the sibs of the first item; if that's not the same
as the the getElementsByTagName list, then maybe you go up a level and traverse
the NodeList itself. Or if you can't count on always getting the multiref
structure the same way then you might have to be clever about looking at the
DOM structure.

Or maybe I've just misunderstood what's going on. Wouldn't be unusual.

Tom Myers


Reply via email to