Wrong WSDL?

"Miguel Julián" <[email protected]> Fri, 27 Jul 2007 13:46:15 +0200
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
------=_Part_2325_9557104.1185536775296
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi everybody,
I'm just trying to create a dynamic client to invoke  ws deployed by Globus
Toolkit. I was having an strange error while trying to invoke it:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0,
Size: 0
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at org.apache.wsif.util.WSIFUtils.unWrapPart(WSIFUtils.java:1395)
    at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.unwrapSO=
APParts
(WSIFOperation_ApacheAxis.java:846)
    at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.prepare
(WSIFOperation_ApacheAxis.java:1894)
    at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRe=
questResponseOperation
(WSIFOperation_ApacheAxis.java:1391)
    at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeR=
equestResponseOperation
(WSIFOperation_ApacheAxis.java:1037)
    at clientes.ClienteDinamico.main(ClienteDinamico.java:125)

I thought that it was a problem because I didn't populate correctly the
input message, but now I'm debugging with Eclipse and I'm realised that the
error raises at:
invokeRequestResponseOperation --> WSIFOperation_ApacheAxis.prepare(call)
Where while it's unwrapping input part: WSIFUtils.unWrapPart, my elementTyp=
e
is not NULL(restriction which is checked out at the code) but it has no
children (this restriction is not checked) (listChildren.size()=3D0). So
Eclipse raises here the exception.
What's wrong here? The part wsdl structure which raises the error is:

<message name=3D"AddInputMessage">
<part name=3D"parameters" element=3D"tns:add"/>
</message>

<xsd:element name=3D"add" type=3D"xsd:int"/>

So at this point, with my very brief experience with ws, I would like to as=
k
for a solution or clue to overrun that.
Should I change my wsdl definition? (It's suppose I shouldn't do that)
Something is wrong with my WSIF installation or version?

Thank you all for your time and future answers (xD)

--=20
By Miguel Juli=E1n Ramos (Miky)
http://www.mikysblog.com
http://www.youtube.com/watch?v=3Dd6gmp8pf8k4

------=_Part_2325_9557104.1185536775296
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi everybody,<br>I&#39;m just trying to create a dynamic client to invoke&n=
bsp; ws deployed by Globus Toolkit. I was having an strange error while try=
ing to invoke it:<br><br><div style=3D"margin-left: 40px;">Exception in thr=
ead &quot;main&quot;=20
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0<br>&nbsp;&nbsp;&nbsp=
; at java.util.ArrayList.RangeCheck(ArrayList.java:547)<br>&nbsp;&nbsp;&nbs=
p; at java.util.ArrayList.get(ArrayList.java:322)<br>&nbsp;&nbsp;&nbsp; at =
org.apache.wsif.util.WSIFUtils.unWrapPart
(WSIFUtils.java:1395)<br>&nbsp;&nbsp;&nbsp; at org.apache.wsif.providers.so=
ap.apacheaxis.WSIFOperation_ApacheAxis.unwrapSOAPParts(WSIFOperation_Apache=
Axis.java:846)<br>&nbsp;&nbsp;&nbsp; at org.apache.wsif.providers.soap.apac=
heaxis.WSIFOperation_ApacheAxis.prepare
(WSIFOperation_ApacheAxis.java:1894)<br>&nbsp;&nbsp;&nbsp; at org.apache.ws=
if.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponse=
Operation(WSIFOperation_ApacheAxis.java:1391)<br>&nbsp;&nbsp;&nbsp; at org.=
apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeReque=
stResponseOperation
(WSIFOperation_ApacheAxis.java:1037)<br>&nbsp;&nbsp;&nbsp; at clientes.Clie=
nteDinamico.main(ClienteDinamico.java:125)<br></div><br>I thought that it w=
as a problem because I didn&#39;t populate correctly the input message, but=
 now I&#39;m debugging with Eclipse and I&#39;m realised that the error rai=
ses at:
<br>invokeRequestResponseOperation --&gt; WSIFOperation_ApacheAxis.prepare(=
call)<br>Where while it&#39;s unwrapping input part: WSIFUtils.unWrapPart, =
my elementType is not NULL(restriction which is checked out at the code) bu=
t it has no children (this restriction is not checked) (
listChildren.size()=3D0). So Eclipse raises here the exception. <br>What&#3=
9;s wrong here? The part wsdl structure which raises the error is:<br><br><=
div style=3D"margin-left: 40px;">&lt;message name=3D&quot;AddInputMessage&q=
uot;&gt;
<br>&lt;part name=3D&quot;parameters&quot; element=3D&quot;tns:add&quot;/&g=
t;<br>&lt;/message&gt;<br><br>&lt;xsd:element name=3D&quot;add&quot; type=
=3D&quot;xsd:int&quot;/&gt;<br><br></div>So at this point, with my very bri=
ef experience with ws, I would like to ask for a solution or clue to overru=
n that.
<br>Should I change my wsdl definition? (It&#39;s suppose I shouldn&#39;t d=
o that) Something is wrong with my WSIF installation or version? <br><br>Th=
ank you all for your time and future answers (xD)<br><br>-- <br>By Miguel J=
uli=E1n Ramos (Miky)
<br><a href=3D"http://www.mikysblog.com">http://www.mikysblog.com</a><br><a=
 href=3D"http://www.youtube.com/watch?v=3Dd6gmp8pf8k4">http://www.youtube.c=
om/watch?v=3Dd6gmp8pf8k4</a>

------=_Part_2325_9557104.1185536775296--