[jboss-user] [JBossWS] - Problem calling a web service that requires empty input

zhijun do-not-reply at jboss.com
Thu Mar 15 10:59:45 EDT 2007


I'm trying to call a Web service using a method that doesn't take an input parameter. The WSDL for the input parameter is this:
<element name="getAllValues">
  |     <complexType>
  |         <sequence /> 
  |     </complexType>
  | </element>

I'm using call.invoke(Object[]) method to call it. I'm always getting the following ArrayIndexOutOfBoundsException no matter how I manipulate the Object[] for this call. It feels like JBossWS is having problem with this situation/WSDL description.

2007-03-15 10:48:18,870 DEBUG [org.jboss.ws.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl at 1267610
  | 2007-03-15 10:48:18,916 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call invocation failed with unkown Exception
  | java.lang.ArrayIndexOutOfBoundsException: 0
  |         at org.jboss.ws.binding.EndpointInvocation.initInputParams(EndpointInvocation.java:300)
  |         at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:642)
  |         at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
  |         at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:90)
  |         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
  |         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  |         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | ... ...
  | 

Is this a know issue or am I doing something wrong?

Thanks!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028422#4028422

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028422



More information about the jboss-user mailing list