Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpPostProtocolImporter.cs / 1305376 / HttpPostProtocolImporter.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Description {
using System.Web.Services.Protocols;
internal class HttpPostProtocolImporter : HttpProtocolImporter {
public HttpPostProtocolImporter() : base(true) { }
public override string ProtocolName {
get { return "HttpPost"; }
}
internal override Type BaseClass {
get {
if (Style == ServiceDescriptionImportStyle.Client) {
return typeof(HttpPostClientProtocol);
}
else {
return typeof(WebService);
}
}
}
protected override bool IsBindingSupported() {
HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding));
if (httpBinding == null) return false;
if (httpBinding.Verb != "POST") return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Description {
using System.Web.Services.Protocols;
internal class HttpPostProtocolImporter : HttpProtocolImporter {
public HttpPostProtocolImporter() : base(true) { }
public override string ProtocolName {
get { return "HttpPost"; }
}
internal override Type BaseClass {
get {
if (Style == ServiceDescriptionImportStyle.Client) {
return typeof(HttpPostClientProtocol);
}
else {
return typeof(WebService);
}
}
}
protected override bool IsBindingSupported() {
HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding));
if (httpBinding == null) return false;
if (httpBinding.Verb != "POST") return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Panel.cs
- DesignerTransactionCloseEvent.cs
- RemoveStoryboard.cs
- FtpRequestCacheValidator.cs
- OutOfProcStateClientManager.cs
- KnownBoxes.cs
- EventMappingSettingsCollection.cs
- SignatureToken.cs
- EventSourceCreationData.cs
- WorkflowMarkupSerializerMapping.cs
- ColumnResizeAdorner.cs
- AlignmentXValidation.cs
- TableRowGroupCollection.cs
- SHA1Managed.cs
- Clipboard.cs
- IsolatedStoragePermission.cs
- PublisherMembershipCondition.cs
- Matrix3D.cs
- GridView.cs
- ClientConfigurationSystem.cs
- ChangePassword.cs
- ExtensionWindowHeader.cs
- XmlCharacterData.cs
- WithParamAction.cs
- DataObjectSettingDataEventArgs.cs
- XmlElementCollection.cs
- XamlToRtfParser.cs
- PTProvider.cs
- EditorZone.cs
- LicenseManager.cs
- TraceRecord.cs
- LineInfo.cs
- SystemMulticastIPAddressInformation.cs
- SponsorHelper.cs
- BuildManager.cs
- KeyInfo.cs
- WebPartConnectionsCancelVerb.cs
- OLEDB_Util.cs
- DataGridViewControlCollection.cs
- _FtpDataStream.cs
- NativeMethods.cs
- MetadataLocation.cs
- SoapObjectReader.cs
- NumericUpDownAccelerationCollection.cs
- AdRotatorDesigner.cs
- SelectionEditingBehavior.cs
- WebPartTransformer.cs
- SoapObjectInfo.cs
- BmpBitmapDecoder.cs
- TransactedBatchingElement.cs
- DataListItemCollection.cs
- DataControlField.cs
- RegionIterator.cs
- RelationshipEndMember.cs
- StandardCommands.cs
- coordinatorscratchpad.cs
- Hash.cs
- UnicodeEncoding.cs
- PictureBox.cs
- NativeMethods.cs
- TextSpanModifier.cs
- X509Chain.cs
- ContentDesigner.cs
- Point3DAnimationUsingKeyFrames.cs
- WindowsListViewScroll.cs
- XmlQueryTypeFactory.cs
- RijndaelManagedTransform.cs
- BuildProvidersCompiler.cs
- GenericTypeParameterBuilder.cs
- UpdateRecord.cs
- RtfToXamlLexer.cs
- DetailsViewPageEventArgs.cs
- DetectRunnableInstancesTask.cs
- SecurityContextKeyIdentifierClause.cs
- OutputWindow.cs
- __Filters.cs
- MultipleViewProviderWrapper.cs
- WebPartActionVerb.cs
- ProtectedConfigurationProviderCollection.cs
- SafeRightsManagementQueryHandle.cs
- BindStream.cs
- AttributeQuery.cs
- FieldTemplateUserControl.cs
- ToolStripItem.cs
- ChannelManagerHelpers.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- HwndTarget.cs
- Size3D.cs
- SystemIPInterfaceProperties.cs
- wgx_commands.cs
- Privilege.cs
- CompositeFontInfo.cs
- ToolStripItemClickedEventArgs.cs
- RectangleConverter.cs
- ArrayTypeMismatchException.cs
- OuterGlowBitmapEffect.cs
- XmlSerializerFactory.cs
- Selection.cs
- ContextStack.cs
- GeneralTransformGroup.cs