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:operation name="OpGetList">
<soap:operation 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:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
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.
Roedy Green - 31 Oct 2007 21:41 GMT
>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.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Yogi - 31 Oct 2007 22:34 GMT
On Oct 31, 4:41 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> >I am invoking the webservices hosted by AR system mid-tier.
> >It is developed using Axis according to BMC.
[quoted text clipped - 6 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
Oops. I have not included the problem.
The exception occured is ArrayStoreException when I invoke the Axis
webservice.
Roedy Green - 03 Nov 2007 18:20 GMT
>Hi,
>
[quoted text clipped - 5 lines]
>
>*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.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com