Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpPostProtocolReflector.cs / 1305376 / HttpPostProtocolReflector.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Description { using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Serialization; using System.Xml.Schema; using System.Collections; using System; using System.Reflection; internal class HttpPostProtocolReflector : HttpProtocolReflector { //HttpPostProtocolInfo protocolInfo; //internal HttpPostProtocolInfoReflector() { //protocolInfo = new HttpPostProtocolInfo(); //protocolInfo.Service = new HttpPostServiceInfo(); //} public override string ProtocolName { get { return "HttpPost"; } } protected override void BeginClass() { if (IsEmptyBinding) return; HttpBinding httpBinding = new HttpBinding(); httpBinding.Verb = "POST"; Binding.Extensions.Add(httpBinding); HttpAddressBinding httpAddressBinding = new HttpAddressBinding(); httpAddressBinding.Location = ServiceUrl; Port.Extensions.Add(httpAddressBinding); } protected override bool ReflectMethod() { if (!ReflectMimeParameters()) return false; if (!ReflectMimeReturn()) return false; HttpOperationBinding httpOperationBinding = new HttpOperationBinding(); httpOperationBinding.Location = MethodUrl; OperationBinding.Extensions.Add(httpOperationBinding); 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
- IsolatedStorage.cs
- InternalResources.cs
- CircleHotSpot.cs
- SimpleRecyclingCache.cs
- DataProtection.cs
- Vector3DCollectionConverter.cs
- RuleInfoComparer.cs
- ObfuscateAssemblyAttribute.cs
- MultipleViewProviderWrapper.cs
- ActivationArguments.cs
- ProtocolsConfiguration.cs
- DbTypeMap.cs
- PropertyEntry.cs
- GACMembershipCondition.cs
- Set.cs
- DataGridHeaderBorder.cs
- SiteMapPath.cs
- LockCookie.cs
- _NetRes.cs
- FamilyMap.cs
- Hex.cs
- FontUnit.cs
- TypefaceMetricsCache.cs
- TextBoxDesigner.cs
- UpdateDelegates.Generated.cs
- FixedTextSelectionProcessor.cs
- SingleAnimationUsingKeyFrames.cs
- WebPartTransformer.cs
- RichTextBoxContextMenu.cs
- FieldDescriptor.cs
- ElementMarkupObject.cs
- AtomMaterializerLog.cs
- PropertyReference.cs
- FilterQuery.cs
- BooleanToVisibilityConverter.cs
- XmlElementCollection.cs
- ButtonPopupAdapter.cs
- ButtonAutomationPeer.cs
- XdrBuilder.cs
- ProcessInfo.cs
- ReferentialConstraint.cs
- ItemsPresenter.cs
- WebPartMenuStyle.cs
- LinkButton.cs
- AncillaryOps.cs
- DateTimeConstantAttribute.cs
- BamlTreeMap.cs
- ScrollContentPresenter.cs
- RangeContentEnumerator.cs
- UseManagedPresentationBindingElementImporter.cs
- ApplicationId.cs
- BaseTemplateBuildProvider.cs
- RedistVersionInfo.cs
- DataControlLinkButton.cs
- DiscoveryOperationContextExtension.cs
- CollectionViewGroup.cs
- ContentPathSegment.cs
- Condition.cs
- CngAlgorithm.cs
- EntityWrapperFactory.cs
- ObjectQuery_EntitySqlExtensions.cs
- ProcessProtocolHandler.cs
- DataViewListener.cs
- FontDialog.cs
- RowParagraph.cs
- HtmlControlPersistable.cs
- SqlProviderManifest.cs
- ToolStripSeparator.cs
- DriveInfo.cs
- SmtpSection.cs
- Matrix3D.cs
- Crc32Helper.cs
- Select.cs
- PropertyEmitter.cs
- XmlDataDocument.cs
- TableCellCollection.cs
- TextTreeRootTextBlock.cs
- DataGridViewCellLinkedList.cs
- AssociatedControlConverter.cs
- WindowInteractionStateTracker.cs
- ObjectRef.cs
- InertiaRotationBehavior.cs
- Pen.cs
- AssertSection.cs
- serverconfig.cs
- SudsWriter.cs
- HtmlInputSubmit.cs
- XmlDataSource.cs
- WebResourceUtil.cs
- LifetimeServices.cs
- WindowsAuthenticationModule.cs
- CacheModeConverter.cs
- BoundColumn.cs
- CodeConstructor.cs
- ResolveNameEventArgs.cs
- ListViewUpdatedEventArgs.cs
- XMLSchema.cs
- PixelFormats.cs
- ProviderException.cs
- ArrayConverter.cs