Files
dotnet-bot adf899c629 Adding System.Data..., System.ServiceModel..., and System.Web...
Adding reference source for
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Entity.Design
System.Data.Linq
System.Data.SqlXml
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Activities
System.ServiceModel.Channels
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.WasHosting
System.ServiceModel.Web
System.Web
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Entity
System.Web.Entity.Design
System.Web.Extensions
System.Web.Mobile
System.Web.Routing
System.Web.Services
System.Xml
System.Xml.Linq
2016-05-03 00:07:37 +02:00

56 lines
1.7 KiB
C#

//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel
{
using System;
using System.Runtime;
using System.Runtime.Serialization;
using System.ServiceModel.Channels;
[Serializable]
internal class ActionMismatchAddressingException : ProtocolException
{
string httpActionHeader;
string soapActionHeader;
public ActionMismatchAddressingException(string message, string soapActionHeader, string httpActionHeader)
: base(message)
{
this.httpActionHeader = httpActionHeader;
this.soapActionHeader = soapActionHeader;
}
protected ActionMismatchAddressingException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
public string HttpActionHeader
{
get
{
return httpActionHeader;
}
}
public string SoapActionHeader
{
get
{
return soapActionHeader;
}
}
internal Message ProvideFault(MessageVersion messageVersion)
{
Fx.Assert(messageVersion.Addressing == AddressingVersion.WSAddressing10, "");
WSAddressing10ProblemHeaderQNameFault phf = new WSAddressing10ProblemHeaderQNameFault(this);
Message message = System.ServiceModel.Channels.Message.CreateMessage(messageVersion, phf, messageVersion.Addressing.FaultAction);
phf.AddHeaders(message.Headers);
return message;
}
}
}