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
- Empty.cs
- TextTabProperties.cs
- SemaphoreSecurity.cs
- HeaderPanel.cs
- WebSysDefaultValueAttribute.cs
- Menu.cs
- AttachedPropertyMethodSelector.cs
- Query.cs
- TriggerActionCollection.cs
- CheckBoxFlatAdapter.cs
- CompositeActivityDesigner.cs
- XmlSchemaAttributeGroup.cs
- DetailsViewPagerRow.cs
- TypeConverterHelper.cs
- Crypto.cs
- OracleTimeSpan.cs
- Brush.cs
- FileSecurity.cs
- UnsafeNativeMethods.cs
- TextShapeableCharacters.cs
- BrowserInteropHelper.cs
- AssertSection.cs
- NativeActivityMetadata.cs
- exports.cs
- Int16AnimationUsingKeyFrames.cs
- XPathItem.cs
- BoundPropertyEntry.cs
- Vector3DKeyFrameCollection.cs
- RightsManagementProvider.cs
- ArgIterator.cs
- WebBaseEventKeyComparer.cs
- CanonicalFontFamilyReference.cs
- DescendantBaseQuery.cs
- ClusterSafeNativeMethods.cs
- _AuthenticationState.cs
- ImageAttributes.cs
- ValidatorAttribute.cs
- GridViewRowEventArgs.cs
- StdValidatorsAndConverters.cs
- RecommendedAsConfigurableAttribute.cs
- mediapermission.cs
- SequentialActivityDesigner.cs
- AssertHelper.cs
- DbSourceParameterCollection.cs
- TemplateBaseAction.cs
- FtpWebResponse.cs
- QueryRewriter.cs
- PropertyOverridesTypeEditor.cs
- UInt64Storage.cs
- __Filters.cs
- XmlSerializableReader.cs
- ManagementClass.cs
- ExtenderControl.cs
- ConsumerConnectionPoint.cs
- TableParagraph.cs
- ActionFrame.cs
- HttpClientCertificate.cs
- DataGridItem.cs
- DictionaryEntry.cs
- XamlFigureLengthSerializer.cs
- WebPartConnectionsCloseVerb.cs
- CustomAttributeSerializer.cs
- ListViewGroupItemCollection.cs
- Stroke2.cs
- ClonableStack.cs
- Interlocked.cs
- RefreshPropertiesAttribute.cs
- Peer.cs
- XmlDocument.cs
- HotSpot.cs
- Material.cs
- PenThreadPool.cs
- Stack.cs
- ByteStreamGeometryContext.cs
- AccessibilityHelperForXpWin2k3.cs
- EmptyEnumerable.cs
- AnnotationObservableCollection.cs
- X509Extension.cs
- Pkcs9Attribute.cs
- Descriptor.cs
- XsdValidatingReader.cs
- PackageFilter.cs
- InheritanceContextChangedEventManager.cs
- NullableConverter.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TextEditorDragDrop.cs
- RangeExpression.cs
- CodeComment.cs
- CodeSubDirectoriesCollection.cs
- Variable.cs
- ObjectIDGenerator.cs
- ButtonFlatAdapter.cs
- _NTAuthentication.cs
- safePerfProviderHandle.cs
- ConnectionStringsExpressionBuilder.cs
- StickyNoteAnnotations.cs
- TextTreeInsertUndoUnit.cs
- Converter.cs
- WebPartCollection.cs
- XamlLoadErrorInfo.cs