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
- ChildDocumentBlock.cs
- SettingsProviderCollection.cs
- FileIOPermission.cs
- DictionaryBase.cs
- TemplateBuilder.cs
- DbConnectionHelper.cs
- BaseParaClient.cs
- Stroke.cs
- WebScriptClientGenerator.cs
- MatrixCamera.cs
- RightsManagementEncryptionTransform.cs
- ObjectHelper.cs
- HasCopySemanticsAttribute.cs
- XmlSerializer.cs
- FileFormatException.cs
- DataGridViewTextBoxColumn.cs
- FrameworkElement.cs
- RegexNode.cs
- DataTemplate.cs
- PrintDialog.cs
- WebPartCloseVerb.cs
- WindowsComboBox.cs
- XmlUnspecifiedAttribute.cs
- Pkcs7Signer.cs
- OrthographicCamera.cs
- FormsAuthenticationCredentials.cs
- CounterSample.cs
- CompiledQueryCacheEntry.cs
- HyperLinkField.cs
- PenThread.cs
- SqlConnectionStringBuilder.cs
- FloaterParaClient.cs
- Rotation3DAnimation.cs
- InkCanvasFeedbackAdorner.cs
- DeadCharTextComposition.cs
- Positioning.cs
- ControlCommandSet.cs
- TextFindEngine.cs
- SelectorItemAutomationPeer.cs
- DataListItem.cs
- WindowsFormsSectionHandler.cs
- DynamicControlParameter.cs
- ReflectPropertyDescriptor.cs
- SafeMemoryMappedViewHandle.cs
- CounterCreationData.cs
- UserPreferenceChangingEventArgs.cs
- EntryWrittenEventArgs.cs
- EntityContainerAssociationSet.cs
- UInt32Storage.cs
- FullTextLine.cs
- MethodSignatureGenerator.cs
- DataTableReaderListener.cs
- TabletDeviceInfo.cs
- BulletedList.cs
- ImageFormatConverter.cs
- XmlRawWriter.cs
- PassportAuthenticationModule.cs
- TiffBitmapEncoder.cs
- FormatException.cs
- DataGridTable.cs
- versioninfo.cs
- ConfigurationElement.cs
- ThreadNeutralSemaphore.cs
- ContextQuery.cs
- ResXResourceSet.cs
- SQLBinaryStorage.cs
- TypeValidationEventArgs.cs
- MultiByteCodec.cs
- ToolboxItemFilterAttribute.cs
- HttpServerProtocol.cs
- DatagramAdapter.cs
- RemotingClientProxy.cs
- MethodMessage.cs
- ControlBuilder.cs
- Selector.cs
- KnownTypesHelper.cs
- XslTransform.cs
- PathGeometry.cs
- DataServiceBuildProvider.cs
- ByteStreamMessageEncoderFactory.cs
- TableHeaderCell.cs
- SymDocumentType.cs
- HandleDictionary.cs
- SqlRemoveConstantOrderBy.cs
- MethodAccessException.cs
- VariableQuery.cs
- EventEntry.cs
- CompilerScopeManager.cs
- Cursor.cs
- LocatorBase.cs
- BitmapVisualManager.cs
- BinaryObjectInfo.cs
- HtmlButton.cs
- AppLevelCompilationSectionCache.cs
- CharacterMetricsDictionary.cs
- InvalidBodyAccessException.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ExpressionValueEditor.cs
- AppSecurityManager.cs
- LocationUpdates.cs