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
- XPathBinder.cs
- SelectingProviderEventArgs.cs
- RealizationDrawingContextWalker.cs
- IpcClientManager.cs
- EnterpriseServicesHelper.cs
- XsltLibrary.cs
- ObjectPropertyMapping.cs
- XmlSerializerVersionAttribute.cs
- LambdaValue.cs
- ProfileManager.cs
- HttpTransportManager.cs
- Size3DConverter.cs
- HostingEnvironmentSection.cs
- HttpCachePolicy.cs
- ProjectionCamera.cs
- DeobfuscatingStream.cs
- Enlistment.cs
- TextEditorTables.cs
- SubordinateTransaction.cs
- QueryExpression.cs
- CodeDomSerializationProvider.cs
- SessionStateModule.cs
- UnhandledExceptionEventArgs.cs
- LocalizationComments.cs
- KerberosTokenFactoryCredential.cs
- FormatPage.cs
- BitSet.cs
- ProfileSettingsCollection.cs
- Attributes.cs
- ButtonStandardAdapter.cs
- TextEffectCollection.cs
- StringValidatorAttribute.cs
- BitmapEffectOutputConnector.cs
- SafeCryptoHandles.cs
- InfoCardArgumentException.cs
- ToolStripSystemRenderer.cs
- XPathNavigator.cs
- ClientFormsIdentity.cs
- LongValidator.cs
- EntityProviderFactory.cs
- InstanceDescriptor.cs
- ExpandedWrapper.cs
- BigInt.cs
- MembershipPasswordException.cs
- CustomLineCap.cs
- selecteditemcollection.cs
- XmlUtf8RawTextWriter.cs
- NameTable.cs
- AnnotationMap.cs
- SecurityIdentifierElement.cs
- MethodExpr.cs
- ZipIORawDataFileBlock.cs
- Selector.cs
- EventlogProvider.cs
- ServiceModelEnumValidatorAttribute.cs
- LinkClickEvent.cs
- EntityContainerAssociationSetEnd.cs
- Int64AnimationUsingKeyFrames.cs
- Header.cs
- DependencyObjectType.cs
- DeleteStoreRequest.cs
- UidPropertyAttribute.cs
- ButtonColumn.cs
- SqlDataReaderSmi.cs
- ObjectStorage.cs
- ImageIndexConverter.cs
- CodeCommentStatement.cs
- SecurityManager.cs
- SqlCacheDependency.cs
- SR.cs
- UrlMappingsModule.cs
- SiteMapPathDesigner.cs
- PageCatalogPartDesigner.cs
- ISessionStateStore.cs
- ExtensionSimplifierMarkupObject.cs
- DataSpaceManager.cs
- Image.cs
- Double.cs
- MaskedTextBoxTextEditor.cs
- ScrollPattern.cs
- CodeIdentifiers.cs
- WebPartZone.cs
- CapiHashAlgorithm.cs
- HtmlUtf8RawTextWriter.cs
- DbProviderFactoriesConfigurationHandler.cs
- Pair.cs
- AssociationSetMetadata.cs
- ExecutionEngineException.cs
- ContractNamespaceAttribute.cs
- SymbolUsageManager.cs
- CodeStatementCollection.cs
- XmlUtil.cs
- ZoneLinkButton.cs
- TextViewBase.cs
- IdentifierCollection.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- PropertyDescriptorComparer.cs
- LineGeometry.cs
- FunctionImportElement.cs
- ParameterReplacerVisitor.cs