Hi Listers..

I have Remedy AR Server 7.1 on AIX 5.3 and Oracle 10g R2. We also have
Mid-tier 7.1 and Java 1.5 installed on the box. I am using a custom
Java application to consume a web-service from Remedy.

I have generated the WSDL and used it to generate the Java code [using
WSDL2JAVA tool].

I am able to invoke OpGet but get a ArrayStoreException when I try to
invoke the OpGetList method

Any pointers towards this would be greatly appreciated.

Regards,
Sumeet Das

Below is the code snippet
String strQualification = "'536870929'=\"" +store+"\" AND '536871020'=
\""+project+"\"";
 try{
  String endpoint =  "http://Serverdev1:12000/arsys/services/ARService?
server=Serverdev1&webService=SPD_Issue_Management";
  Service  service = new Service();
  Call     call    = (Call) service.createCall();
  call.setTargetEndpointAddress( new java.net.URL(endpoint) );
  call.setOperationStyle("RPC");
  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",
"GetListOutputMap");
  QName qnStudentArr = new QName( "urn:SPD_Issue_Management",
"getListValues");
//   register mapping of Student object (this is where the generated
java class by wsdl2java comes in handy
  call.registerTypeMapping(IssueDetails.class,
    qnStudent ,
   new
org.apache.axis.encoding.ser.BeanSerializerFactory(IssueDetails.class,
qnStudent ),
   new
org.apache.axis.encoding.ser.BeanDeserializerFactory(IssueDetails.class,
qnStudent ));
//   register mapping of array of Student
  call.registerTypeMapping(IssueDetails[].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);*/
  call.setReturnType(new QName("urn:SPD_Issue_Management",
    "getListValues"), ArrayList.class);
  IssueDetails [] _resp = (IssueDetails [])call.invoke(new Object[]
{strQualification,"1","50"});
 } catch (ServiceException servExpn){
  System.out.println("ServiceException occured : " +servExpn);
 } catch (RemoteException remExcpn){
  System.out.println("RemoteException occured : " +remExcpn);
 } catch (Exception remExcpn){
  System.out.println("GeneralException occured : " +remExcpn);
 }

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to