Oracle MAF:使用数组调用WebService数据控制方法

时间:2018-06-01 11:14:22

标签: java php

我正在尝试调用一个方法,该方法在使用NuSOAP库在php中创建的Web Service数据控件中返回一个数组列表,并获得以下异常:

ERROR [oracle.adfmf.framework.exception.AdfException] - java.lang.InstantiationException: oracle.adfmf.dc.ws.soap.SoapGenericType.


public void findAll() {
         List pnames = new ArrayList();
         List pvals = new ArrayList();
         List ptypes = new ArrayList();
try {

                      GenericType result =
                       (GenericType)AdfmfJavaUtilities.invokeDataControlMethod(
                       "Myservice", null, "getHistoriqueNotification", pnames,
                       pvals, ptypes);
                          result =  result.getParent();
                            notifications.clear();

                       for (int i = 0; i < result.getAttributeCount(); i++) {
                       GenericType gt = (GenericType)result.getAttribute(i);
                       Notification notification =
                       (Notification)GenericTypeBeanSerializationHelper
                       .fromGenericType(Notification.class, gt);
                           Notification not = new Notification();
                           not.setCode((Integer)gt.getAttribute("code"));
                           not.setPhoto((String)gt.getAttribute("photo"));
                           not.setTitre((String)gt.getAttribute("titre"));
                           not.setDetail((String)gt.getAttribute("detail"));
                           not.setDateHeure((Date)gt.getAttribute("dateHeure"));
                       notifications.add(not);
                       }

      } catch (Exception e) {
        throw new AdfException(e.getLocalizedMessage(), AdfException.ERROR);
      }


    }

0 个答案:

没有答案