Examples of DispositionReport


Examples of org.apache.juddi.datatype.response.DispositionReport

    String fActor = null;
    nodeList = XMLUtils.getChildElementsByTagName(element,"faultactor");
    if (nodeList.size() > 0)
      fActor = XMLUtils.getText((Element)nodeList.elementAt(0));

    DispositionReport dispRpt = null;
    nodeList = XMLUtils.getChildElementsByTagName(element,"detail");
    if (nodeList.size() > 0)
    {
      nodeList = XMLUtils.getChildElementsByTagName((Element)nodeList.elementAt(0),DispositionReportHandler.TAG_NAME);
      if (nodeList.size() > 0)
View Full Code Here

Examples of org.apache.juddi.datatype.response.DispositionReport

    // check for a DispositionReport in the exception and if one exists,
    // grab it, marshal it into xml and stuff it into a SOAP fault
    // detail element.

    DispositionReport dispRpt = regEx.getDispositionReport();
    if (dispRpt != null)
    {
      Element fDetailElement = document.createElement("detail");
      IHandler handler = maker.lookup(DispositionReportHandler.TAG_NAME);
      handler.marshal(dispRpt,fDetailElement);
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.DispositionReport

      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

Examples of org.apache.ws.scout.uddi.DispositionReport

      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

Examples of org.uddi.api_v2.DispositionReport

                        throw MapUDDIv3Tov2.MapException(ex, getNodeID());
                }
        }

        private DispositionReport getSuccessMessage() {
                DispositionReport r = new DispositionReport();
                r.setGeneric("2.0");
                r.setTruncated(Truncated.FALSE);
                Result x = new Result();
                r.setOperator(getNodeID());
                r.getResult().add(x);
                return r;
        }
View Full Code Here

Examples of org.uddi.api_v3.DispositionReport

      BusinessDetail  result = inquiry.getBusinessDetail(body);
      Assert.fail("No business should be found");
      System.out.println(result.getBusinessEntity().size());
    } catch (Exception e) {
      try {
        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

Examples of org.uddi.api_v3.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.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

Examples of org.uddi.api_v3.DispositionReport

      ServiceDetail sd = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).getServiceDetail(getServiceDetail);
      List<BusinessService> businessServiceList = sd.getBusinessService();
      if (businessServiceList.size() == 0) throw new ConfigurationException("Could not find Service with key=" + serviceKey);
      return businessServiceList.get(0);
    } catch (DispositionReportFaultMessage dr) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, serviceKey);
    } catch (SOAPFaultException sfe) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(sfe);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, serviceKey);
    } catch (UndeclaredThrowableException ute) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, serviceKey);
    }
    return null;
  }
View Full Code Here

Examples of org.uddi.api_v3.DispositionReport

      BindingDetail bd = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).getBindingDetail(getBindingDetail);
      List<BindingTemplate> bindingTemplateList = bd.getBindingTemplate();
      if (bindingTemplateList.size() == 0) throw new ConfigurationException("Could not find ServiceBinding with key=" + bindingKey);
      return bindingTemplateList.get(0);
    } catch (DispositionReportFaultMessage dr) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, bindingKey);
    } catch (SOAPFaultException sfe) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(sfe);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, bindingKey);
    } catch (UndeclaredThrowableException ute) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, bindingKey);
    }
    return null;
  }
View Full Code Here

Examples of org.uddi.api_v3.DispositionReport

    getBusinessDetail.setAuthInfo(node.getSecurityUrl());
    try {
      BusinessDetail bd = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).getBusinessDetail(getBusinessDetail);
      return bd.getBusinessEntity().get(0);
    } catch (DispositionReportFaultMessage dr) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, businessKey);
    } catch (SOAPFaultException sfe) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(sfe);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, businessKey);
    } catch (UndeclaredThrowableException ute) {
      DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
      checkForErrorInDispositionReport(report, DispositionReport.E_INVALID_KEY_PASSED, businessKey);
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.