Ejemplo n.º 1
0
        private static System.ServiceModel.Channels.MessageVersion ConvertMessageVersion(MessageVersion version)
        {
            System.ServiceModel.EnvelopeVersion envelopeVersion = null;
            if (EnvelopeVersion.None.Equals(version.Envelope))
            {
                envelopeVersion = System.ServiceModel.EnvelopeVersion.None;
            }
            else if (EnvelopeVersion.Soap11.Equals(version.Envelope))
            {
                envelopeVersion = System.ServiceModel.EnvelopeVersion.Soap11;
            }
            else if (EnvelopeVersion.Soap12.Equals(version.Envelope))
            {
                envelopeVersion = System.ServiceModel.EnvelopeVersion.Soap12;
            }

            System.ServiceModel.Channels.AddressingVersion addressingVersion = null;
            if (AddressingVersion.None.Equals(version.Addressing))
            {
                addressingVersion = System.ServiceModel.Channels.AddressingVersion.None;
            }
            else if (AddressingVersion.WSAddressing10.Equals(version.Addressing))
            {
                addressingVersion = System.ServiceModel.Channels.AddressingVersion.WSAddressing10;
            }
            else if (AddressingVersion.WSAddressingAugust2004.Equals(version.Addressing))
            {
                addressingVersion = System.ServiceModel.Channels.AddressingVersion.WSAddressingAugust2004;
            }

            return(System.ServiceModel.Channels.MessageVersion.CreateVersion(envelopeVersion, addressingVersion));
        }
 public MetadataReference(System.ServiceModel.EndpointAddress address, System.ServiceModel.Channels.AddressingVersion addressVersion)
 {
 }
 public void WriteTo(System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlDictionaryWriter writer, System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString ns)
 {
 }
 public void WriteTo(System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlWriter writer)
 {
     Contract.Requires(addressingVersion != null);
 }
 public void WriteContentsTo(System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlDictionaryWriter writer)
 {
 }
        public static System.ServiceModel.EndpointAddress ReadFrom(System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlReader reader)
        {
            Contract.Ensures(Contract.Result <System.ServiceModel.EndpointAddress>() != null);

            return(default(System.ServiceModel.EndpointAddress));
        }