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
- DBConcurrencyException.cs
- MessageLoggingFilterTraceRecord.cs
- CommunicationObjectManager.cs
- ProgressChangedEventArgs.cs
- SafeProcessHandle.cs
- SqlConnectionStringBuilder.cs
- ProgressPage.cs
- FunctionParameter.cs
- CorrelationExtension.cs
- IntSecurity.cs
- RemotingConfiguration.cs
- CodeVariableReferenceExpression.cs
- ZipArchive.cs
- LoginCancelEventArgs.cs
- EventProxy.cs
- ComponentManagerBroker.cs
- HotSpot.cs
- ConnectorDragDropGlyph.cs
- WsdlImporterElement.cs
- EndPoint.cs
- ResourceAttributes.cs
- PropertyChangedEventManager.cs
- WebPartExportVerb.cs
- DataGridViewDataConnection.cs
- ComponentManagerBroker.cs
- SecurityTokenAttachmentMode.cs
- HttpDictionary.cs
- precedingquery.cs
- PreloadedPackages.cs
- EventWaitHandleSecurity.cs
- PieceNameHelper.cs
- MatchingStyle.cs
- SerializerDescriptor.cs
- NonBatchDirectoryCompiler.cs
- DataBindingExpressionBuilder.cs
- LoginUtil.cs
- DataGridViewCellValueEventArgs.cs
- LineMetrics.cs
- WCFServiceClientProxyGenerator.cs
- MessageProtectionOrder.cs
- SecurityChannel.cs
- RSACryptoServiceProvider.cs
- ProtocolViolationException.cs
- XmlSerializer.cs
- WebServiceParameterData.cs
- WindowsListViewGroup.cs
- ListViewItemEventArgs.cs
- ParenthesizePropertyNameAttribute.cs
- TagPrefixCollection.cs
- Label.cs
- Visitor.cs
- ChtmlFormAdapter.cs
- VectorValueSerializer.cs
- XmlMemberMapping.cs
- SingleStorage.cs
- DynamicMethod.cs
- SessionEndingCancelEventArgs.cs
- DiscoveryClientRequestChannel.cs
- ContentIterators.cs
- ViewPort3D.cs
- AutomationAttributeInfo.cs
- LinkedList.cs
- SharedPersonalizationStateInfo.cs
- SemanticResolver.cs
- ComNativeDescriptor.cs
- RegexCompiler.cs
- X509Utils.cs
- VisualStateGroup.cs
- SHA1CryptoServiceProvider.cs
- EntityDataSourceDataSelectionPanel.cs
- ObjectListShowCommandsEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- ToolStripPanel.cs
- BoundField.cs
- ApplicationDirectory.cs
- WebPartZoneBase.cs
- StateDesigner.CommentLayoutGlyph.cs
- CqlWriter.cs
- WmpBitmapDecoder.cs
- ClrProviderManifest.cs
- RunWorkerCompletedEventArgs.cs
- ConfigurationSectionGroupCollection.cs
- PersistenceTypeAttribute.cs
- EventLogger.cs
- ToolStripDropDownMenu.cs
- TypeEnumerableViewSchema.cs
- QilLiteral.cs
- SHA512Managed.cs
- ObjectMemberMapping.cs
- ClientUtils.cs
- SystemIcmpV4Statistics.cs
- ToolboxItemLoader.cs
- TextElementEnumerator.cs
- PasswordPropertyTextAttribute.cs
- DPCustomTypeDescriptor.cs
- DetailsViewUpdateEventArgs.cs
- RichTextBox.cs
- ClientRuntime.cs
- AlphaSortedEnumConverter.cs
- EdmComplexPropertyAttribute.cs