Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityDataSourceSelectedEventArgs.cs
- PrimitiveCodeDomSerializer.cs
- GridViewDeletedEventArgs.cs
- WindowsTokenRoleProvider.cs
- InputMethodStateTypeInfo.cs
- UnaryNode.cs
- ClientSponsor.cs
- XmlDataSourceView.cs
- TableLayoutRowStyleCollection.cs
- InternalConfigEventArgs.cs
- cookiecontainer.cs
- ConfigurationStrings.cs
- ReadOnlyDictionary.cs
- MenuAdapter.cs
- EncoderExceptionFallback.cs
- HostingEnvironmentSection.cs
- MultiBindingExpression.cs
- TextInfo.cs
- WebPartMinimizeVerb.cs
- DisplayMemberTemplateSelector.cs
- StrokeRenderer.cs
- GradientStop.cs
- SqlBooleanMismatchVisitor.cs
- SessionEndingCancelEventArgs.cs
- XPathEmptyIterator.cs
- FormsIdentity.cs
- WebZone.cs
- SizeLimitedCache.cs
- DataGridViewRowHeaderCell.cs
- SmiRecordBuffer.cs
- DistinctQueryOperator.cs
- WsatConfiguration.cs
- ThumbButtonInfo.cs
- RemoteWebConfigurationHostServer.cs
- QuaternionAnimation.cs
- SimpleLine.cs
- ScanQueryOperator.cs
- InlineCollection.cs
- Documentation.cs
- SafeReversePInvokeHandle.cs
- DelayedRegex.cs
- SmtpMail.cs
- BufferedGraphicsManager.cs
- ButtonBaseAdapter.cs
- DesignerView.Commands.cs
- mediaeventshelper.cs
- Action.cs
- ContextMenu.cs
- FormViewUpdateEventArgs.cs
- DataControlField.cs
- DbConnectionInternal.cs
- util.cs
- ToolStripComboBox.cs
- LoginCancelEventArgs.cs
- WebPartRestoreVerb.cs
- ResourceReferenceExpression.cs
- ComponentCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- XmlObjectSerializerWriteContextComplex.cs
- PaperSource.cs
- CodeNamespaceCollection.cs
- ScrollItemPatternIdentifiers.cs
- TypeLibConverter.cs
- SecurityException.cs
- XPathSingletonIterator.cs
- VerificationAttribute.cs
- ContainerUIElement3D.cs
- Keywords.cs
- HighlightComponent.cs
- TypeLibConverter.cs
- ManualResetEventSlim.cs
- CodeParameterDeclarationExpression.cs
- GeometryModel3D.cs
- ColumnMap.cs
- infer.cs
- AttributeProviderAttribute.cs
- DesignerObjectListAdapter.cs
- TableHeaderCell.cs
- AppLevelCompilationSectionCache.cs
- ImageFormat.cs
- MimeTypePropertyAttribute.cs
- Stylesheet.cs
- HasCopySemanticsAttribute.cs
- ObjectItemConventionAssemblyLoader.cs
- XmlIlGenerator.cs
- DbQueryCommandTree.cs
- NameSpaceEvent.cs
- LogExtentCollection.cs
- CaseExpr.cs
- GroupItemAutomationPeer.cs
- EndPoint.cs
- ScriptingProfileServiceSection.cs
- UInt64Storage.cs
- XmlSchemaAttribute.cs
- ControlsConfig.cs
- ResXResourceSet.cs
- NumericUpDownAccelerationCollection.cs
- SAPICategories.cs
- ConfigsHelper.cs
- RequestCachePolicy.cs