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
- RIPEMD160Managed.cs
- WindowsListViewItemCheckBox.cs
- ServiceThrottlingElement.cs
- SetIndexBinder.cs
- RepeaterItemCollection.cs
- EntitySqlQueryState.cs
- Repeater.cs
- Pkcs9Attribute.cs
- ContextInformation.cs
- OrderablePartitioner.cs
- DefaultMemberAttribute.cs
- UriScheme.cs
- regiisutil.cs
- StyleXamlTreeBuilder.cs
- HttpListener.cs
- CircleEase.cs
- ContainerParaClient.cs
- exports.cs
- BookmarkNameHelper.cs
- DBAsyncResult.cs
- sitestring.cs
- TextServicesCompartmentContext.cs
- Emitter.cs
- FtpRequestCacheValidator.cs
- QilExpression.cs
- ClientScriptManagerWrapper.cs
- LocalServiceSecuritySettings.cs
- PieceDirectory.cs
- TemplateXamlTreeBuilder.cs
- ProgressBarBrushConverter.cs
- DynamicActivity.cs
- RepeaterCommandEventArgs.cs
- CalendarDesigner.cs
- XPathAncestorQuery.cs
- QilSortKey.cs
- InputProcessorProfilesLoader.cs
- errorpatternmatcher.cs
- TTSVoice.cs
- BuilderInfo.cs
- HwndKeyboardInputProvider.cs
- SqlUDTStorage.cs
- Material.cs
- UpdatePanelTriggerCollection.cs
- DefinitionUpdate.cs
- CodeTypeReference.cs
- MetadataUtilsSmi.cs
- parserscommon.cs
- HMACSHA256.cs
- VideoDrawing.cs
- QueryStringParameter.cs
- TriState.cs
- DragDropManager.cs
- _KerberosClient.cs
- BindingSourceDesigner.cs
- UniqueID.cs
- DesigntimeLicenseContext.cs
- DispatcherHooks.cs
- QueryOutputWriter.cs
- PhysicalFontFamily.cs
- ActivityValidator.cs
- SiteMapDataSourceView.cs
- DecimalStorage.cs
- RequestQueryParser.cs
- InvokeProviderWrapper.cs
- EventSinkHelperWriter.cs
- DSASignatureFormatter.cs
- XmlResolver.cs
- WindowsButton.cs
- GlyphsSerializer.cs
- SerializationInfoEnumerator.cs
- UpdateManifestForBrowserApplication.cs
- XmlElementAttributes.cs
- WindowsGraphics.cs
- AspNetSynchronizationContext.cs
- TextRenderer.cs
- ViewStateModeByIdAttribute.cs
- ObjectDataSourceWizardForm.cs
- DynamicActivityTypeDescriptor.cs
- _NegoStream.cs
- RawUIStateInputReport.cs
- CryptoHandle.cs
- TraceFilter.cs
- GlyphingCache.cs
- EncoderReplacementFallback.cs
- SequentialOutput.cs
- ToolstripProfessionalRenderer.cs
- SmiGettersStream.cs
- MetaModel.cs
- ColorPalette.cs
- IdentityReference.cs
- CodeDefaultValueExpression.cs
- DataErrorValidationRule.cs
- DataServiceStreamProviderWrapper.cs
- Geometry.cs
- HWStack.cs
- ImageBrush.cs
- MethodImplAttribute.cs
- tooltip.cs
- WorkflowMessageEventHandler.cs
- SoapAttributeOverrides.cs