Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ActionMismatchAddressingException.cs / 1 / ActionMismatchAddressingException.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel
{
using System;
using System.ServiceModel.Channels;
using System.Runtime.Serialization;
[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)
{
DiagnosticUtility.DebugAssert(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;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontResourceCache.cs
- EncoderBestFitFallback.cs
- WebPartHeaderCloseVerb.cs
- SspiSecurityToken.cs
- HttpCachePolicyElement.cs
- GetUserPreferenceRequest.cs
- ResizeGrip.cs
- TrackingServices.cs
- ExeContext.cs
- PageCatalogPartDesigner.cs
- TransformGroup.cs
- TemplatedWizardStep.cs
- SystemIcons.cs
- SmiContextFactory.cs
- ImageField.cs
- AttachedProperty.cs
- CompositeDispatchFormatter.cs
- XmlValidatingReader.cs
- ImagingCache.cs
- Int64KeyFrameCollection.cs
- MethodToken.cs
- TextDecoration.cs
- DataDocumentXPathNavigator.cs
- TemplateModeChangedEventArgs.cs
- AuthenticatedStream.cs
- ParserExtension.cs
- OrthographicCamera.cs
- DesignerOptionService.cs
- GeneralTransformGroup.cs
- UriTemplateMatch.cs
- Popup.cs
- CompilerParameters.cs
- ProcessModuleCollection.cs
- CompModSwitches.cs
- PublisherMembershipCondition.cs
- DesigntimeLicenseContext.cs
- ArrayTypeMismatchException.cs
- RenderCapability.cs
- Token.cs
- TemplateControlParser.cs
- FactoryMaker.cs
- OrderedHashRepartitionEnumerator.cs
- SafeEventLogReadHandle.cs
- DependencyObjectProvider.cs
- EpmSourcePathSegment.cs
- SystemIPInterfaceProperties.cs
- StatusBarDrawItemEvent.cs
- ContentType.cs
- FontDialog.cs
- HttpListenerPrefixCollection.cs
- XmlEncodedRawTextWriter.cs
- Accessible.cs
- StylusOverProperty.cs
- SQLSingle.cs
- DataGridViewComboBoxEditingControl.cs
- SchemaAttDef.cs
- XPathDocument.cs
- LogLogRecordEnumerator.cs
- XmlSchemaObjectTable.cs
- SurrogateEncoder.cs
- GeneralTransform3DTo2DTo3D.cs
- SecurityUtils.cs
- TreeViewItemAutomationPeer.cs
- PropertyDescriptor.cs
- ReachPageContentCollectionSerializer.cs
- LongTypeConverter.cs
- SymmetricKey.cs
- ContainerParagraph.cs
- HybridObjectCache.cs
- Literal.cs
- TableColumnCollection.cs
- FormatException.cs
- MethodExpr.cs
- SeekableMessageNavigator.cs
- CatalogPart.cs
- ThreadInterruptedException.cs
- NameValueSectionHandler.cs
- _Win32.cs
- SapiRecognizer.cs
- Tile.cs
- ResourceReader.cs
- SwitchExpression.cs
- IntSecurity.cs
- userdatakeys.cs
- TableStyle.cs
- DeflateStream.cs
- OdbcConnection.cs
- SpnegoTokenProvider.cs
- ObjectStateManager.cs
- Internal.cs
- WebResourceUtil.cs
- GroupBox.cs
- VoiceInfo.cs
- CodeTypeParameter.cs
- KeyedCollection.cs
- LogSwitch.cs
- CompoundFileIOPermission.cs
- ComboBox.cs
- TextCollapsingProperties.cs
- CatalogZoneBase.cs