ArrayStoreException when a thick java client invokes Webservice

Y

Yogi

Hi,

I am invoking the webservices hosted by AR system mid-tier.
It is developed using Axis according to BMC.
WSDL2Java tool is used to genereate Java Stubs, holders and holder
types.
The webservice returns array of custom objects.

*Following is the piece of code which invokes the webservice.*

Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new
javax.xml.namespace.QName("urn:SPD_Issue_Management",
"OpGetList"));
call.addParameter("Qualification",
org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);
call.addParameter("startRecord",
org.apache.axis.Constants.XSD_STRING ,
javax.xml.rpc.ParameterMode.IN);
call.addParameter("maxLimit",
org.apache.axis.Constants.XSD_STRING ,
javax.xml.rpc.ParameterMode.IN);
QName qnStudent = new QName("urn:SPD_Issue_Management",
"getListValues");
QName qnStudentArr = new QName("urn:SPD_Issue_Management",
"GetListOutputMap");
call.registerTypeMapping(GetListOutputMapGetListValues.class,
qnStudent ,
new org.apache.axis.encoding.ser.BeanSerializerFactory (
GetListOutputMapGetListValues.class, qnStudent ),
new org.apache.axis.encoding.ser.BeanDeserializerFactory(
GetListOutputMapGetListValues.class,
qnStudent ));
call.registerTypeMapping(GetListOutputMapGetListValues[].class,
qnStudentArr ,
new org.apache.axis.encoding.ser.ArraySerializerFactory(),
new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
//set the Qname of array of Student as return type
call.setReturnType (qnStudentArr);
GetListOutputMapGetListValues [] _resp =
(GetListOutputMapGetListValues
[])call.invoke(new Object[]{strQualification,"1","50"});

*Following is the WSDL definiton for the webservice:*
**

<wsdl:eek:peration name="OpGetList">
<soap:eek:peration soapAction="urn:SPD_Issue_Management/OpGetList"
style="document"/>
<wsdl:input>
<soap:header message="s0:ARAuthenticate" part="parameters"
use="literal">
</soap:header>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:eek:utput>
<soap:body use="literal"/>
</wsdl:eek:utput>
</wsdl:eek:peration>

I am using the following libraries:
axis.jar
axis-ant.jar
activation.jar
commons-discovery-0.2.jar
commons-logging-1.0.4.jar
jaxrpc.jar
log4j-1.2.8.jar
mailapi.jar
saaj.jar
wsdl4j-1.5.1.jar
xercesImpl.jar
xml-apis.jar

Regards

Yogaraj.
 
R

Roedy Green

I am invoking the webservices hosted by AR system mid-tier.
It is developed using Axis according to BMC.
WSDL2Java tool is used to genereate Java Stubs, holders and holder
types.
The webservice returns array of custom objects.

You left out a description of your problem or a question.
 
Y

Yogi

You left out a description of your problem or a question.

Oops. I have not included the problem.
The exception occured is ArrayStoreException when I invoke the Axis
webservice.
 
R

Roedy Green

Hi,

I am invoking the webservices hosted by AR system mid-tier.
It is developed using Axis according to BMC.
WSDL2Java tool is used to genereate Java Stubs, holders and holder
types.
The webservice returns array of custom objects.

*Following is the piece of code which invokes the webservice.*

You make people's job much easier if:

1. you post some runnable code so they can see the exception.
see http://mindprod.com/jgloss/sscce.html

2. you point to the line where the exception occurred.

All I can do is send to you http://mindprod.com/jgloss/array.html
to help you understand what an ArrayStoreException is if you don't
already know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top