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
- SchemaEntity.cs
- RC2CryptoServiceProvider.cs
- Zone.cs
- TitleStyle.cs
- SystemDropShadowChrome.cs
- DoubleCollectionConverter.cs
- URL.cs
- OleDbFactory.cs
- basemetadatamappingvisitor.cs
- WrappingXamlSchemaContext.cs
- ActivityExecutionFilter.cs
- ReadContentAsBinaryHelper.cs
- JapaneseLunisolarCalendar.cs
- HashAlgorithm.cs
- DataServiceProcessingPipeline.cs
- StandardCommands.cs
- ObsoleteAttribute.cs
- PropertyTab.cs
- ProviderBase.cs
- RelationshipEndMember.cs
- ConnectionsZoneDesigner.cs
- PageHandlerFactory.cs
- PropertyInfoSet.cs
- Validator.cs
- XsdValidatingReader.cs
- FormViewRow.cs
- TimeZoneInfo.cs
- FontCacheUtil.cs
- CfgParser.cs
- ExternalCalls.cs
- CqlLexerHelpers.cs
- BamlTreeMap.cs
- xsdvalidator.cs
- StateChangeEvent.cs
- Line.cs
- OdbcException.cs
- ThreadExceptionDialog.cs
- AssemblyInfo.cs
- TreeViewImageKeyConverter.cs
- AccessibleObject.cs
- DialogResultConverter.cs
- EntityDesignerDataSourceView.cs
- WrappedOptions.cs
- XmlSchemas.cs
- UpdateExpressionVisitor.cs
- DependencyObjectProvider.cs
- WizardForm.cs
- Graphics.cs
- SkinBuilder.cs
- DbMetaDataColumnNames.cs
- StateFinalizationActivity.cs
- CfgParser.cs
- PropertyGridDesigner.cs
- WindowsGrip.cs
- MetaModel.cs
- WindowsIdentity.cs
- NavigationWindow.cs
- HttpVersion.cs
- CommonDialog.cs
- WorkflowNamespace.cs
- DrawingBrush.cs
- TableCellAutomationPeer.cs
- WindowsNonControl.cs
- ControlDesigner.cs
- CodeTypeReference.cs
- FacetValues.cs
- PositiveTimeSpanValidatorAttribute.cs
- DeferredElementTreeState.cs
- FlowDocumentView.cs
- AuthenticationService.cs
- UniqueConstraint.cs
- XmlSchemaImport.cs
- CheckableControlBaseAdapter.cs
- ScriptingSectionGroup.cs
- ZeroOpNode.cs
- EmulateRecognizeCompletedEventArgs.cs
- Base64Decoder.cs
- mediaeventshelper.cs
- WebPartDesigner.cs
- BookmarkResumptionRecord.cs
- ListItemCollection.cs
- TranslateTransform3D.cs
- AutomationPatternInfo.cs
- ManagedFilter.cs
- RequestTimeoutManager.cs
- SqlDataSourceFilteringEventArgs.cs
- SpeechSeg.cs
- TextMetrics.cs
- IndentTextWriter.cs
- BaseCAMarshaler.cs
- XmlKeywords.cs
- XMLSchema.cs
- CachedTypeface.cs
- ClassicBorderDecorator.cs
- ZipIOExtraFieldPaddingElement.cs
- EntityContainer.cs
- datacache.cs
- XmlTextEncoder.cs
- TimelineGroup.cs
- DataGridViewCellEventArgs.cs