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
- FontFamily.cs
- CancellationTokenSource.cs
- DbInsertCommandTree.cs
- SchemaNames.cs
- PeerTransportElement.cs
- SystemTcpStatistics.cs
- DoubleStorage.cs
- _NestedMultipleAsyncResult.cs
- FactoryGenerator.cs
- EnumUnknown.cs
- PtsPage.cs
- ZipIOExtraFieldElement.cs
- __Filters.cs
- SupportsEventValidationAttribute.cs
- ProfessionalColorTable.cs
- Token.cs
- SyndicationItem.cs
- XmlSubtreeReader.cs
- ImageClickEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- RegexStringValidator.cs
- RawStylusSystemGestureInputReport.cs
- PrintDialogException.cs
- SqlTypesSchemaImporter.cs
- ImageMetadata.cs
- StringUtil.cs
- MouseCaptureWithinProperty.cs
- FixUpCollection.cs
- DWriteFactory.cs
- StorageMappingItemCollection.cs
- RsaKeyIdentifierClause.cs
- FixedDSBuilder.cs
- SchemaInfo.cs
- InvokeWebService.cs
- ClosureBinding.cs
- ScriptControlDescriptor.cs
- SafeEventLogReadHandle.cs
- ApplicationCommands.cs
- ReflectionServiceProvider.cs
- NonParentingControl.cs
- _WebProxyDataBuilder.cs
- ListView.cs
- webbrowsersite.cs
- PathGradientBrush.cs
- UriWriter.cs
- DBCommandBuilder.cs
- TdsParameterSetter.cs
- CodeSnippetExpression.cs
- ReadOnlyHierarchicalDataSource.cs
- UserControl.cs
- ComplusEndpointConfigContainer.cs
- GradientPanel.cs
- ContentDesigner.cs
- ButtonBaseAdapter.cs
- Vector3dCollection.cs
- _BufferOffsetSize.cs
- UmAlQuraCalendar.cs
- CompileLiteralTextParser.cs
- ReachDocumentSequenceSerializer.cs
- CultureTable.cs
- TextViewElement.cs
- RangeBase.cs
- OrderedDictionary.cs
- SetStateEventArgs.cs
- ScriptReferenceBase.cs
- Renderer.cs
- SecureEnvironment.cs
- ReferencedAssembly.cs
- Trace.cs
- PartitionerQueryOperator.cs
- StackOverflowException.cs
- FixUpCollection.cs
- ButtonFieldBase.cs
- DetailsViewDeletedEventArgs.cs
- GridViewRowCollection.cs
- WebPartVerb.cs
- TagMapCollection.cs
- TextSegment.cs
- ListSortDescriptionCollection.cs
- RewritingPass.cs
- DataGridHyperlinkColumn.cs
- ColorEditor.cs
- Font.cs
- _ConnectStream.cs
- Header.cs
- DataGrid.cs
- oledbmetadatacolumnnames.cs
- PerformanceCounterManager.cs
- IDReferencePropertyAttribute.cs
- NavigationWindowAutomationPeer.cs
- ServicePointManagerElement.cs
- TableAdapterManagerHelper.cs
- SerializationStore.cs
- DataGridViewCellPaintingEventArgs.cs
- SqlGatherConsumedAliases.cs
- CacheAxisQuery.cs
- ListViewGroup.cs
- XmlSerializer.cs
- bindurihelper.cs
- PropertyIdentifier.cs