Example #1
0
        private UddiLookupResponse GetLookupResponse(LookupParameters lookupParameters, UddiService uddiService, UddiBinding uddiBinding)
        {
            Identifier         identifier        = lookupParameters.Identifier;
            EndpointAddress    endpointAddress   = uddiBinding.GetEndpointAddress();
            DateTime           activationDateUtc = uddiService.GetActivationDateUtc();
            DateTime           expirationDateUtc = uddiService.GetExpirationDateUtc();
            CertificateSubject subject           = uddiService.GetCertificateSubject();
            Uri         termsOfUse            = uddiService.GetTermsOfUseUrl();
            MailAddress mail                  = uddiService.GetContactMail();
            Version     version               = uddiService.GetVersion();
            UddiId      newerVersion          = uddiService.GetNewerVersion();
            UddiId      serviceType           = uddiBinding.GetPortType().UddiId;
            List <ProcessRoleDefinition> list = uddiBinding.GetProcessRoleDefinitions();

            UddiLookupResponse response = new UddiLookupResponse(
                identifier,
                endpointAddress,
                activationDateUtc,
                expirationDateUtc,
                subject,
                termsOfUse,
                mail,
                version,
                newerVersion,
                serviceType,
                list
                );

            return(response);
        }
Example #2
0
        private bool HasAcceptedTransportProtocol(UddiLookupResponse uddiLookupResponse, LookupParameters lookupParameters)
        {
            EndpointAddress address = uddiLookupResponse.EndpointAddress;
            bool            result  = lookupParameters.AcceptedTransportProtocols.Contains(address.EndpointAddressTypeCode);

            return(result);
        }