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'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 "main"=20
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0<br>  =
; at java.util.ArrayList.RangeCheck(ArrayList.java:547)<br> &nbs=
p; at java.util.ArrayList.get(ArrayList.java:322)<br> at =
org.apache.wsif.util.WSIFUtils.unWrapPart
(WSIFUtils.java:1395)<br> at org.apache.wsif.providers.so=
ap.apacheaxis.WSIFOperation_ApacheAxis.unwrapSOAPParts(WSIFOperation_Apache=
Axis.java:846)<br> at org.apache.wsif.providers.soap.apac=
heaxis.WSIFOperation_ApacheAxis.prepare
(WSIFOperation_ApacheAxis.java:1894)<br> at org.apache.ws=
if.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponse=
Operation(WSIFOperation_ApacheAxis.java:1391)<br> at org.=
apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeReque=
stResponseOperation
(WSIFOperation_ApacheAxis.java:1037)<br> at clientes.Clie=
nteDinamico.main(ClienteDinamico.java:125)<br></div><br>I thought that it w=
as 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 rai=
ses at:
<br>invokeRequestResponseOperation --> WSIFOperation_ApacheAxis.prepare(=
call)<br>Where while it'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=
9;s wrong here? The part wsdl structure which raises the error is:<br><br><=
div style=3D"margin-left: 40px;"><message name=3D"AddInputMessage&q=
uot;>
<br><part name=3D"parameters" element=3D"tns:add"/&g=
t;<br></message><br><br><xsd:element name=3D"add" type=
=3D"xsd:int"/><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's suppose I shouldn'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--