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
- TcpConnectionPoolSettingsElement.cs
- Opcode.cs
- FontStyles.cs
- WorkItem.cs
- FragmentNavigationEventArgs.cs
- PropertyManager.cs
- ClientProxyGenerator.cs
- AutomationFocusChangedEventArgs.cs
- StringTraceRecord.cs
- TraceSection.cs
- CodeAttributeArgument.cs
- AsymmetricKeyExchangeFormatter.cs
- HierarchicalDataSourceConverter.cs
- MutexSecurity.cs
- MultiAsyncResult.cs
- Figure.cs
- XPathQilFactory.cs
- DataRelation.cs
- Matrix3DStack.cs
- ToolStripRenderEventArgs.cs
- WebEventCodes.cs
- SiteMembershipCondition.cs
- QilValidationVisitor.cs
- UInt64Converter.cs
- ApplicationActivator.cs
- HtmlElement.cs
- EnumDataContract.cs
- SafeSystemMetrics.cs
- SyndicationDeserializer.cs
- DataControlButton.cs
- UIElement3D.cs
- DataConnectionHelper.cs
- DetailsViewPagerRow.cs
- SqlBulkCopyColumnMapping.cs
- NetworkInformationException.cs
- AdapterUtil.cs
- ParallelTimeline.cs
- DbProviderServices.cs
- IDictionary.cs
- ValidationPropertyAttribute.cs
- ComponentChangedEvent.cs
- BidOverLoads.cs
- safex509handles.cs
- SecurityUtils.cs
- LocationSectionRecord.cs
- Baml2006ReaderContext.cs
- ObjectComplexPropertyMapping.cs
- PropertyDescriptor.cs
- ContentPresenter.cs
- AssemblyInfo.cs
- EqualityComparer.cs
- CancelRequestedRecord.cs
- RemotingConfiguration.cs
- WeakRefEnumerator.cs
- TemplateNameScope.cs
- RoutedCommand.cs
- CollectionViewGroup.cs
- AsyncOperationLifetimeManager.cs
- XmlSchemaInclude.cs
- ProcessModuleDesigner.cs
- HttpMethodAttribute.cs
- EntityDataSourceViewSchema.cs
- PtsCache.cs
- XmlUTF8TextWriter.cs
- LinkedResource.cs
- ScriptMethodAttribute.cs
- XamlFigureLengthSerializer.cs
- CustomTokenProvider.cs
- ToolStripLabel.cs
- ErrorLog.cs
- StrokeCollectionConverter.cs
- Vector3DIndependentAnimationStorage.cs
- SemaphoreFullException.cs
- EntityContainerEmitter.cs
- ListDictionary.cs
- FormatterConverter.cs
- SaveFileDialogDesigner.cs
- ObjectParameterCollection.cs
- LineBreak.cs
- TableLayoutColumnStyleCollection.cs
- util.cs
- PersianCalendar.cs
- Baml2006KeyRecord.cs
- FlowDocumentScrollViewer.cs
- FilterQuery.cs
- ReferenceConverter.cs
- ImageIndexConverter.cs
- NumberSubstitution.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ToolStripDropDownDesigner.cs
- PriorityQueue.cs
- SymbolDocumentGenerator.cs
- SchemaImporterExtensionsSection.cs
- TreeNodeStyleCollection.cs
- DefaultCommandExtensionCallback.cs
- DESCryptoServiceProvider.cs
- Rotation3DAnimation.cs
- HostTimeoutsElement.cs
- DataProtection.cs
- WindowsToolbarItemAsMenuItem.cs