Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #150 (closed enhancement: fixed)

Opened 3 years ago

Last modified 1 year ago

SOAP::FaultError - Index was outside the bounds of the array

Reported by: nahi Assigned to: nahi
Priority: normal Milestone: 1.5.6
Component: soap4r Version: 1.5
Keywords: Cc:

Description

Hello there,

I've got an ASP.NET web service which is providing access to several
functions exposed as web methods.

By wsdl2ruby.rb (the standard one distributed with Ruby 1.8.2) I've
created the Ruby wrappers to access these methods.

Everything seems to be working fine a part from methods which require
ArrayOfDouble to be passed as inputs for which I get the following
error message:

#<SOAP::Mapping::Object:0x2c2bba0>: Server was unable to process
request. --> Index was outside the bounds of the array.
 (SOAP::FaultError)

The calling code is as follows:

--------------------------------------
...all arrays are initiated here...

barriers=[
-1.000000,
-1.000000,
1000.000000,
1000.000000,
1000.000000,
1.000000]

resets=[4,13,13]

correlations=[]

reductionCode=2000

extra=[
0.015000,
1.000000,
0.000000]

endpoint_url = 'http://10.243.0.112/qcalctoolboxws/pricer.asmx'
obj = PricerSoap.new(endpoint_url)

res = ''

mytest = FlexEquityPricing.new(atimespan, aforwarddiscountfactors,
adividend, avolatility, simulations, reductionCode, isForwardStart,
isPreCouponPeriod, isPayAtMaturity, sofar, capsandfloors, resets,
correlations, extra)

res = obj.flexEquityPricing(mytest).flexEquityPricing.double
--------------------------------------

The only noticeable difference between the SOAP request generated by
ruby and the one generated by other soap clients is that the array
elements are passed as <item>1.234</item> instead of
<double>1.234</double>.

What's wrong with it?

Ciao!!!

-- Marco --

Change History

09/28/05 23:25:14 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1638]) support Array element name (other than 'item') in document/literal service. closes #150.

05/30/06 04:30:54 changed by kkkkoaaa

Keep a good job up! http://quick-adult-links.com

06/01/07 17:46:06 changed by nahi

  • type set to enhancement.