Package org.uddi.api_v3

Examples of org.uddi.api_v3.GetOperationalInfo


    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
             security = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             authInfo = security.getAuthToken(getAuthToken).getAuthInfo();
             publisher = transport.getJUDDIApiService();
           } else {
             Assert.fail();
           }
View Full Code Here


    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
             security = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             authInfo = security.getAuthToken(getAuthToken).getAuthInfo();
             publisher = transport.getJUDDIApiService();
           } else {
             Assert.fail();
           }
View Full Code Here

           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
            
             UDDISecurityPortType securityService = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             AuthToken authToken = securityService.getAuthToken(getAuthToken);
             System.out.println(authToken.getAuthInfo());
             Assert.assertNotNull(authToken);
           } else {
             Assert.fail();
View Full Code Here

      BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3");
      sb.getBindingTemplate().add(btIn);
      publication.saveBinding(sb);
     
      // Now get the entity and check the values
      GetBindingDetail gb = new GetBindingDetail();
      gb.getBindingKey().add(bindingKey);
      BindingDetail bd = inquiry.getBindingDetail(gb);
      List<BindingTemplate> btOutList = bd.getBindingTemplate();
      BindingTemplate btOut = btOutList.get(0);

      assertEquals(btIn.getServiceKey(), btOut.getServiceKey());
View Full Code Here

  {
    HttpServletRequest request = this.getThreadLocalRequest();
    HttpSession session = request.getSession();
    String lang = request.getLocale().getLanguage();
   
    GetBusinessDetail getBusinessDetail = new GetBusinessDetail();
    getBusinessDetail.setAuthInfo(authToken);
    getBusinessDetail.getBusinessKey().add(businessKey);
    InquiryResponse response = new InquiryResponse();
    logger.debug("BusinessDetail " + getBusinessDetail + " sending businessDetail request..");
    try {
       Transport transport = WebHelper.getTransport(session.getServletContext());
           UDDIInquiryPortType inquiryService = transport.getUDDIInquiryService();
View Full Code Here

  }
 
  public void getNonExitingBusiness() {
    String nonExistingKey = "nonexistingKey";
    try {
      GetBusinessDetail body = new GetBusinessDetail();
      body.getBusinessKey().add(nonExistingKey);
      BusinessDetail  result = inquiry.getBusinessDetail(body);
      Assert.fail("No business should be found");
      System.out.println(result.getBusinessEntity().size());
    } catch (Exception e) {
      try {
View Full Code Here

        }
        if (method.equalsIgnoreCase("getServiceDetail")) {
            JAXB.marshal(new GetServiceDetail(), sw);
        }
        if (method.equalsIgnoreCase("getOperationalInfo")) {
            JAXB.marshal(new GetOperationalInfo(), sw);
        }
        if (method.equalsIgnoreCase("getTModelDetail")) {
            JAXB.marshal(new GetTModelDetail(), sw);
        }
        return PrettyPrintXML(sw.toString());
View Full Code Here

* @since 3.2
*/
public class Common {

    public static String GetOwner(String key, String token, UDDIInquiryPortType inquiry) {
        GetOperationalInfo goi = new GetOperationalInfo();
        goi.setAuthInfo(token);
        goi.getEntityKey().add(key);
        OperationalInfos operationalInfo = null;
        try {
            operationalInfo = inquiry.getOperationalInfo(goi);
            if (operationalInfo!=null && operationalInfo.getOperationalInfo()!=null &&
                    !operationalInfo.getOperationalInfo().isEmpty())
View Full Code Here

                te.setTransferToken(tt);

                custodyTransferPortTypeSam.transferEntities(te);

                //confirm the transfer
                GetOperationalInfo go = new GetOperationalInfo();
                go.setAuthInfo(authInfoSam);
                go.getEntityKey().add(keySamBiz);
                go.getEntityKey().add(keyJoeBiz);
                OperationalInfos operationalInfo = inquirySam.getOperationalInfo(go);

                for (int i = 0; i < operationalInfo.getOperationalInfo().size(); i++) {
                        if (operationalInfo.getOperationalInfo().get(i).getEntityKey().equalsIgnoreCase(keyJoeBiz)) {
                                Assert.assertEquals(operationalInfo.getOperationalInfo().get(i).getAuthorizedName(), (TckPublisher.getSamPublisherId()));
View Full Code Here

      org.uddi.api_v3.BusinessService bsIn = (org.uddi.api_v3.BusinessService)EntityCreator.buildFromDoc(serviceXML, "org.uddi.api_v3");
      ss.getBusinessService().add(bsIn);
      publication.saveService(ss);
     
      // Now get the entity and check the values
      GetServiceDetail gs = new GetServiceDetail();
      gs.getServiceKey().add(serviceKey);
      ServiceDetail sd = inquiry.getServiceDetail(gs);
      List<BusinessService> bsOutList = sd.getBusinessService();
      BusinessService bsOut = bsOutList.get(0);

      assertEquals(bsIn.getServiceKey(), bsOut.getServiceKey());
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.GetOperationalInfo

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.