axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vaibhav Arya" <vaibhav.a...@otssolutions.com>
Subject [axis2 web service vector parameter]
Date Tue, 28 Apr 2009 09:03:21 GMT
Hi All,

 

I am passing a Vector as parameter to the web service,

 

        QName opSetWeather = new QName("http://service.pojo.sample",
"setVector");

 

        Vector vect = new Vector();

 

                        vect.add("value for Vector 1");

                        vect.add("value for Vector 2");

                        vect.add("value for Vector 3");

                        vect.add("value for Vector 4");

 

        Object[] opSetWeatherArgs = new Object[] { vect };

 

        serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs);

 

I am getting following error,

 

Is there any fixation for this problem?

 

org.apache.axiom.om.OMException: java.lang.RuntimeException:
org.apache.axis2.AxisFault: can not find read method for : size
 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
        org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:327)
 
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:706)
 
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:675)
 
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:124)
 
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:274)
 
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:203)
 
org.apache.axiom.soap.impl.llom.SOAPBodyImpl.addChild(SOAPBodyImpl.java:231)
 
org.apache.axis2.client.ServiceClient.fillSOAPEnvelope(ServiceClient.java:71
3)
 
org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:471)
 
org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:454)
 
org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.j
ava:158)
        org.apache.jsp.getVector_jsp._jspService(getVector_jsp.java:94)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 

 

Thanks in advance

Vaibhav Arya



===================================================================================================
Private, Confidential and Privileged. This e-mail and any files and attachments transmitted
with it are confidential and/or privileged. They are intended solely for the use of the intended
recipient. The content of this e-mail and any file or attachment transmitted with it may have
been changed or altered without the consent of the author. If you are not the intended recipient,
please note that any review, dissemination, disclosure, alteration, printing, circulation
or Transmission of this e-mail and/or any file or attachment transmitted with it, is prohibited
and may be unlawful. If you have received this e-mail or any file or attachment transmitted
with it in error please notify OTS Solutions at info@otssolutions.com
===================================================================================================

Mime
View raw message