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:*
**
<wsdlperation name="OpGetList">
<soapperation 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>
<wsdlutput>
<soap:body use="literal"/>
</wsdlutput>
</wsdlperation>
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.
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:*
**
<wsdlperation name="OpGetList">
<soapperation 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>
<wsdlutput>
<soap:body use="literal"/>
</wsdlutput>
</wsdlperation>
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.