Package org.uddi.api_v2

Examples of org.uddi.api_v2.DispositionReport


                        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


                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

                findRelatedBusinesses.setAuthInfo(node.getSecurityUrl());
                try {
                        RelatedBusinessesList rbl = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).findRelatedBusinesses(findRelatedBusinesses);
                        return rbl;
                } 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

                getDetail.setAuthInfo(getAuthToken(node.getSecurityUrl()));
                try {
                        ServiceDetail tModelDetail = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).getServiceDetail(getDetail);
                        return tModelDetail;
                } catch (DispositionReportFaultMessage dr) {
                        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
                        checkForErrorInDispositionReport(report, null, null);
                } catch (SOAPFaultException sfe) {
                        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(sfe);
                        checkForErrorInDispositionReport(report, null, null);
                } catch (UndeclaredThrowableException ute) {
                        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(ute);
                        checkForErrorInDispositionReport(report, null, null);
                }
                return null;
        }
View Full Code Here

                                // this child to the soap response body
                                document.appendChild(element.getFirstChild());
                        }
                        response = document;
                } catch (Exception e) {
                        DispositionReport dr = DispositionReportFaultMessage.getDispositionReport(e);
                        if (dr != null) {
                                JAXBMarshaller.marshallToElement(dr, "org.uddi.api_v3", element);
                                document.appendChild(element.getFirstChild());
                                response = document;
                        } else {
View Full Code Here

        public DispositionReport validateValues(
                @WebParam(name = "validate_values", targetNamespace = "urn:uddi-org:vs_v3", partName = "body") ValidateValues body)
                throws DispositionReportFaultMessage, RemoteException {
                messagesReceived++;
                if (VALID) {
                        DispositionReport dispositionReport = new DispositionReport();
                        dispositionReport.getResult().add(new Result());
                        return dispositionReport;
                }
                DispositionReport dispositionReport = new DispositionReport();
                Result r = new Result();
                r.setKeyType(KeyType.T_MODEL_KEY);
                r.setErrno(20200);
                r.setErrInfo(new ErrInfo());
                r.getErrInfo().setErrCode("E_invalidValue");
                r.getErrInfo().setValue("E_invalidValue");
               
                dispositionReport.getResult().add(r);
                throw new DispositionReportFaultMessage("error", dispositionReport);
        }
View Full Code Here

                        }
                }
                if (!success) {
                        throw new DispositionReportFaultMessage(err, null);
                }
                DispositionReport dr = new DispositionReport();
                Result res = new Result();
                dr.getResult().add(res);

                return dr;
        }
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

      return null;
    return ResourceConfig.getGlobalMessage(errCode);
  }   

  public static final DispositionReport buildDispositionReport(int errNo) {
    DispositionReport dr = new DispositionReport();
    Result res = new Result();
    res.setErrno(errNo);
   
    ErrInfo ei = new ErrInfo();
    ei.setErrCode(lookupErrCode(errNo));
    ei.setValue(lookupErrText(errNo));
   
    res.setErrInfo(ei);
   
    dr.getResult().add(res);
       
    return dr;
  }
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

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.