Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- SignatureDescription.cs
- CrossContextChannel.cs
- TreeNodeCollection.cs
- KnowledgeBase.cs
- OperatingSystemVersionCheck.cs
- SnapLine.cs
- DynamicMethod.cs
- GeneratedCodeAttribute.cs
- MethodExpr.cs
- CollectionsUtil.cs
- OleCmdHelper.cs
- FixedSOMContainer.cs
- DirectoryLocalQuery.cs
- MetadataArtifactLoaderResource.cs
- COM2PropertyBuilderUITypeEditor.cs
- RubberbandSelector.cs
- ScheduleChanges.cs
- DefaultValueAttribute.cs
- UpdateTranslator.cs
- CodeDomExtensionMethods.cs
- ZipArchive.cs
- LockCookie.cs
- TextBlock.cs
- Int32EqualityComparer.cs
- RtfToken.cs
- StylusButtonEventArgs.cs
- UnaryNode.cs
- HatchBrush.cs
- WebDescriptionAttribute.cs
- odbcmetadatacolumnnames.cs
- XmlSerializationGeneratedCode.cs
- EntityUtil.cs
- DefaultSerializationProviderAttribute.cs
- TableLayout.cs
- SocketElement.cs
- IProducerConsumerCollection.cs
- XmlSchemaInferenceException.cs
- DetailsViewCommandEventArgs.cs
- TagPrefixCollection.cs
- CallbackException.cs
- Repeater.cs
- hwndwrapper.cs
- PropertyStore.cs
- TabControl.cs
- DashStyle.cs
- DnsPermission.cs
- DataObjectSettingDataEventArgs.cs
- SafeEventLogWriteHandle.cs
- XamlSerializer.cs
- ProcessExitedException.cs
- DrawingContextDrawingContextWalker.cs
- PathFigureCollectionConverter.cs
- X509ThumbprintKeyIdentifierClause.cs
- FormViewModeEventArgs.cs
- SupportsEventValidationAttribute.cs
- DeclarativeCatalogPart.cs
- DataContractSerializerElement.cs
- QueryParameter.cs
- SpeakProgressEventArgs.cs
- CalendarDay.cs
- OdbcFactory.cs
- GridViewUpdatedEventArgs.cs
- validationstate.cs
- FormatException.cs
- ChangeNode.cs
- DiagnosticTraceSource.cs
- Win32.cs
- ClientConfigPaths.cs
- DockPanel.cs
- Metafile.cs
- SmtpTransport.cs
- AnnotationDocumentPaginator.cs
- Int32Converter.cs
- WebPartTransformerAttribute.cs
- DeviceFilterEditorDialog.cs
- GlyphCache.cs
- KeyProperty.cs
- AdornerHitTestResult.cs
- Int16AnimationUsingKeyFrames.cs
- Drawing.cs
- OneToOneMappingSerializer.cs
- IsolatedStoragePermission.cs
- BufferedStream.cs
- HtmlInputPassword.cs
- Camera.cs
- xml.cs
- VerticalAlignConverter.cs
- CachedPathData.cs
- AccessDataSourceView.cs
- _ChunkParse.cs
- WeakKeyDictionary.cs
- clipboard.cs
- ReadOnlyPermissionSet.cs
- EdmPropertyAttribute.cs
- ObjectFullSpanRewriter.cs
- ScrollProperties.cs
- TextAutomationPeer.cs
- StartUpEventArgs.cs
- PersonalizationStateInfo.cs
- ThicknessKeyFrameCollection.cs