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
- FolderBrowserDialog.cs
- Stacktrace.cs
- Attributes.cs
- CharUnicodeInfo.cs
- ResXFileRef.cs
- KeyGestureValueSerializer.cs
- CheckableControlBaseAdapter.cs
- _AcceptOverlappedAsyncResult.cs
- UdpConstants.cs
- ArgIterator.cs
- TraceListeners.cs
- RectAnimationBase.cs
- SerializationInfo.cs
- EventLogTraceListener.cs
- ViewManager.cs
- ItemDragEvent.cs
- CssTextWriter.cs
- PrintDialog.cs
- DependencyObjectPropertyDescriptor.cs
- Int32AnimationBase.cs
- XPathEmptyIterator.cs
- TablePattern.cs
- ChannelServices.cs
- ServicePointManager.cs
- ReadOnlyCollectionBase.cs
- UICuesEvent.cs
- RecordsAffectedEventArgs.cs
- ContentType.cs
- PersonalizablePropertyEntry.cs
- DbMetaDataFactory.cs
- RegexMatch.cs
- DocumentPageHost.cs
- TextEditorContextMenu.cs
- PropertySegmentSerializationProvider.cs
- DataGridColumnsPage.cs
- Drawing.cs
- ProfileSection.cs
- ScrollBar.cs
- DoWhile.cs
- WindowsBrush.cs
- IConvertible.cs
- EmptyStringExpandableObjectConverter.cs
- CodeComment.cs
- ValueProviderWrapper.cs
- PackageRelationship.cs
- NavigatorOutput.cs
- RuleSettingsCollection.cs
- IIS7WorkerRequest.cs
- AttachedAnnotationChangedEventArgs.cs
- ProgressPage.cs
- DataGridHeaderBorder.cs
- QueryExpr.cs
- SystemTcpConnection.cs
- FontCacheLogic.cs
- Atom10ItemFormatter.cs
- StickyNoteContentControl.cs
- BlobPersonalizationState.cs
- EndpointDispatcherTable.cs
- ForeignConstraint.cs
- HotSpotCollection.cs
- TextEditorSpelling.cs
- HostedHttpContext.cs
- DataGridTablesFactory.cs
- ToolStripControlHost.cs
- OneToOneMappingSerializer.cs
- VBIdentifierDesigner.xaml.cs
- RepeatInfo.cs
- HttpCookiesSection.cs
- InProcStateClientManager.cs
- MergablePropertyAttribute.cs
- HMACSHA384.cs
- CodeMethodInvokeExpression.cs
- TdsParserHelperClasses.cs
- DefaultWorkflowLoaderService.cs
- DateTimeFormatInfo.cs
- RangeBase.cs
- ChooseAction.cs
- Input.cs
- cookieexception.cs
- CodeDelegateCreateExpression.cs
- PriorityItem.cs
- SplitContainerDesigner.cs
- SafeProcessHandle.cs
- DependencyPropertyAttribute.cs
- SecurityKeyEntropyMode.cs
- MessageBodyMemberAttribute.cs
- GridViewDeletedEventArgs.cs
- printdlgexmarshaler.cs
- ReadOnlyActivityGlyph.cs
- TraceUtility.cs
- CombinedHttpChannel.cs
- _BaseOverlappedAsyncResult.cs
- GenericNameHandler.cs
- DictionaryBase.cs
- PatternMatcher.cs
- MsdtcWrapper.cs
- StrokeNodeData.cs
- OrderedDictionary.cs
- HttpCapabilitiesEvaluator.cs
- URIFormatException.cs