Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CryptoApi.cs
- FormViewDeletedEventArgs.cs
- GrammarBuilderPhrase.cs
- DesignerDataStoredProcedure.cs
- ADMembershipProvider.cs
- HwndAppCommandInputProvider.cs
- FieldDescriptor.cs
- ExpressionNode.cs
- InvokePattern.cs
- ThreadAttributes.cs
- CrossSiteScriptingValidation.cs
- ItemCollectionEditor.cs
- DiscoveryEndpointValidator.cs
- Location.cs
- ImportOptions.cs
- IgnoreSection.cs
- TreeNodeBinding.cs
- SqlLiftIndependentRowExpressions.cs
- ObjectSpanRewriter.cs
- AuthenticationConfig.cs
- NetNamedPipeSecurityElement.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- Formatter.cs
- ViewManager.cs
- TypeUtil.cs
- FileDialog.cs
- HttpCookieCollection.cs
- WebServiceErrorEvent.cs
- SQLInt64Storage.cs
- FixedSOMTable.cs
- CollectionContainer.cs
- EnumValAlphaComparer.cs
- HTTPNotFoundHandler.cs
- SuppressMergeCheckAttribute.cs
- ServiceParser.cs
- Ticks.cs
- UnsupportedPolicyOptionsException.cs
- WebPartDesigner.cs
- UnmanagedHandle.cs
- AttributeQuery.cs
- AspProxy.cs
- CodeParameterDeclarationExpression.cs
- Lazy.cs
- StorageSetMapping.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- QilCloneVisitor.cs
- FormViewRow.cs
- SystemIcmpV6Statistics.cs
- ISO2022Encoding.cs
- MatrixCamera.cs
- WindowsEditBoxRange.cs
- SelectionWordBreaker.cs
- GenericTypeParameterBuilder.cs
- CustomErrorsSectionWrapper.cs
- PriorityQueue.cs
- RequiredFieldValidator.cs
- UserControl.cs
- URI.cs
- DrawingContextWalker.cs
- ThemeDirectoryCompiler.cs
- OlePropertyStructs.cs
- SQLString.cs
- ExpressionCopier.cs
- DataTablePropertyDescriptor.cs
- BitmapVisualManager.cs
- OpenFileDialog.cs
- TdsParserStaticMethods.cs
- ImageButton.cs
- XPathDescendantIterator.cs
- DataGridViewSelectedRowCollection.cs
- IndentTextWriter.cs
- Win32Interop.cs
- ImageKeyConverter.cs
- TimersDescriptionAttribute.cs
- TextServicesDisplayAttribute.cs
- InstalledFontCollection.cs
- AnnotationResourceCollection.cs
- IDispatchConstantAttribute.cs
- ScrollEvent.cs
- ProgressBar.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CssClassPropertyAttribute.cs
- ButtonField.cs
- BindingList.cs
- EdmConstants.cs
- DbBuffer.cs
- indexingfiltermarshaler.cs
- SelfIssuedAuthProofToken.cs
- AlignmentYValidation.cs
- StreamGeometry.cs
- XmlReaderSettings.cs
- CookielessData.cs
- MulticastDelegate.cs
- TypefaceMetricsCache.cs
- ToolboxDataAttribute.cs
- BindingGroup.cs
- TreeNodeEventArgs.cs
- FtpCachePolicyElement.cs
- LayoutEngine.cs
- DocComment.cs