System\ServiceModel\Channels\MessageHeaders.cs (33)
132return ActionHeader.ReadHeaderValue(reader, version.Addressing);
138SetActionHeader(ActionHeader.Create(value, version.Addressing));
176return FaultToHeader.ReadHeaderValue(reader, version.Addressing);
182SetFaultToHeader(FaultToHeader.Create(value, version.Addressing));
200return FromHeader.ReadHeaderValue(reader, version.Addressing);
206SetFromHeader(FromHeader.Create(value, version.Addressing));
239return MessageIDHeader.ReadHeaderValue(reader, version.Addressing);
245SetMessageIDHeader(MessageIDHeader.Create(value, version.Addressing));
280return ReplyToHeader.ReadHeaderValue(reader, version.Addressing);
286SetReplyToHeader(ReplyToHeader.Create(value, version.Addressing));
304return ToHeader.ReadHeaderValue(reader, version.Addressing);
310SetToHeader(ToHeader.Create(value, version.Addressing));
584SR.GetString(SR.MultipleMessageHeaders, name, this.version.Addressing.Namespace),
586this.version.Addressing.Namespace,
597if (ns == this.version.Addressing.Namespace)
725this.version.Addressing.Namespace,
885if (headerInfo.Namespace == this.version.Addressing.Namespace)
952if (this.version.Addressing == AddressingVersion.None)
957new InvalidOperationException(SR.GetString(SR.AddressingHeadersCannotBeAddedToAddressingVersion, this.version.Addressing)));
1010RelatesToHeader.ReadHeaderValue(reader, version.Addressing, out relationshipType, out messageId);
1308if (this.version.Addressing == AddressingVersion.None && reader.NamespaceURI == AddressingVersion.None.Namespace)
1311new InvalidOperationException(SR.GetString(SR.AddressingHeadersCannotBeAddedToAddressingVersion, this.version.Addressing)));
1321Fx.Assert(version.Addressing.DictionaryNamespace != null, "non-None Addressing requires a non-null DictionaryNamespace");
1322kind = (HeaderKind)reader.IndexOfLocalName(localNames, version.Addressing.DictionaryNamespace);
1326info = ToHeader.ReadHeader(reader, version.Addressing, recycledMessageState.UriCache, actor, mustUnderstand, relay);
1329info = ActionHeader.ReadHeader(reader, version.Addressing, actor, mustUnderstand, relay);
1332info = MessageIDHeader.ReadHeader(reader, version.Addressing, actor, mustUnderstand, relay);
1335info = RelatesToHeader.ReadHeader(reader, version.Addressing, actor, mustUnderstand, relay);
1338info = ReplyToHeader.ReadHeader(reader, version.Addressing, actor, mustUnderstand, relay);
1341info = FromHeader.ReadHeader(reader, version.Addressing, actor, mustUnderstand, relay);
1344info = FaultToHeader.ReadHeader(reader, version.Addressing, actor, mustUnderstand, relay);
1469SetActionHeader(ActionHeader.Create(action, version.Addressing));
1502relatesToHeader = RelatesToHeader.Create(messageId, version.Addressing, relationshipType);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (14)
1497else if (this.messageVersion.Addressing == AddressingVersion.WSAddressingAugust2004)
1501else if (this.messageVersion.Addressing == AddressingVersion.WSAddressing10)
1508new ProtocolException(SR.GetString(SR.AddressingVersionNotSupported, this.messageVersion.Addressing)));
3106WsrmIndex.GetSequenceAcknowledgementActionHeader(version.Addressing, reliableMessagingVersion));
3119WsrmIndex.GetAckRequestedActionHeader(messageVersion.Addressing, reliableMessagingVersion));
3133WsrmIndex.GetCloseSequenceResponseActionHeader(messageVersion.Addressing), response);
3143CreateSequenceResponse response = new CreateSequenceResponse(messageVersion.Addressing, reliableMessagingVersion);
3153WsrmIndex.GetCreateSequenceResponseAction(reliableMessagingVersion), messageVersion.Addressing), response);
3207string action = WsrmIndex.GetFaultActionString(messageVersion.Addressing, reliableMessagingVersion);
3257else if ((subCode.Namespace == version.Addressing.Namespace)
3281FaultCode subCode = new FaultCode(AddressingStrings.EndpointUnavailable, version.Addressing.Namespace);
3299return Message.CreateMessage(version, fault, version.Addressing.DefaultFaultAction);
3312WsrmIndex.GetTerminateSequenceActionHeader(version.Addressing, reliableMessagingVersion),
3323WsrmIndex.GetTerminateSequenceResponseActionHeader(version.Addressing),
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (4)
41: base(channelListener, channelListener, localAddress, localVia, EndpointAddress.AnonymousAddress, channelListener.MessageVersion.Addressing.AnonymousUri)
52: base(channelFactory, channelFactory, EndpointAddress.AnonymousAddress, channelFactory.MessageVersion.Addressing.AnonymousUri, remoteAddresss, via)
991if (message.Version.Addressing != AddressingVersion.None || !this.localAddress.IsAnonymous)
996if (message.Version.Addressing == AddressingVersion.None && message.Headers.Action == null)
System\ServiceModel\Channels\WsrmMessageInfo.cs (10)
555throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SR.GetString(SR.NoActionNoSequenceHeaderReason), messageVersion.Addressing.Namespace, AddressingStrings.Action, false));
804DXD.Wsrm11Dictionary.CloseSequenceResponse), messageVersion.Addressing.Namespace,
929if (info.to == null && messageVersion.Addressing == AddressingVersion.WSAddressing10)
930info.to = messageVersion.Addressing.AnonymousUri;
1018XD.WsrmFeb2005Dictionary.CreateSequenceResponse), messageVersion.Addressing.Namespace,
1025info = CreateSequenceResponse.Create(messageVersion.Addressing, reliableMessagingVersion, reader);
1134DXD.Wsrm11Dictionary.TerminateSequenceResponse), messageVersion.Addressing.Namespace,
1248messageVersion.Addressing.Namespace,
1258if (messageVersion.Addressing == AddressingVersion.WSAddressing10 && this.replyTo == null)
1267messageVersion.Addressing.Namespace,
System\ServiceModel\Security\SecuritySessionClientSettings.cs (8)
361AddressingVersion addressing = MessageVersion.Default.Addressing;
367addressing = encoding.MessageVersion.Addressing;
762Message closeMessage = Message.CreateMessage(this.MessageVersion, ActionHeader.Create(this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseAction, this.MessageVersion.Addressing), rst);
792if (closeMessage.Version.Addressing == AddressingVersion.WSAddressing10)
796else if (closeMessage.Version.Addressing == AddressingVersion.WSAddressingAugust2004)
803new ProtocolException(SR.GetString(SR.AddressingVersionNotSupported, closeMessage.Version.Addressing)));
1029response = Message.CreateMessage(message.Version, ActionHeader.Create(this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseResponseAction, message.Version.Addressing), rstr);
1035response = Message.CreateMessage(message.Version, ActionHeader.Create(this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseResponseAction, message.Version.Addressing), rstrCollection);
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (11)
455subCode = new FaultCode(AddressingStrings.EndpointUnavailable, request.Version.Addressing.Namespace);
475Message faultReply = Message.CreateMessage(request.Version, fault, request.Version.Addressing.DefaultFaultAction);
896if (appliesToName == AddressingStrings.EndpointReference && appliesToNamespace == request.Version.Addressing.Namespace)
898if (request.Version.Addressing == AddressingVersion.WSAddressing10)
903else if (request.Version.Addressing == AddressingVersion.WSAddressingAugust2004)
911new ProtocolException(SR.GetString(SR.AddressingVersionNotSupported, request.Version.Addressing)));
927if (request.Version.Addressing == AddressingVersion.WSAddressing10)
931else if (request.Version.Addressing == AddressingVersion.WSAddressingAugust2004)
938new ProtocolException(SR.GetString(SR.AddressingVersionNotSupported, request.Version.Addressing)));
998Message reply = Message.CreateMessage(request.Version, ActionHeader.Create(action, request.Version.Addressing), body);
1005return Message.CreateMessage(request.Version, ActionHeader.Create(action, request.Version.Addressing), body);
System\ServiceModel\Security\SecuritySessionServerSettings.cs (9)
611AddressingVersion addressing = MessageVersion.Default.Addressing;
617addressing = encoding.MessageVersion.Addressing;
1706using (Message faultMessage = Message.CreateMessage(unverifiedMessage.Version, fault, unverifiedMessage.Version.Addressing.DefaultFaultAction))
1961Message response = Message.CreateMessage(request.Version, ActionHeader.Create(this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseResponseAction, request.Version.Addressing), bodyWriter);
2066Message closeMessage = Message.CreateMessage(this.messageVersion, ActionHeader.Create(this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseAction, this.messageVersion.Addressing), rst);
2074if (closeMessage.Version.Addressing == AddressingVersion.WSAddressing10)
2078else if (closeMessage.Version.Addressing == AddressingVersion.WSAddressingAugust2004)
2085new ProtocolException(SR.GetString(SR.AddressingVersionNotSupported, closeMessage.Version.Addressing)));
4710Message faultMessage = Message.CreateMessage(message.Version, fault, message.Version.Addressing.DefaultFaultAction);