Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpGetProtocolReflector.cs / 1305376 / HttpGetProtocolReflector.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 HttpGetProtocolReflector : HttpProtocolReflector { public override string ProtocolName { get { return "HttpGet"; } } protected override void BeginClass() { if (IsEmptyBinding) return; HttpBinding httpBinding = new HttpBinding(); httpBinding.Verb = "GET"; Binding.Extensions.Add(httpBinding); HttpAddressBinding httpAddressBinding = new HttpAddressBinding(); httpAddressBinding.Location = ServiceUrl; Port.Extensions.Add(httpAddressBinding); } protected override bool ReflectMethod() { if (!ReflectUrlParameters()) 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 HttpGetProtocolReflector : HttpProtocolReflector { public override string ProtocolName { get { return "HttpGet"; } } protected override void BeginClass() { if (IsEmptyBinding) return; HttpBinding httpBinding = new HttpBinding(); httpBinding.Verb = "GET"; Binding.Extensions.Add(httpBinding); HttpAddressBinding httpAddressBinding = new HttpAddressBinding(); httpAddressBinding.Location = ServiceUrl; Port.Extensions.Add(httpAddressBinding); } protected override bool ReflectMethod() { if (!ReflectUrlParameters()) 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
- RoutedEventValueSerializer.cs
- WindowsRichEditRange.cs
- AssemblyBuilderData.cs
- ProxyWebPart.cs
- ChtmlTextWriter.cs
- WebHttpBehavior.cs
- ExpressionBuilderCollection.cs
- CancellationToken.cs
- MessageHeader.cs
- RuleInfoComparer.cs
- XmlILModule.cs
- BindingCollection.cs
- WebBrowserNavigatedEventHandler.cs
- CategoryAttribute.cs
- ProxyWebPartManager.cs
- IndexerHelper.cs
- Marshal.cs
- Win32.cs
- arabicshape.cs
- TraceEventCache.cs
- ConnectionManagementSection.cs
- HttpConfigurationContext.cs
- EntityUtil.cs
- ParseHttpDate.cs
- FloaterBaseParaClient.cs
- CodeAttributeArgument.cs
- Vars.cs
- ZipIOLocalFileHeader.cs
- OperationCanceledException.cs
- DataSourceComponent.cs
- DataGridViewCellStyleEditor.cs
- smtpconnection.cs
- Vector3DCollectionConverter.cs
- HttpCachePolicyElement.cs
- ListenerElementsCollection.cs
- XmlMtomWriter.cs
- HitTestParameters3D.cs
- DBCSCodePageEncoding.cs
- Transform.cs
- SystemResourceHost.cs
- SingleKeyFrameCollection.cs
- PerfCounters.cs
- InstallHelper.cs
- SchemaTableOptionalColumn.cs
- ToolBarButtonClickEvent.cs
- GridItemProviderWrapper.cs
- ContextMenuStrip.cs
- ToolboxComponentsCreatedEventArgs.cs
- XPathNode.cs
- SplashScreen.cs
- UserMapPath.cs
- EndpointBehaviorElement.cs
- WindowsToolbarItemAsMenuItem.cs
- BufferedGraphicsContext.cs
- SessionChannels.cs
- XomlCompilerError.cs
- StorageTypeMapping.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- BitmapFrame.cs
- ActivityExecutionContextCollection.cs
- DynamicFilterExpression.cs
- ResolveDuplex11AsyncResult.cs
- Label.cs
- MarkupExtensionSerializer.cs
- BulletChrome.cs
- MetricEntry.cs
- TraceUtility.cs
- XamlTreeBuilder.cs
- CalendarDayButton.cs
- LinearGradientBrush.cs
- FlowDocumentPaginator.cs
- ImageMapEventArgs.cs
- InputProcessorProfilesLoader.cs
- CollectionChangedEventManager.cs
- LocalFileSettingsProvider.cs
- MultiTrigger.cs
- DesignSurfaceCollection.cs
- AttributeEmitter.cs
- OracleNumber.cs
- ServiceEndpointElement.cs
- DataRecordObjectView.cs
- RegexWorker.cs
- AspNetPartialTrustHelpers.cs
- ArithmeticException.cs
- SeverityFilter.cs
- CodeTypeReference.cs
- RolePrincipal.cs
- StandardCommandToolStripMenuItem.cs
- NoPersistProperty.cs
- InputMethod.cs
- _UncName.cs
- RenderDataDrawingContext.cs
- Parameter.cs
- SimpleWebHandlerParser.cs
- RegistryKey.cs
- StreamInfo.cs
- SelectionRange.cs
- FileDialogCustomPlace.cs
- CodePropertyReferenceExpression.cs
- XmlComment.cs