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
- LicenseContext.cs
- VerticalAlignConverter.cs
- ControlParameter.cs
- NumberAction.cs
- FlowDocumentView.cs
- DefaultAssemblyResolver.cs
- ItemCollection.cs
- ObjectSecurityT.cs
- ServicesUtilities.cs
- MaterializeFromAtom.cs
- ScriptBehaviorDescriptor.cs
- TextParentUndoUnit.cs
- SessionStateModule.cs
- DesignerProperties.cs
- RtType.cs
- NGCUIElementCollectionSerializerAsync.cs
- ConfigurationLoader.cs
- TextParagraphProperties.cs
- OdbcConnection.cs
- DataSourceCacheDurationConverter.cs
- XmlDomTextWriter.cs
- ToolboxBitmapAttribute.cs
- DataGridItem.cs
- ResourceReferenceExpression.cs
- WebPartConnectionsDisconnectVerb.cs
- MimeBasePart.cs
- EdmPropertyAttribute.cs
- SchemaCollectionCompiler.cs
- Header.cs
- GenericsInstances.cs
- KnownBoxes.cs
- SqlCachedBuffer.cs
- DispatcherEventArgs.cs
- NativeMethods.cs
- UnsafeNativeMethodsMilCoreApi.cs
- FileUpload.cs
- VerticalAlignConverter.cs
- WorkerRequest.cs
- NativeMethods.cs
- ExceptionHandlers.cs
- AndMessageFilterTable.cs
- XmlElementAttributes.cs
- SiteMapProvider.cs
- ClientBuildManager.cs
- GeneratedView.cs
- WebZone.cs
- TemplateManager.cs
- _OverlappedAsyncResult.cs
- SimpleApplicationHost.cs
- SynchronizedPool.cs
- EventPropertyMap.cs
- Point.cs
- ProfessionalColorTable.cs
- CommonObjectSecurity.cs
- MetadataPropertyvalue.cs
- StorageBasedPackageProperties.cs
- GifBitmapDecoder.cs
- CopyCodeAction.cs
- XmlCustomFormatter.cs
- RightsManagementEncryptedStream.cs
- Brush.cs
- EUCJPEncoding.cs
- DataBindEngine.cs
- HttpCookiesSection.cs
- HiddenFieldPageStatePersister.cs
- Rect3DConverter.cs
- ServiceCredentialsSecurityTokenManager.cs
- SHA384Cng.cs
- EdmRelationshipRoleAttribute.cs
- AttributeQuery.cs
- AbstractExpressions.cs
- NativeConfigurationLoader.cs
- Barrier.cs
- Selection.cs
- RadioButtonFlatAdapter.cs
- Matrix3D.cs
- Registry.cs
- ObjectDataProvider.cs
- RtfToXamlReader.cs
- ContentFileHelper.cs
- HostingMessageProperty.cs
- DBNull.cs
- HandleRef.cs
- MessagePartDescriptionCollection.cs
- Viewport2DVisual3D.cs
- ToggleButtonAutomationPeer.cs
- SmtpReplyReaderFactory.cs
- WriteableOnDemandStream.cs
- DataRecordInfo.cs
- ListView.cs
- WebProxyScriptElement.cs
- CalculatedColumn.cs
- X509ClientCertificateCredentialsElement.cs
- EndpointAddressProcessor.cs
- ACL.cs
- SqlProcedureAttribute.cs
- XmlSchemaException.cs
- FlowLayout.cs
- Parser.cs
- MappingException.cs