users@jax-rpc.java.net

Re: DII client: IndexOutOfBoundsException when calling method with 0 argument

From: kathy walsh <Kathleen.Walsh_at_Sun.COM>
Date: Mon, 11 Oct 2004 11:59:05 -0400

Hello,
Please send your dii client program or a dii program
that reproduces this problem and I will take a look-
Kathy

Abhishek Agrawal wrote:

> I am trying to call "GetLondonGoldAndSilverFix" method on the
> "LondonGoldAndSilverFix"
> (http://www.webservicex.net/LondonGoldFix.asmx?WSDL)
>
> This perticular method does not take any parameter and hence in my DII
> client I am not calling method
> call.addParameter()
>
> But somehow DII client does not like it and seems like its
> alwaysexpecting at least 1 parameter.
> I get the following exception when I try to call invoke.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:507)
> at java.util.ArrayList.get(ArrayList.java:324)
> at
> com.sun.xml.rpc.client.dii.BasicCall.createLiteralRequestSerializer(BasicCall.java:652)
> at
> com.sun.xml.rpc.client.dii.BasicCall.getRequestSerializer(BasicCall.java:621)
> at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:473)
> at
> com.appiancorp.process.runtime.activities.WebServiceActivity.doCall(WebServiceActivity.java:308)
> at
> com.appiancorp.process.runtime.activities.WebServiceActivity.main(WebServiceActivity.java:119)
>
>
> The DII client works fine for functions that take one or more
> parameters (Obviously, I have not been able to run it for complex
> types, but thatýs a different story..)
>
> Has anyone else noticed this problem?
>
> Thanks !
>