users@jax-rpc.java.net

DII client: IndexOutOfBoundsException when calling method with 0 argument

From: Abhishek Agrawal <abhishek.agrawal_at_appiancorp.com>
Date: Mon, 11 Oct 2004 11:44:46 -0400

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 !