Package org.uddi.api_v2

Examples of org.uddi.api_v2.DispositionReport


     *
     * @param e the Exception at hang
     * @return DispositionReport if one can be found, or null if it is not.
     */
    public static DispositionReport getDispositionReport(Exception e) {
      DispositionReport report = null;
      if (e instanceof DispositionReportFaultMessage) {
        DispositionReportFaultMessage faultMsg = (DispositionReportFaultMessage) e;
        report = faultMsg.getFaultInfo();
      } else if (e instanceof SOAPFaultException) {
        SOAPFaultException soapFault = (SOAPFaultException) e;
        Detail detail = soapFault.getFault().getDetail();
        if (detail != null && detail.getFirstChild()!=null) {
          try {
            report =  new DispositionReport(detail.getFirstChild());
          } catch (JAXBException je) {
            log.error("Could not unmarshall detail to a DispositionReport");
          }
        }
      } else if (e instanceof UndeclaredThrowableException) {
View Full Code Here


                } catch (Exception e) {
                        e.printStackTrace();
                }

                DispositionReport dr = new DispositionReport();
                Result res = new Result();
                dr.getResult().add(res);
                return dr;
        }
View Full Code Here

                                callbacks.get(i).HandleCallback(body.getSubscriptionResultsList());
                        } catch (Exception ex) {
                                log.warn("Your implementation on ISubscriptionCallback is faulty and threw an error, contact the developer", ex);
                        }
                }
                DispositionReport r = new DispositionReport();
                r.getResult().add(new Result());
                return r;
        }
View Full Code Here

     
    } catch (Exception e) {
      logger.error(e.getMessage(),e);
    }
     
    DispositionReport dr = new DispositionReport();
    Result res = new Result();
    dr.getResult().add(res);
    return dr;
  }
View Full Code Here

      Assert.fail("No business should be found");
      System.out.println(result.getBusinessEntity().size());
    } catch (Exception e) {
      try {
        System.out.println("(Expected) Error message = " + e.getMessage());
        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(e);
        assertNotNull(report);
        assertTrue(report.countainsErrorCode(DispositionReport.E_INVALID_KEY_PASSED));
      } catch (Exception e1) {
        Assert.fail("We only expect DispositionReportFaultMessage, not " + e1.getClass());
        logger.error(e.getMessage(), e1);
      }
    }
View Full Code Here

      throw new FatalErrorException(new ErrorMessage("errors.subscriptionnotifier.client"));
   
   
    new ValidateSubscriptionListener().validateNotification(body);
     
    DispositionReport dr = new DispositionReport();
    Result res = new Result();
    dr.getResult().add(res);
    return dr;
  }
View Full Code Here

    } catch (Exception e) {
      log.error(e.getMessage(),e);
      throw new DispositionReportFaultMessage(e.getMessage(), null);
    }

    DispositionReport dr = new DispositionReport();
    Result res = new Result();
    dr.getResult().add(res);

    return dr;
  }
View Full Code Here

                Key key = (Key) iter.next();
                keyarr[currLoc] = key.getId();
                currLoc++;
            }
            // Delete operation
            DispositionReport bd = (DispositionReport) executeOperation(keyarr, op);
            List<Result> resultList = bd.getResult();
            keyResultArr = new Result[resultList.size()];
            resultList.toArray(keyResultArr);
           
            log.debug("After deleting Business. Obtained vector size:" + keyResultArr != null ? keyResultArr.length : 0);
            for (int i = 0; keyResultArr != null && i < keyResultArr.length; i++) {
View Full Code Here

        String fActor = null;
        nodeList = response.getElementsByTagName("faultactor");
        if (nodeList.getLength() > 0)
          fActor = nodeList.item(0).getNodeValue();
 
        DispositionReport dispRpt = null;
 
        nodeList = response.getElementsByTagName("detail");
        if (nodeList.getLength() > 0) {
          nodeList = ((Element) nodeList.item(0))
              .getElementsByTagName("dispositionReport");
View Full Code Here

    if (bindingKeyArray != null) {
      request.getBindingKey().addAll(Arrays.asList(bindingKeyArray));
    }

        DispositionReport dr = new DispositionReport();
        JAXBElement<?> o = execute(this.objectFactory.createDeleteBinding(request), this.getPublishURI());
        if (o!=null) {
          dr = (DispositionReport) o.getValue();
        }
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.DispositionReport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.