140 references to Envelope
System.ServiceModel (137)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
1621VerifyStartBody(reader, messageVersion.Envelope); 1659VerifyStartBody(reader, messageVersion.Envelope);
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (3)
91if (value.Envelope != BinaryEncoderDefaults.EnvelopeVersion) 93string errorMsg = SR.GetString(SR.UnsupportedEnvelopeVersion, this.GetType().FullName, BinaryEncoderDefaults.EnvelopeVersion, value.Envelope); 272SoapHelper.SetSoapVersion(context, exporter, MessageVersion.Soap12WSAddressing10.Envelope);
System\ServiceModel\Channels\FaultConverter.cs (2)
95if (string.Compare(fault.Code.Namespace, version.Envelope.Namespace, StringComparison.Ordinal) == 0 106if (version.Envelope == EnvelopeVersion.Soap11)
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
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) 2694message.Version.Envelope.ToString())));
System\ServiceModel\Channels\Message.cs (29)
181return CreateMessage(version, action, new XmlReaderBodyWriter(body, version.Envelope)); 261return new BodyWriterMessage(version, action, new FaultBodyWriter(fault, version.Envelope)); 411if (this.Version.Envelope != EnvelopeVersion.None) 417if (this.Version.Envelope != EnvelopeVersion.None) 425if (this.Version.Envelope != EnvelopeVersion.None) 437writer.WriteStartElement(messageDictionary.Prefix.Value, messageDictionary.Body, Version.Envelope.DictionaryNamespace); 479EnvelopeVersion envelopeVersion = Version.Envelope; 490EnvelopeVersion envelopeVersion = Version.Envelope; 528if (this.Version.Envelope != EnvelopeVersion.None) 545if (this.Version.Envelope != EnvelopeVersion.None) 584Message.ReadFromBodyContentsToEnd(reader, this.Version.Envelope); 721if (this.Version.Envelope != EnvelopeVersion.None) 743if (this.Version.Envelope != EnvelopeVersion.None) 1257return Message.ReadStartBody(reader, this.Version.Envelope, out this.isFault, out this.isEmpty); 1302if (desiredVersion.Envelope == EnvelopeVersion.None) 1313if (desiredVersion.Envelope != envelopeVersion) 1315Exception versionMismatchException = new ArgumentException(SR.GetString(SR.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1444writer.WriteStartElement(bodyPrefix, MessageStrings.Body, Version.Envelope.Namespace); 1450EnvelopeVersion envelopeVersion = Version.Envelope; 1457EnvelopeVersion envelopeVersion = Version.Envelope; 1508if (desiredVersion.Envelope == EnvelopeVersion.None) 1516if (desiredVersion.Envelope != envelopeVersion) 1518Exception versionMismatchException = new ArgumentException(SR.GetString(SR.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1625if (HasHeaderElement(reader, headers.MessageVersion.Envelope)) 1635if (this.Version.Envelope != EnvelopeVersion.None) 1638if (HasHeaderElement(reader, headers.MessageVersion.Envelope)) 1738EnvelopeVersion envelopeVersion = Version.Envelope; 1749EnvelopeVersion envelopeVersion = Version.Envelope; 1767writer.WriteStartElement(reader.Prefix, MessageStrings.Body, Version.Envelope.Namespace);
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (1)
199EnvelopeVersion defaultEnvelopeVersion = encodingBindingElement.MessageVersion.Envelope;
System\ServiceModel\Channels\MessageFault.cs (1)
73EnvelopeVersion envelopeVersion = message.Version.Envelope;
System\ServiceModel\Channels\MessageHeader.cs (13)
137writer.WriteAttributeString(messageVersion.Envelope.DictionaryActor, messageVersion.Envelope.DictionaryNamespace, actor); 139writer.WriteAttributeString(XD.MessageDictionary.MustUnderstand, messageVersion.Envelope.DictionaryNamespace, "1"); 140if (this.Relay && messageVersion.Envelope == EnvelopeVersion.Soap12) 201string mustUnderstandString = reader.GetAttribute(XD.MessageDictionary.MustUnderstand, version.Envelope.DictionaryNamespace); 214actor = reader.GetAttribute(version.Envelope.DictionaryActor, version.Envelope.DictionaryNamespace); 218if (version.Envelope == EnvelopeVersion.Soap12) 220string relayString = reader.GetAttribute(XD.Message12Dictionary.Relay, version.Envelope.DictionaryNamespace); 381if (messageVersion.Envelope == EnvelopeVersion.Soap12) 385else if (messageVersion.Envelope == EnvelopeVersion.Soap11) 389else if (messageVersion.Envelope == EnvelopeVersion.None) 395throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.EnvelopeVersionUnknown, messageVersion.Envelope.ToString())));
System\ServiceModel\Channels\MessageHeaders.cs (10)
68EnvelopeVersion envelopeVersion = version.Envelope; 603return FindNonAddressingHeader(name, ns, version.Envelope.UltimateDestinationActorValues); 887if (version.Envelope.IsUltimateDestinationActor(headerInfo.Actor)) 943if (this.version.Envelope == EnvelopeVersion.None) 948new InvalidOperationException(SR.GetString(SR.HeadersCannotBeAddedToEnvelopeVersion, this.version.Envelope))); 1114return HaveMandatoryHeadersBeenUnderstood(version.Envelope.MustUnderstandActorValues); 1174if (version.Envelope != EnvelopeVersion.None) 1182EnvelopeVersion envelopeVersion = version.Envelope; 1220header.GetType().FullName, this.version.Envelope.ToString()), "header")); 1319if (version.Envelope.IsUltimateDestinationActor(actor))
System\ServiceModel\Channels\MessageVersion.cs (2)
141if (this.Envelope == EnvelopeVersion.Soap11) 201if (envelope != messageVersion.Envelope)
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 (2)
230SoapHelper.SetSoapVersion(context, exporter, this.messageVersion.Envelope); 235return messageVersion.Envelope == 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 (8)
70if (version.Envelope == EnvelopeVersion.Soap12) 74else if (version.Envelope == EnvelopeVersion.Soap11) 78else if (version.Envelope == EnvelopeVersion.None) 85SR.GetString(SR.EnvelopeVersionNotSupported, version.Envelope))); 295if (version.Envelope == EnvelopeVersion.Soap12) 299else if (version.Envelope == EnvelopeVersion.Soap11) 303else if (version.Envelope == EnvelopeVersion.None) 310SR.GetString(SR.EnvelopeVersionNotSupported, version.Envelope)));
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (2)
201SoapHelper.SetSoapVersion(context, exporter, this.messageVersion.Envelope); 206return messageVersion.Envelope == version;
System\ServiceModel\Channels\TransactionChannel.cs (1)
107return IssuedTokensHeader.ExtractIssuances(message, this.factory.StandardsManager, message.Version.Envelope.UltimateDestinationActorValues, null);
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 (4)
303bool soap11 = messageVersion.Envelope == EnvelopeVersion.Soap11; 319if (!messageVersion.Envelope.IsUltimateDestinationActor(header.Actor)) 411new MustUnderstandSoapException(notUnderstoodHeaders, messageVersion.Envelope)); 673new MustUnderstandSoapException(notUnderstoodHeaders, version.Envelope));
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
1090fault.WriteTo(xmlWriter, response.Version.Envelope);
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (1)
120if (message.State != MessageState.Closed && message.Headers.MessageVersion.Envelope != EnvelopeVersion.None)
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (6)
185if (this.message.Version.Envelope != EnvelopeVersion.None) 187dictionaryWriter.WriteStartElement(XD.MessageDictionary.Prefix.Value, XD.MessageDictionary.Envelope, this.message.Version.Envelope.DictionaryNamespace); 194if (this.message.Version.Envelope != EnvelopeVersion.None) 202else if (this.message.Version.Envelope != EnvelopeVersion.None) //No headers for EnvelopeVersion.None 216dictionaryWriter.WriteStartElement(XD.MessageDictionary.Prefix.Value, XD.MessageDictionary.Envelope, this.message.Version.Envelope.DictionaryNamespace); 236dictionaryWriter.WriteStartElement(XD.MessageDictionary.Prefix.Value, XD.MessageDictionary.Header, this.message.Version.Envelope.DictionaryNamespace);
System\ServiceModel\Dispatcher\ClientRuntime.cs (1)
482return reader.IsStartElement(XD.MessageDictionary.Fault, MessageVersion.None.Envelope.DictionaryNamespace);
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
887new MustUnderstandSoapException(rpc.NotUnderstoodHeaders, rpc.Request.Version.Envelope));
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (1)
1174string soapNS = msg.Version.Envelope.Namespace;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (7)
90serializer.Serialize(bufferWriter, headerValues, null, isEncoded ? GetEncoding(message.Version.Envelope) : null); 223object[] headerValues = (object[])serializer.Deserialize(bufferReader, isEncoded ? GetEncoding(message.Version.Envelope) : null); 262if (isEncoded && version.Envelope == EnvelopeVersion.Soap11) 264string encoding = GetEncoding(version.Envelope); 265writer.WriteAttributeString("encodingStyle", version.Envelope.Namespace, encoding); 332string encoding = isEncoded ? GetEncoding(version.Envelope) : null; 382object[] bodyParameters = (object[])serializer.Deserialize(reader, isEncoded ? GetEncoding(version.Envelope) : null);
System\ServiceModel\Dispatcher\XPathMessageContext.cs (2)
926soap = msg.Version.Envelope.Namespace; 940return nav.Message.Version.Envelope.Namespace;
System\ServiceModel\Security\SecurityAppliedMessage.cs (1)
123writer.WriteStartElement(this.bodyPrefix, XD.MessageDictionary.Body, this.Version.Envelope.DictionaryNamespace);
System\ServiceModel\Security\SecuritySessionFilter.cs (2)
88if (!this.standardsManager.TryGetSecurityContextIds(message, message.Version.Envelope.UltimateDestinationActorValues, this.isStrictMode, contextIds)) 300return this.standardsManager.TryGetSecurityContextIds(message, message.Version.Envelope.UltimateDestinationActorValues,
System\ServiceModel\Security\SecurityVerifiedMessage.cs (5)
164if (Message.ReadStartBody(reader, this.InnerMessage.Version.Envelope, out this.isDecryptedBodyFault, out this.isDecryptedBodyEmpty)) 224if (reader.IsStartElement(XD.MessageDictionary.Header, this.Version.Envelope.DictionaryNamespace)) 246reader.MoveToStartElement(XD.MessageDictionary.Header, this.Version.Envelope.DictionaryNamespace); 446writer.WriteStartElement(this.envelopePrefix, XD.MessageDictionary.Envelope, this.Version.Envelope.DictionaryNamespace); 449writer.WriteStartElement(this.bodyPrefix, XD.MessageDictionary.Body, this.Version.Envelope.DictionaryNamespace);
System\ServiceModel\Security\SecurityVersion.cs (1)
130headerIndex = message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, message.Version.Envelope.UltimateDestinationActorValues);
System\ServiceModel\Security\WSSecurityOneDotOneReceiveSecurityHeader.cs (1)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptedHeaderAttributeMismatch, this.Version.Envelope.DictionaryActor, headerXml.Actor, this.Actor)));
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (3)
374this.SecurityVerifiedMessage.OnUnsignedPart(XD.MessageDictionary.Body.Value, this.Version.Envelope.Namespace); 379this.SecurityVerifiedMessage.OnUnencryptedPart(XD.MessageDictionary.Body.Value, this.Version.Envelope.Namespace); 732EnvelopeVersion currentVersion = this.Version.Envelope;
System\ServiceModel\Security\WSTrustServiceContract.cs (3)
329if (!HandleException(ex, trustNamespace, requestAction, requestMessage.Version.Envelope)) 593if (!HandleException(ex, trustNamespace, requestAction, requestMessage.Version.Envelope)) 631if (!HandleException(ex, trustNamespace, requestAction, asyncResult.MessageVersion.Envelope))
System\ServiceModel\WSAddressing10ProblemHeaderQNameFault.cs (1)
117if (headers.MessageVersion.Envelope == EnvelopeVersion.Soap11)
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\SoapProcessingBehavior.cs (1)
327return (header.Actor != null && string.Equals(header.Actor, messageVersion.Envelope.NextDestinationActorValue));
System.ServiceModel.Web (2)
System\ServiceModel\Channels\WebMessageEncodingBindingElement.cs (2)
232SoapHelper.SetSoapVersion(context, exporter, this.MessageVersion.Envelope); 237return MessageVersion.Envelope == version;