0 Replies Latest reply on Mar 15, 2007 10:59 AM by zhijun

    Problem calling a web service that requires empty input

    zhijun

      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@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!