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
- DataDesignUtil.cs
- ReaderWriterLockWrapper.cs
- IODescriptionAttribute.cs
- EventEntry.cs
- StylusLogic.cs
- AppDomainFactory.cs
- DataGridViewCheckBoxColumn.cs
- TextTabProperties.cs
- TextElementCollectionHelper.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- DesigntimeLicenseContextSerializer.cs
- TextSegment.cs
- ExtensionQuery.cs
- ObjectDataSource.cs
- XPathSingletonIterator.cs
- DesigntimeLicenseContextSerializer.cs
- DrawingGroup.cs
- ConfigDefinitionUpdates.cs
- XmlMessageFormatter.cs
- XamlVector3DCollectionSerializer.cs
- AbsoluteQuery.cs
- CodeNamespace.cs
- DataRowCollection.cs
- PathTooLongException.cs
- safelinkcollection.cs
- AlternateViewCollection.cs
- DataTableNewRowEvent.cs
- HttpModule.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridHeaderBorder.cs
- DataDocumentXPathNavigator.cs
- TcpClientSocketManager.cs
- Int32AnimationUsingKeyFrames.cs
- Int64Animation.cs
- SortableBindingList.cs
- WebProxyScriptElement.cs
- PackWebResponse.cs
- ButtonDesigner.cs
- EncryptedKey.cs
- EntityTransaction.cs
- ConfigXmlReader.cs
- CompleteWizardStep.cs
- _LoggingObject.cs
- ObjectQuery_EntitySqlExtensions.cs
- NavigationProperty.cs
- _LoggingObject.cs
- LinqDataSourceContextEventArgs.cs
- BamlResourceContent.cs
- HttpWriter.cs
- ButtonFieldBase.cs
- FamilyMapCollection.cs
- X509IssuerSerialKeyIdentifierClause.cs
- SupportsEventValidationAttribute.cs
- Types.cs
- CodeArgumentReferenceExpression.cs
- OleDbFactory.cs
- DataSetFieldSchema.cs
- Int32Storage.cs
- Vector.cs
- AttributeUsageAttribute.cs
- VerticalAlignConverter.cs
- SrgsDocument.cs
- XhtmlBasicLinkAdapter.cs
- GeneralTransform.cs
- Module.cs
- WebPartVerbsEventArgs.cs
- OleDbFactory.cs
- WebPartDisplayModeCancelEventArgs.cs
- InheritanceRules.cs
- RegisteredHiddenField.cs
- SoapReflectionImporter.cs
- DataGridTable.cs
- FixUp.cs
- KeyedByTypeCollection.cs
- DataGridViewCellEventArgs.cs
- HttpProfileBase.cs
- BaseHashHelper.cs
- autovalidator.cs
- WebDisplayNameAttribute.cs
- KeyFrames.cs
- FileChangesMonitor.cs
- DesignerAdRotatorAdapter.cs
- Point.cs
- EndpointDispatcherTable.cs
- IconHelper.cs
- DataRelation.cs
- hwndwrapper.cs
- XmlDocumentSurrogate.cs
- PositiveTimeSpanValidator.cs
- ScrollItemPatternIdentifiers.cs
- ConfigViewGenerator.cs
- BatchWriter.cs
- Operand.cs
- BinHexEncoder.cs
- CodeMethodReturnStatement.cs
- WebPartTransformer.cs
- configsystem.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataPagerFieldCommandEventArgs.cs
- RequestNavigateEventArgs.cs