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
- FlowLayout.cs
- SliderAutomationPeer.cs
- MultiByteCodec.cs
- TextRangeBase.cs
- RequestValidator.cs
- Enum.cs
- EndpointIdentityExtension.cs
- ScriptRegistrationManager.cs
- SqlServices.cs
- DomNameTable.cs
- WebBrowserEvent.cs
- DoubleConverter.cs
- ActivationWorker.cs
- IssuanceLicense.cs
- activationcontext.cs
- ConfigXmlAttribute.cs
- BindingElementCollection.cs
- FileSystemEventArgs.cs
- SecurityProtocolFactory.cs
- FlowPosition.cs
- SectionVisual.cs
- ConnectionInterfaceCollection.cs
- RecordsAffectedEventArgs.cs
- DesignTable.cs
- MetadataWorkspace.cs
- TextTreePropertyUndoUnit.cs
- SoapSchemaMember.cs
- MruCache.cs
- UrlMapping.cs
- ModuleConfigurationInfo.cs
- CalendarBlackoutDatesCollection.cs
- MenuEventArgs.cs
- XPathMultyIterator.cs
- DataGridViewBand.cs
- ValidatorCollection.cs
- DataGrid.cs
- EpmSyndicationContentDeSerializer.cs
- DefinitionBase.cs
- CheckableControlBaseAdapter.cs
- RegexBoyerMoore.cs
- SignatureGenerator.cs
- FunctionCommandText.cs
- FixedSOMPageConstructor.cs
- DetailsView.cs
- ViewStateModeByIdAttribute.cs
- WsdlInspector.cs
- ModelEditingScope.cs
- ColorConvertedBitmap.cs
- BlurEffect.cs
- ListBoxItemWrapperAutomationPeer.cs
- Set.cs
- RoutedCommand.cs
- SelectedPathEditor.cs
- KeyedPriorityQueue.cs
- BinHexEncoder.cs
- Mapping.cs
- RangeValueProviderWrapper.cs
- backend.cs
- ASCIIEncoding.cs
- FlowDocumentPaginator.cs
- OutputCacheSettings.cs
- GenericEnumerator.cs
- RightsManagementEncryptionTransform.cs
- DataQuery.cs
- UnitySerializationHolder.cs
- ResolveDuplexAsyncResult.cs
- TokenBasedSet.cs
- HtmlWindowCollection.cs
- NativeMethods.cs
- recordstate.cs
- SiteIdentityPermission.cs
- PropertyGridEditorPart.cs
- BindableAttribute.cs
- XmlMapping.cs
- ScopedKnownTypes.cs
- PresentationSource.cs
- PasswordRecoveryAutoFormat.cs
- _NativeSSPI.cs
- DocumentPageTextView.cs
- SourceSwitch.cs
- EnumMember.cs
- ResXDataNode.cs
- DesignerValidationSummaryAdapter.cs
- KeyInfo.cs
- XPathSelectionIterator.cs
- NetTcpBindingCollectionElement.cs
- ClusterRegistryConfigurationProvider.cs
- ZoneButton.cs
- PriorityQueue.cs
- BrowsableAttribute.cs
- BufferedGraphics.cs
- ContentElement.cs
- AspProxy.cs
- SafeFileMappingHandle.cs
- DynamicILGenerator.cs
- MDIClient.cs
- AssemblyCollection.cs
- OdbcCommand.cs
- FactorySettingsElement.cs
- VectorAnimationUsingKeyFrames.cs