Examples of UDDIPublicationPortType


Examples of org.uddi.v3_service.UDDIPublicationPortType

    @Override
    public UDDIPublicationPortType getUDDIPublishService(final String endpointURL)
            throws TransportException
    {
        final UDDIPublicationPortType currentPublishService = publishService.get() ;
        if (currentPublishService != null)
        {
            return currentPublishService ;
        }
        final String publishURL = getUDDINode(managerName, nodeName).getPublishUrl() ;
        final Service service = Service.create(WSDL_PUBLISH_SERVICE, QNAME_PUBLISH_SERVICE) ;
        final UDDIPublicationPortType newPublishService = (UDDIPublicationPortType) service.getPort(UDDIPublicationPortType.class) ;
        initialiseEndpoint(newPublishService, publishURL) ;
        if (publishService.compareAndSet(null, newPublishService))
        {
            return newPublishService ;
        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

    @Override
    public UDDIPublicationPortType getUDDIPublishService(final String endpointURL)
            throws TransportException
    {
        final UDDIPublicationPortType currentPublishService = publishService.get() ;
        if (currentPublishService != null)
        {
            return currentPublishService ;
        }
        final String publishURL = getUDDINode(managerName, nodeName).getPublishUrl() ;
        final UDDIPublicationPortType newPublishService = lookupService(jndiEnv, publishURL) ;
        if (publishService.compareAndSet(null, newPublishService))
        {
            return newPublishService ;
        }
        else
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

    @Override
    public UDDIPublicationPortType getUDDIPublishService(final String endpointURL)
            throws TransportException
    {
        final UDDIPublicationPortType current = uddiPublicationPortTypeRef.get() ;
        if (current != null)
        {
            return current ;
        }
        final String publishUrl ;
        if (endpointURL == null)
        {
            try
            {
                final UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName) ;
                publishUrl = manager.getClientConfig().getUDDINode(nodeName).getPublishUrl() ;
            }
            catch (final ConfigurationException ce)
            {
                throw new TransportException("Could not discover publishUrl for node " + nodeName, ce) ;
            }
        }
        else
        {
            publishUrl = endpointURL ;
        }
        final Object delegatePortType = createDelegate(publishUrl) ;
        final InvocationHandler handler = new TaskHandler(delegatePortType) ;
        final UDDIPublicationPortType uddiPublicationPortType = (UDDIPublicationPortType) Proxy.newProxyInstance(classLoader,
            new Class[] {UDDIPublicationPortType.class}, handler) ;
        if (uddiPublicationPortTypeRef.compareAndSet(null, uddiPublicationPortType))
        {
            return uddiPublicationPortType ;
        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                        authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.getSamPublisherId(), TckPublisher.getSamPassword());
                        authInfoMary = TckSecurity.getAuthToken(security, TckPublisher.getMaryPublisherId(), TckPublisher.getMaryPassword());
                        //Assert.assertNotNull(authInfoJoe);

                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
                        if (!TckPublisher.isUDDIAuthMode()) {
                                TckSecurity.setCredentials((BindingProvider) publication, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                                TckSecurity.setCredentials((BindingProvider) inquiry, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoRiftSaw = TckSecurity.getAuthToken(security, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                        //Assert.assertNotNull(authInfoRiftSaw);

                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
                        if (!TckPublisher.isUDDIAuthMode()) {
                                TckSecurity.setCredentials((BindingProvider) publication, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                                TckSecurity.setCredentials((BindingProvider) inquiry, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoRiftSaw = TckSecurity.getAuthToken(security, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                        //Assert.assertNotNull(authInfoRiftSaw);

                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
                        if (!TckPublisher.isUDDIAuthMode()) {
                                TckSecurity.setCredentials((BindingProvider) publication, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                                TckSecurity.setCredentials((BindingProvider) inquiry, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());


                        UDDISubscriptionPortType subscription = transport.getUDDISubscriptionService();
                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();

                        tckTModel = new TckTModel(publication, inquiry);
                        tckBusiness = new TckBusiness(publication, inquiry);
                        tckBusinessService = new TckBusinessService(publication, inquiry);
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

                        Transport transport = manager.getTransport();
                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                        //Assert.assertNotNull(authInfoJoe);
                       
                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        inquiry = transport.getUDDIInquiryService();
                        if (!TckPublisher.isUDDIAuthMode()){
                                TckSecurity.setCredentials((BindingProvider) publication, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                                TckSecurity.setCredentials((BindingProvider) inquiry, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

        public static BindingTemplate registerBinding(UDDIClient client, String cfg_node_name, BindingTemplate bt, SignatureBehavior behavior) throws ServiceAlreadyStartedException, SecurityException, ConfigurationException, TransportException, DispositionReportFaultMessage, RemoteException, UnexpectedException, RegistrationAbortedException, UnableToSignException {

                UDDIClerk clerk = client.getClerk(cfg_node_name);
                Transport tp = client.getTransport(cfg_node_name);
                UDDIInquiryPortType uddiInquiryService = tp.getUDDIInquiryService();
                UDDIPublicationPortType uddiPublishService = tp.getUDDIPublishService();

                String token = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());

                switch (behavior) {
                        case AbortIfSigned:
                                if (CheckExistingBindingForSignature(bt.getBindingKey(), uddiInquiryService, token, behavior)) {
                                        throw new RegistrationAbortedException("Aborting, Either the item exists and is signed");
                                }
                                if (CheckServiceAndParentForSignature(bt.getServiceKey(), uddiInquiryService, token)) {
                                        throw new RegistrationAbortedException("Aborting, Either the service or busness is signed");
                                }
                                break;
                        case DoNothing:
                                break;
                        case SignAlways:
                                try {
                                        DigSigUtil ds = new DigSigUtil(client.getClientConfig().getDigitalSignatureConfiguration());
                                        bt = ds.signUddiEntity(bt);
                                } catch (Exception ex) {
                                        log.error("Unable to sign", ex);
                                        throw new UnableToSignException(ex);
                                }

                                break;
                        case SignOnlyIfParentIsntSigned:
                                if (!CheckServiceAndParentForSignature(bt.getServiceKey(), uddiInquiryService, token)) {
                                        try {
                                                DigSigUtil ds = new DigSigUtil(client.getClientConfig().getDigitalSignatureConfiguration());
                                                bt = ds.signUddiEntity(bt);
                                        } catch (Exception ex) {
                                                log.error("Unable to sign", ex);
                                                throw new UnableToSignException(ex);
                                        }
                                }
                                break;
                }
                SaveBinding sb = new SaveBinding();
                sb.setAuthInfo(token);
                sb.getBindingTemplate().add(bt);

                BindingDetail saveBinding = uddiPublishService.saveBinding(sb);
                if (saveBinding.getBindingTemplate().isEmpty() || saveBinding.getBindingTemplate().size() > 1) {
                        throw new UnexpectedResponseException("The number of binding templates returned was unexpected, count=" + saveBinding.getBindingTemplate().size());
                }
                return saveBinding.getBindingTemplate().get(0);
        }
View Full Code Here

Examples of org.uddi.v3_service.UDDIPublicationPortType

                       
                        try {
                                UDDIClerk clerk = client.getClerk(cfg_node_name);
                                Transport tp = client.getTransport(cfg_node_name);
                                String token = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
                                UDDIPublicationPortType uddiPublishService = tp.getUDDIPublishService();
                                DeleteBinding db = new DeleteBinding();
                                db.setAuthInfo(token);
                                db.getBindingKey().add(bindingKey);
                                uddiPublishService.deleteBinding(db);
                                log.info("Subscription callback binding unregistered.");
                        } catch (Exception ex) {
                                log.error("Unable to unregister binding " + bindingKey, ex);
                        }
                }
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.