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
- SplineKeyFrames.cs
- ScheduleChanges.cs
- Parsers.cs
- GetCryptoTransformRequest.cs
- ZipIOLocalFileBlock.cs
- GridProviderWrapper.cs
- StyleHelper.cs
- connectionpool.cs
- QueryLifecycle.cs
- Rijndael.cs
- StylusTip.cs
- DataGridViewElement.cs
- EncodingTable.cs
- EdmSchemaError.cs
- CommonDialog.cs
- ServiceCredentialsSecurityTokenManager.cs
- latinshape.cs
- CompleteWizardStep.cs
- Clause.cs
- MetabaseServerConfig.cs
- AbsoluteQuery.cs
- SizeF.cs
- VisualTreeHelper.cs
- ObjectDataSourceChooseMethodsPanel.cs
- XmlSchemaAttribute.cs
- PopupRoot.cs
- _BaseOverlappedAsyncResult.cs
- HttpCookieCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- PeerNameRecord.cs
- QuaternionRotation3D.cs
- HyperLinkColumn.cs
- DesignerActionService.cs
- ReadOnlyObservableCollection.cs
- NamespaceList.cs
- ProtectedConfiguration.cs
- CompiledQueryCacheEntry.cs
- DataTableExtensions.cs
- DirectoryNotFoundException.cs
- ReadOnlyMetadataCollection.cs
- DynamicVirtualDiscoSearcher.cs
- ExeContext.cs
- SizeLimitedCache.cs
- MessageEncodingBindingElement.cs
- messageonlyhwndwrapper.cs
- MembershipSection.cs
- Preprocessor.cs
- ConfigXmlReader.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MLangCodePageEncoding.cs
- Viewport3DAutomationPeer.cs
- FreezableCollection.cs
- XmlAttributeCollection.cs
- NativeMethods.cs
- XmlDataLoader.cs
- DBCSCodePageEncoding.cs
- UniqueIdentifierService.cs
- Debug.cs
- DoubleUtil.cs
- ViewValidator.cs
- RelativeSource.cs
- EmptyControlCollection.cs
- RightNameExpirationInfoPair.cs
- RangeContentEnumerator.cs
- Add.cs
- HttpProfileBase.cs
- ExecutionContext.cs
- StrokeSerializer.cs
- Int32CollectionValueSerializer.cs
- ProjectionPathSegment.cs
- ObjectStateFormatter.cs
- SafeEventLogWriteHandle.cs
- SiteMapSection.cs
- Evaluator.cs
- InvalidOperationException.cs
- ToggleButton.cs
- DbConnectionClosed.cs
- TransformProviderWrapper.cs
- RunWorkerCompletedEventArgs.cs
- VectorCollectionConverter.cs
- RuntimeResourceSet.cs
- DocumentPaginator.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- XmlArrayItemAttributes.cs
- AsyncOperation.cs
- RtfToXamlReader.cs
- NotifyIcon.cs
- WindowsListViewGroupHelper.cs
- SessionStateUtil.cs
- TreeView.cs
- TraceContext.cs
- DataGridViewRowConverter.cs
- SafeViewOfFileHandle.cs
- DataSourceGeneratorException.cs
- DBSqlParserTableCollection.cs
- NumericUpDownAcceleration.cs
- AuthenticationModulesSection.cs
- DropSource.cs
- Preprocessor.cs
- KeyValuePairs.cs