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
- SqlClientFactory.cs
- ExceptionRoutedEventArgs.cs
- CodeAttributeArgumentCollection.cs
- DynamicDataRouteHandler.cs
- CompilationUtil.cs
- CalendarDay.cs
- DataListItem.cs
- AutomationEventArgs.cs
- PersianCalendar.cs
- CharEnumerator.cs
- CodeLabeledStatement.cs
- AuthenticateEventArgs.cs
- DataGridViewColumnTypePicker.cs
- GridViewEditEventArgs.cs
- SaveFileDialog.cs
- Unit.cs
- GlobalAclOperationRequirement.cs
- oledbmetadatacolumnnames.cs
- DelegatingChannelListener.cs
- Itemizer.cs
- Crypto.cs
- TiffBitmapEncoder.cs
- CodeAccessPermission.cs
- Timer.cs
- VisualTarget.cs
- BaseCollection.cs
- DbMetaDataCollectionNames.cs
- ProjectedWrapper.cs
- StylusButtonEventArgs.cs
- SoapReflectionImporter.cs
- TimeSpan.cs
- JpegBitmapDecoder.cs
- ObservableCollectionDefaultValueFactory.cs
- StringExpressionSet.cs
- CorrelationKeyCalculator.cs
- StaticExtension.cs
- DataGridViewAccessibleObject.cs
- Rotation3D.cs
- PagesSection.cs
- DataFormats.cs
- PartitionerStatic.cs
- UserControl.cs
- ResourceDictionaryCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- BamlReader.cs
- QueryStringParameter.cs
- ButtonChrome.cs
- Contracts.cs
- FactoryId.cs
- ValueUtilsSmi.cs
- ProcessRequestArgs.cs
- HtmlValidatorAdapter.cs
- MsdtcClusterUtils.cs
- DocumentViewerConstants.cs
- Matrix.cs
- OnOperation.cs
- RadioButtonRenderer.cs
- PropertyInformation.cs
- ExpressionBindingsDialog.cs
- BuildDependencySet.cs
- EditorOptionAttribute.cs
- SqlFunctionAttribute.cs
- AutomationAttributeInfo.cs
- DeflateStream.cs
- List.cs
- MailBnfHelper.cs
- VectorAnimationUsingKeyFrames.cs
- Knowncolors.cs
- Composition.cs
- TimeoutConverter.cs
- PopOutPanel.cs
- FlowDocumentReader.cs
- SystemUnicastIPAddressInformation.cs
- ServicePoint.cs
- InternalException.cs
- TraceSection.cs
- DataGridViewCellLinkedList.cs
- AppDomainResourcePerfCounters.cs
- SafeNativeMethods.cs
- Win32PrintDialog.cs
- Exceptions.cs
- FontFamilyValueSerializer.cs
- ExpressionUtilities.cs
- DBParameter.cs
- DataProtection.cs
- SvcMapFile.cs
- HttpAsyncResult.cs
- DataKeyCollection.cs
- XmlHierarchyData.cs
- Deflater.cs
- translator.cs
- ComplexPropertyEntry.cs
- CallbackValidatorAttribute.cs
- SqlDataRecord.cs
- MembershipUser.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ScrollChrome.cs
- MarshalByValueComponent.cs
- HostedTcpTransportManager.cs
- ReflectPropertyDescriptor.cs