hi everyone

i face this exception when i try to access the service using soap.my method
basicsally takes 2 parameters and returns a map containing an object.

public static Map retriveCateogaryId(DispatchContext dctx,Map context)
        {
          
   
        System.out.println("am in the service");
        GenericDelegator delegator=dctx.getDelegator();
        productStoreId = (String) context.get("productStoreId");
         partyId=(String) context.get("partyId");
         System.out.println(productStoreId);
        storeCatalogs=catalog_Obj.getStoreCatalogs(delegator,productStoreId);
        partyCatalog=catalog_Obj.getPartyCatalogs(delegator,partyId);
        cateogaryIds=catalog_Obj.getCatalogIdsAvailable(partyCatalog,
storeCatalogs);
        int length=cateogaryIds.size();
        System.out.println(length);
        for(int j=0;j<length;j++)
        {
        System.out.println("hai my size is"+cateogaryIds.get(j));
        string=string+cateogaryIds.get(j);
        }
        //result = UtilMisc.toMap("helloPersonIdOut", string);
        Object helloPersonId=(Object)cateogaryIds;
        result = UtilMisc.toMap("helloPersonIdOut", helloPersonId);
        
        return  result;


}  
and my client call is as follows


 Call call = (Call) new Service().createCall(); 
          call.setTargetEndpointAddress(new URL(endpoint)); 
               call.setOperationName(new QName("retriveCateogaryId",
"retriveCateogaryId")); 
                call.addParameter("productStoreId",
                          org.apache.axis.Constants.XSD_STRING,
                          javax.xml.rpc.ParameterMode.IN);
        call.addParameter("partyId",  org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);

        call.setReturnType(org.apache.axis.Constants.XSD_STRING);
        

               Object responseWS = call.invoke(new
Object[]{productStoreIds,partyIds});
        
        System.out.println("hai am here");
        System.out.println( "Receiving response: " +  
responseWS.toString()); 


-- 
View this message in context: 
http://www.nabble.com/Call.java%3A2469%3AERROR--Exception%3A-tp17512343p17512343.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to