268 references to EnvelopeVersion
System.ServiceModel (263)
System\ServiceModel\BasicHttpBinding.cs (3)
105internal override EnvelopeVersion GetEnvelopeVersion() 107return EnvelopeVersion.Soap11; 214if (!encoding.CheckEncodingVersion(EnvelopeVersion.Soap11))
System\ServiceModel\BasicHttpsBinding.cs (2)
72internal override EnvelopeVersion GetEnvelopeVersion() 74return EnvelopeVersion.Soap11;
System\ServiceModel\Channels\FaultConverter.cs (1)
106if (version.Envelope == EnvelopeVersion.Soap11)
System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
303if (message.Version.Envelope == EnvelopeVersion.Soap11) 307else if (message.Version.Envelope == EnvelopeVersion.Soap12 && !String.IsNullOrEmpty(ContentType)) 2648if (message.Version.Envelope == EnvelopeVersion.Soap11) 2652else if (message.Version.Envelope == EnvelopeVersion.Soap12) 2690else if (message.Version.Envelope != EnvelopeVersion.None)
System\ServiceModel\Channels\Message.cs (33)
378static internal bool IsFaultStartElement(XmlDictionaryReader reader, EnvelopeVersion version) 411if (this.Version.Envelope != EnvelopeVersion.None) 417if (this.Version.Envelope != EnvelopeVersion.None) 425if (this.Version.Envelope != EnvelopeVersion.None) 479EnvelopeVersion envelopeVersion = Version.Envelope; 480if (envelopeVersion != EnvelopeVersion.None) 490EnvelopeVersion envelopeVersion = Version.Envelope; 491if (envelopeVersion != EnvelopeVersion.None) 528if (this.Version.Envelope != EnvelopeVersion.None) 545if (this.Version.Envelope != EnvelopeVersion.None) 587static void ReadFromBodyContentsToEnd(XmlDictionaryReader reader, EnvelopeVersion envelopeVersion) 589if (envelopeVersion != EnvelopeVersion.None) 597internal static bool ReadStartBody(XmlDictionaryReader reader, EnvelopeVersion envelopeVersion, out bool isFault, out bool isEmpty) 721if (this.Version.Envelope != EnvelopeVersion.None) 743if (this.Version.Envelope != EnvelopeVersion.None) 876EnvelopeVersion version; 878public FaultBodyWriter(MessageFault fault, EnvelopeVersion version) 927public XmlReaderBodyWriter(XmlDictionaryReader reader, EnvelopeVersion version) 1231protected static bool HasHeaderElement(XmlDictionaryReader reader, EnvelopeVersion envelopeVersion) 1260protected static EnvelopeVersion ReadStartEnvelope(XmlDictionaryReader reader) 1262EnvelopeVersion envelopeVersion; 1265envelopeVersion = EnvelopeVersion.Soap12; 1267envelopeVersion = EnvelopeVersion.Soap11; 1276protected static void VerifyStartBody(XmlDictionaryReader reader, EnvelopeVersion version) 1302if (desiredVersion.Envelope == EnvelopeVersion.None) 1312EnvelopeVersion envelopeVersion = ReadStartEnvelope(reader); 1450EnvelopeVersion envelopeVersion = Version.Envelope; 1457EnvelopeVersion envelopeVersion = Version.Envelope; 1508if (desiredVersion.Envelope == EnvelopeVersion.None) 1515EnvelopeVersion envelopeVersion = ReadStartEnvelope(reader); 1635if (this.Version.Envelope != EnvelopeVersion.None) 1738EnvelopeVersion envelopeVersion = Version.Envelope; 1749EnvelopeVersion envelopeVersion = Version.Envelope;
System\ServiceModel\Channels\MessageEncodingBindingElement.cs (1)
102internal virtual bool CheckEncodingVersion(EnvelopeVersion version)
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (5)
121EnvelopeVersion soapVersion = SoapHelper.GetSoapVersion(context.WsdlBinding); 133if (soapVersion == EnvelopeVersion.None) 199EnvelopeVersion defaultEnvelopeVersion = encodingBindingElement.MessageVersion.Envelope; 201if (defaultEnvelopeVersion == EnvelopeVersion.None 207encodingBindingElement.MessageVersion = MessageVersion.CreateVersion(EnvelopeVersion.Soap12, addressingVersion);
System\ServiceModel\Channels\MessageFault.cs (33)
73EnvelopeVersion envelopeVersion = message.Version.Envelope; 75if (envelopeVersion == EnvelopeVersion.Soap12) 79else if (envelopeVersion == EnvelopeVersion.Soap11) 83else if (envelopeVersion == EnvelopeVersion.None) 144if ((String.Compare(code.Namespace, EnvelopeVersion.Soap11.Namespace, StringComparison.Ordinal) != 0) && 145(String.Compare(code.Namespace, EnvelopeVersion.Soap12.Namespace, StringComparison.Ordinal) != 0)) 193protected virtual void OnWriteDetail(XmlDictionaryWriter writer, EnvelopeVersion version) 200protected virtual void OnWriteStartDetail(XmlDictionaryWriter writer, EnvelopeVersion version) 202if (version == EnvelopeVersion.Soap12) 204else if (version == EnvelopeVersion.Soap11) 216OnWriteDetail(writer, EnvelopeVersion.Soap12); // Wrap in soap 1.2 by default 259public void WriteTo(XmlWriter writer, EnvelopeVersion version) 264public void WriteTo(XmlDictionaryWriter writer, EnvelopeVersion version) 276if (version == EnvelopeVersion.Soap12) 280else if (version == EnvelopeVersion.Soap11) 284else if (version == EnvelopeVersion.None) 296WriteTo12Driver(writer, EnvelopeVersion.None); 299void WriteTo12Driver(XmlDictionaryWriter writer, EnvelopeVersion version) 327void WriteFaultCode12Driver(XmlDictionaryWriter writer, FaultCode faultCode, EnvelopeVersion version) 358WriteTo12Driver(writer, EnvelopeVersion.Soap12); 397OnWriteDetail(writer, EnvelopeVersion.Soap11); 490EnvelopeVersion receivedVersion; 492ReceivedFault(FaultCode code, FaultReason reason, string actor, string node, XmlBuffer detail, EnvelopeVersion version) 556protected override void OnWriteDetail(XmlDictionaryWriter writer, EnvelopeVersion version) 584protected override void OnWriteStartDetail(XmlDictionaryWriter writer, EnvelopeVersion version) 619bool ShouldWriteDetailAttribute(EnvelopeVersion targetVersion, string prefix, string localName, string attributeValue) 625bool shouldSkip = this.receivedVersion == EnvelopeVersion.Soap12 // original incoming version 626&& targetVersion == EnvelopeVersion.Soap11 // version to serialize to 636return CreateFault12Driver(reader, maxBufferSize, EnvelopeVersion.None); 639static ReceivedFault CreateFault12Driver(XmlDictionaryReader reader, int maxBufferSize, EnvelopeVersion version) 678static FaultCode ReadFaultCode12Driver(XmlDictionaryReader reader, EnvelopeVersion version) 698return CreateFault12Driver(reader, maxBufferSize, EnvelopeVersion.Soap12); 737return new ReceivedFault(code, reason, actor, actor, detail, EnvelopeVersion.Soap11);
System\ServiceModel\Channels\MessageHeader.cs (8)
140if (this.Relay && messageVersion.Envelope == EnvelopeVersion.Soap12) 218if (version.Envelope == EnvelopeVersion.Soap12) 325if (actor == EnvelopeVersion.Soap12.UltimateDestinationActor) 330else if (actor == EnvelopeVersion.Soap12.NextDestinationActorValue) 335else if (actor == EnvelopeVersion.Soap11.NextDestinationActorValue) 381if (messageVersion.Envelope == EnvelopeVersion.Soap12) 385else if (messageVersion.Envelope == EnvelopeVersion.Soap11) 389else if (messageVersion.Envelope == EnvelopeVersion.None)
System\ServiceModel\Channels\MessageHeaders.cs (4)
68EnvelopeVersion envelopeVersion = version.Envelope; 943if (this.version.Envelope == EnvelopeVersion.None) 1174if (version.Envelope != EnvelopeVersion.None) 1182EnvelopeVersion envelopeVersion = version.Envelope;
System\ServiceModel\Channels\MessageVersion.cs (16)
15EnvelopeVersion envelope; 27none = new MessageVersion(EnvelopeVersion.None, AddressingVersion.None); 28soap11 = new MessageVersion(EnvelopeVersion.Soap11, AddressingVersion.None); 29soap12 = new MessageVersion(EnvelopeVersion.Soap12, AddressingVersion.None); 30soap11Addressing10 = new MessageVersion(EnvelopeVersion.Soap11, AddressingVersion.WSAddressing10); 31soap12Addressing10 = new MessageVersion(EnvelopeVersion.Soap12, AddressingVersion.WSAddressing10); 32soap11Addressing200408 = new MessageVersion(EnvelopeVersion.Soap11, AddressingVersion.WSAddressingAugust2004); 33soap12Addressing200408 = new MessageVersion(EnvelopeVersion.Soap12, AddressingVersion.WSAddressingAugust2004); 36MessageVersion(EnvelopeVersion envelopeVersion, AddressingVersion addressingVersion) 42public static MessageVersion CreateVersion(EnvelopeVersion envelopeVersion) 47public static MessageVersion CreateVersion(EnvelopeVersion envelopeVersion, AddressingVersion addressingVersion) 59if (envelopeVersion == EnvelopeVersion.Soap12) 79else if (envelopeVersion == EnvelopeVersion.Soap11) 99else if (envelopeVersion == EnvelopeVersion.None) 128public EnvelopeVersion Envelope 141if (this.Envelope == EnvelopeVersion.Soap11)
System\ServiceModel\Channels\MtomMessageEncoder.cs (3)
123if (version.Envelope == EnvelopeVersion.Soap12) 127else if (version.Envelope == EnvelopeVersion.Soap11) 220return (version.Envelope == EnvelopeVersion.Soap12) ? TextMessageEncoderFactory.Soap12MediaType : TextMessageEncoderFactory.Soap11MediaType;
System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (1)
233internal override bool CheckEncodingVersion(EnvelopeVersion version)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (7)
3185if (messageVersion.Envelope == EnvelopeVersion.Soap11) 3189else if (messageVersion.Envelope == EnvelopeVersion.Soap12) 3218if (version.Envelope == EnvelopeVersion.Soap11) 3222else if (version.Envelope == EnvelopeVersion.Soap12) 3239if (version.Envelope == EnvelopeVersion.Soap12) 3284if (version.Envelope == EnvelopeVersion.Soap11) 3288else if (version.Envelope == EnvelopeVersion.Soap12)
System\ServiceModel\Channels\ServiceChannel.cs (1)
1089if (version.Envelope == EnvelopeVersion.Soap11)
System\ServiceModel\Channels\TextMessageEncoder.cs (6)
70if (version.Envelope == EnvelopeVersion.Soap12) 74else if (version.Envelope == EnvelopeVersion.Soap11) 78else if (version.Envelope == EnvelopeVersion.None) 295if (version.Envelope == EnvelopeVersion.Soap12) 299else if (version.Envelope == EnvelopeVersion.Soap11) 303else if (version.Envelope == EnvelopeVersion.None)
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (1)
204internal override bool CheckEncodingVersion(EnvelopeVersion version)
System\ServiceModel\Channels\TransportDefaults.cs (2)
149internal static EnvelopeVersion EnvelopeVersion { get { return EnvelopeVersion.Soap12; } }
System\ServiceModel\Channels\WsrmFault.cs (3)
129if (messageVersion.Envelope == EnvelopeVersion.Soap11) 133else if (messageVersion.Envelope == EnvelopeVersion.Soap12) 378if (version.Envelope == EnvelopeVersion.Soap11)
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
303bool soap11 = messageVersion.Envelope == EnvelopeVersion.Soap11;
System\ServiceModel\Description\MessageContractExporter.cs (1)
650EnvelopeVersion soapVersion;
System\ServiceModel\Description\SoapHelper.cs (67)
44if (GetSoapVersionState(wsdlBinding, exporter) == EnvelopeVersion.None) 48EnvelopeVersion version = GetSoapVersion(wsdlBinding); 59if (GetSoapVersionState(endpointContext.WsdlBinding, exporter) == EnvelopeVersion.None) 68EnvelopeVersion version = GetSoapVersion(endpointContext.WsdlBinding); 75if (GetSoapVersionState(endpointContext.WsdlBinding, exporter) == EnvelopeVersion.None) 80EnvelopeVersion version = GetSoapVersion(endpointContext.WsdlBinding); 91if (GetSoapVersionState(endpointContext.WsdlBinding, exporter) == EnvelopeVersion.None) 95EnvelopeVersion version = GetSoapVersion(endpointContext.WsdlBinding); 106EnvelopeVersion version = GetSoapVersion(endpointContext.WsdlBinding); 114EnvelopeVersion version = GetSoapVersion(endpointContext.WsdlBinding); 121internal static void SetSoapVersion(WsdlEndpointConversionContext endpointContext, WsdlExporter exporter, EnvelopeVersion version) 149internal static EnvelopeVersion GetSoapVersion(WsdlNS.Binding wsdlBinding) 154return o is WsdlNS.Soap12Binding ? EnvelopeVersion.Soap12 : EnvelopeVersion.Soap11; 156return EnvelopeVersion.Soap12; 159private static void SetSoapVersionState(WsdlNS.Binding wsdlBinding, WsdlExporter exporter, EnvelopeVersion version) 165versions = new Dictionary<WsdlNS.Binding, EnvelopeVersion>(); 169((Dictionary<WsdlNS.Binding, EnvelopeVersion>)versions)[wsdlBinding] = version; 172private static EnvelopeVersion GetSoapVersionState(WsdlNS.Binding wsdlBinding, WsdlExporter exporter) 178if (versions != null && ((Dictionary<WsdlNS.Binding, EnvelopeVersion>)versions).ContainsKey(wsdlBinding)) 180return ((Dictionary<WsdlNS.Binding, EnvelopeVersion>)versions)[wsdlBinding]; 190internal static void ConvertExtensions(WsdlNS.ServiceDescriptionFormatExtensionCollection extensions, EnvelopeVersion version, ConvertExtension conversionMethod) 218internal delegate bool ConvertExtension(ref object src, EnvelopeVersion version); 220internal static bool ConvertSoapBinding(ref object src, EnvelopeVersion version) 232if (version == EnvelopeVersion.None) 238WsdlNS.SoapBinding dest = version == EnvelopeVersion.Soap12 ? new WsdlNS.Soap12Binding() : new WsdlNS.SoapBinding(); 250internal static bool ConvertSoapAddressBinding(ref object src, EnvelopeVersion version) 262if (version == EnvelopeVersion.None) 268WsdlNS.SoapAddressBinding dest = version == EnvelopeVersion.Soap12 ? new WsdlNS.Soap12AddressBinding() : new WsdlNS.SoapAddressBinding(); 281internal static bool ConvertSoapOperationBinding(ref object src, EnvelopeVersion version) 293if (version == EnvelopeVersion.None) 299WsdlNS.SoapOperationBinding dest = version == EnvelopeVersion.Soap12 ? new WsdlNS.Soap12OperationBinding() : new WsdlNS.SoapOperationBinding(); 311internal static bool ConvertSoapMessageBinding(ref object src, EnvelopeVersion version) 347static WsdlNS.SoapBodyBinding ConvertSoapBodyBinding(WsdlNS.SoapBodyBinding src, EnvelopeVersion version) 349if (version == EnvelopeVersion.None) 352EnvelopeVersion srcVersion = GetBindingVersion<WsdlNS.Soap12BodyBinding>(src); 356WsdlNS.SoapBodyBinding dest = version == EnvelopeVersion.Soap12 ? new WsdlNS.Soap12BodyBinding() : new WsdlNS.SoapBodyBinding(); 371static XmlElement ConvertSoapFaultBinding(XmlElement src, EnvelopeVersion version) 376if (version == EnvelopeVersion.Soap12) 381else if (version == EnvelopeVersion.Soap11) 402static WsdlNS.SoapFaultBinding ConvertSoapFaultBinding(WsdlNS.SoapFaultBinding src, EnvelopeVersion version) 404if (version == EnvelopeVersion.None) 410WsdlNS.SoapFaultBinding dest = version == EnvelopeVersion.Soap12 ? new WsdlNS.Soap12FaultBinding() : new WsdlNS.SoapFaultBinding(); 422static WsdlNS.SoapHeaderBinding ConvertSoapHeaderBinding(WsdlNS.SoapHeaderBinding src, EnvelopeVersion version) 424if (version == EnvelopeVersion.None) 430WsdlNS.SoapHeaderBinding dest = version == EnvelopeVersion.Soap12 ? new WsdlNS.Soap12HeaderBinding() : new WsdlNS.SoapHeaderBinding(); 445internal static EnvelopeVersion GetBindingVersion<T12>(object src) 447return src is T12 ? EnvelopeVersion.Soap12 : EnvelopeVersion.Soap11; 452static WsdlNS.SoapAddressBinding CreateSoapAddressBinding(EnvelopeVersion version, WsdlNS.Port wsdlPort) 456if (version == EnvelopeVersion.Soap12) 460else if (version == EnvelopeVersion.Soap11) 471static WsdlNS.SoapBinding CreateSoapBinding(EnvelopeVersion version, WsdlNS.Binding wsdlBinding) 475if (version == EnvelopeVersion.Soap12) 479else if (version == EnvelopeVersion.Soap11) 489static WsdlNS.SoapOperationBinding CreateSoapOperationBinding(EnvelopeVersion version, WsdlNS.OperationBinding wsdlOperationBinding) 493if (version == EnvelopeVersion.Soap12) 497else if (version == EnvelopeVersion.Soap11) 507static WsdlNS.SoapBodyBinding CreateSoapBodyBinding(EnvelopeVersion version, WsdlNS.MessageBinding wsdlMessageBinding) 511if (version == EnvelopeVersion.Soap12) 515else if (version == EnvelopeVersion.Soap11) 525static WsdlNS.SoapHeaderBinding CreateSoapHeaderBinding(EnvelopeVersion version, WsdlNS.MessageBinding wsdlMessageBinding) 529if (version == EnvelopeVersion.Soap12) 533else if (version == EnvelopeVersion.Soap11) 543static XmlElement CreateSoapFaultBinding(EnvelopeVersion version) 547if (version == EnvelopeVersion.Soap12) 552else if (version == EnvelopeVersion.Soap11)
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (1)
120if (message.State != MessageState.Closed && message.Headers.MessageVersion.Envelope != EnvelopeVersion.None)
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (3)
185if (this.message.Version.Envelope != EnvelopeVersion.None) 194if (this.message.Version.Envelope != EnvelopeVersion.None) 202else if (this.message.Version.Envelope != EnvelopeVersion.None) //No headers for EnvelopeVersion.None
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
262if (isEncoded && version.Envelope == EnvelopeVersion.Soap11) 403internal static string GetEncoding(EnvelopeVersion version) 405if (version == EnvelopeVersion.Soap11) 409else if (version == EnvelopeVersion.Soap12)
System\ServiceModel\Dispatcher\XPathMessageContext.cs (6)
54internal static string Actor11A = EnvelopeVersion.Soap11.Actor; 55internal static string Actor12A = EnvelopeVersion.Soap12.Actor; 1093static string S11Next = EnvelopeVersion.Soap11.NextDestinationActorValue; 1094static string S12Next = EnvelopeVersion.Soap12.NextDestinationActorValue; 1167static string S11UltRec = EnvelopeVersion.Soap11.UltimateDestinationActor; 1168static string S12UltRec = EnvelopeVersion.Soap12.UltimateDestinationActor;
System\ServiceModel\EnvelopeVersion.cs (6)
23static EnvelopeVersion soap11 = 35static EnvelopeVersion soap12 = 47static EnvelopeVersion none = new EnvelopeVersion( 112public static EnvelopeVersion None 117public static EnvelopeVersion Soap11 122public static EnvelopeVersion Soap12
System\ServiceModel\FaultCode.cs (6)
19EnvelopeVersion version; 51this.version = EnvelopeVersion.Soap12; 53this.version = EnvelopeVersion.Soap11; 55this.version = EnvelopeVersion.None; 73return name == (this.version ?? EnvelopeVersion.Soap12).SenderFaultName; 84return name == (this.version ?? EnvelopeVersion.Soap12).ReceiverFaultName;
System\ServiceModel\HttpBindingBase.cs (2)
173public EnvelopeVersion EnvelopeVersion 328internal abstract EnvelopeVersion GetEnvelopeVersion();
System\ServiceModel\MustUnderstandSoapException.cs (4)
23EnvelopeVersion envelopeVersion; 25public MustUnderstandSoapException(Collection<MessageHeaderInfo> notUnderstoodHeaders, EnvelopeVersion envelopeVersion) 32public EnvelopeVersion EnvelopeVersion { get { return this.envelopeVersion; } } 43if (this.envelopeVersion == EnvelopeVersion.Soap12)
System\ServiceModel\NetHttpBinding.cs (2)
278internal override EnvelopeVersion GetEnvelopeVersion() 280return EnvelopeVersion.Soap12;
System\ServiceModel\NetHttpsBinding.cs (2)
180internal override EnvelopeVersion GetEnvelopeVersion() 182return EnvelopeVersion.Soap12;
System\ServiceModel\NetMsmqBinding.cs (2)
77public EnvelopeVersion EnvelopeVersion 79get { return EnvelopeVersion.Soap12; }
System\ServiceModel\NetNamedPipeBinding.cs (2)
138public EnvelopeVersion EnvelopeVersion 140get { return EnvelopeVersion.Soap12; }
System\ServiceModel\NetPeerTcpBinding.cs (2)
104public EnvelopeVersion EnvelopeVersion 106get { return EnvelopeVersion.Soap12; }
System\ServiceModel\NetTcpBinding.cs (2)
168public EnvelopeVersion EnvelopeVersion 170get { return EnvelopeVersion.Soap12; }
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (5)
732EnvelopeVersion currentVersion = this.Version.Envelope; 733EnvelopeVersion otherVersion = currentVersion == EnvelopeVersion.Soap11 ? EnvelopeVersion.Soap12 : EnvelopeVersion.Soap11;
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
649protected virtual bool HandleException(Exception ex, string trustNamespace, string action, EnvelopeVersion requestEnvelopeVersion) 686FaultException faultException = OperationContext.Current.Host.Credentials.ExceptionMapper.FromException(ex, (requestEnvelopeVersion == EnvelopeVersion.Soap11) ? soap11Namespace : soap12Namespace, trustNamespace);
System\ServiceModel\WSAddressing10ProblemHeaderQNameFault.cs (3)
98protected override void OnWriteDetail(XmlDictionaryWriter writer, EnvelopeVersion version) 100if (version == EnvelopeVersion.Soap12) // Soap11 wants the detail in the header 117if (headers.MessageVersion.Envelope == EnvelopeVersion.Soap11)
System\ServiceModel\WSDualHttpBinding.cs (3)
167public EnvelopeVersion EnvelopeVersion 169get { return EnvelopeVersion.Soap12; } 438if (!encoding.CheckEncodingVersion(EnvelopeVersion.Soap12))
System\ServiceModel\WSHttpBindingBase.cs (2)
150public EnvelopeVersion EnvelopeVersion 152get { return EnvelopeVersion.Soap12; }
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedHttpContext.cs (2)
237EnvelopeVersion envelopeVersion = hostedHttpContext.Listener.MessageEncoderFactory.Encoder.MessageVersion.Envelope; 240if (envelopeVersion == EnvelopeVersion.Soap11)
System.ServiceModel.Web (3)
System\ServiceModel\Channels\WebMessageEncodingBindingElement.cs (1)
235internal override bool CheckEncodingVersion(EnvelopeVersion version)
System\ServiceModel\WebHttpBinding.cs (2)
61public EnvelopeVersion EnvelopeVersion 63get { return EnvelopeVersion.None; }