Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpPostProtocolReflector.cs / 1305376 / HttpPostProtocolReflector.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 HttpPostProtocolReflector : HttpProtocolReflector { //HttpPostProtocolInfo protocolInfo; //internal HttpPostProtocolInfoReflector() { //protocolInfo = new HttpPostProtocolInfo(); //protocolInfo.Service = new HttpPostServiceInfo(); //} public override string ProtocolName { get { return "HttpPost"; } } protected override void BeginClass() { if (IsEmptyBinding) return; HttpBinding httpBinding = new HttpBinding(); httpBinding.Verb = "POST"; Binding.Extensions.Add(httpBinding); HttpAddressBinding httpAddressBinding = new HttpAddressBinding(); httpAddressBinding.Location = ServiceUrl; Port.Extensions.Add(httpAddressBinding); } protected override bool ReflectMethod() { if (!ReflectMimeParameters()) 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 HttpPostProtocolReflector : HttpProtocolReflector { //HttpPostProtocolInfo protocolInfo; //internal HttpPostProtocolInfoReflector() { //protocolInfo = new HttpPostProtocolInfo(); //protocolInfo.Service = new HttpPostServiceInfo(); //} public override string ProtocolName { get { return "HttpPost"; } } protected override void BeginClass() { if (IsEmptyBinding) return; HttpBinding httpBinding = new HttpBinding(); httpBinding.Verb = "POST"; Binding.Extensions.Add(httpBinding); HttpAddressBinding httpAddressBinding = new HttpAddressBinding(); httpAddressBinding.Location = ServiceUrl; Port.Extensions.Add(httpAddressBinding); } protected override bool ReflectMethod() { if (!ReflectMimeParameters()) 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
- Debug.cs
- SimpleLine.cs
- X509Certificate2Collection.cs
- RuleSettings.cs
- PenContext.cs
- PointValueSerializer.cs
- CommandHelper.cs
- ListCollectionView.cs
- SortedDictionary.cs
- AssemblyCollection.cs
- ToolboxControl.cs
- GridViewUpdateEventArgs.cs
- PartitionResolver.cs
- SurrogateEncoder.cs
- MemberDescriptor.cs
- DataSourceCacheDurationConverter.cs
- FtpCachePolicyElement.cs
- AvTraceDetails.cs
- IBuiltInEvidence.cs
- ExceptionHandlers.cs
- ApplicationSecurityManager.cs
- _TLSstream.cs
- SecurityRuntime.cs
- HintTextConverter.cs
- ListBindableAttribute.cs
- DictionarySurrogate.cs
- SqlSelectStatement.cs
- AttachedPropertyBrowsableAttribute.cs
- PropertyCollection.cs
- XNodeSchemaApplier.cs
- SQLGuidStorage.cs
- OleDbErrorCollection.cs
- SafeSecurityHandles.cs
- GridToolTip.cs
- TraceListener.cs
- ExpressionBuilder.cs
- SplashScreenNativeMethods.cs
- SHA256.cs
- SubclassTypeValidatorAttribute.cs
- CompositionCommandSet.cs
- StrongNameUtility.cs
- CodeTypeMember.cs
- Cursor.cs
- DependencyProperty.cs
- DoubleLinkList.cs
- RuleElement.cs
- IfAction.cs
- PriorityBindingExpression.cs
- SHA512.cs
- ObjectListTitleAttribute.cs
- StringSource.cs
- MetadataCollection.cs
- WorkflowPageSetupDialog.cs
- ItemCheckEvent.cs
- FastEncoder.cs
- CompatibleIComparer.cs
- ButtonStandardAdapter.cs
- Util.cs
- JournalEntryListConverter.cs
- DataGridColumnCollectionEditor.cs
- EncoderReplacementFallback.cs
- SizeIndependentAnimationStorage.cs
- ImageIndexEditor.cs
- HasCopySemanticsAttribute.cs
- XamlFilter.cs
- SwitchExpression.cs
- ShaderEffect.cs
- ScheduleChanges.cs
- SqlDataSourceCache.cs
- RoutingEndpointTrait.cs
- SystemResourceKey.cs
- PlacementWorkspace.cs
- DataTableMappingCollection.cs
- AssociationSet.cs
- LoginAutoFormat.cs
- CreateUserWizard.cs
- Light.cs
- InputLanguageEventArgs.cs
- WebSysDefaultValueAttribute.cs
- StyleTypedPropertyAttribute.cs
- AttachedAnnotation.cs
- RemotingAttributes.cs
- WindowsListViewItemStartMenu.cs
- GuidelineSet.cs
- PresentationAppDomainManager.cs
- LocalizedNameDescriptionPair.cs
- TextBox.cs
- NullableIntMinMaxAggregationOperator.cs
- StorageEntityContainerMapping.cs
- HTMLTextWriter.cs
- SourceFileBuildProvider.cs
- LocalServiceSecuritySettingsElement.cs
- CssClassPropertyAttribute.cs
- ColorTransform.cs
- ExecutedRoutedEventArgs.cs
- ReferenceTypeElement.cs
- SizeChangedInfo.cs
- sqlnorm.cs
- HostedTransportConfigurationManager.cs
- EtwTrace.cs