Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / Soap12ProtocolImporter.cs / 1305376 / Soap12ProtocolImporter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //----------------------------------------------------------------------------- namespace System.Web.Services.Description { using System.Web.Services; using System.Web.Services.Protocols; using System.Xml; using System.Xml.Serialization; using System.Xml.Schema; using System.Collections; using System; using System.Reflection; using System.CodeDom; using System.Web.Services.Configuration; using System.Diagnostics; using System.ComponentModel; using System.Security.Permissions; using System.Globalization; ///[PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")] internal class Soap12ProtocolImporter : SoapProtocolImporter { public override string ProtocolName { get { return "Soap12"; } } protected override bool IsBindingSupported() { Soap12Binding soapBinding = (Soap12Binding)Binding.Extensions.Find(typeof(Soap12Binding)); if (soapBinding == null) return false; if (GetTransport(soapBinding.Transport) == null) { UnsupportedBindingWarning(Res.GetString(Res.ThereIsNoSoapTransportImporterThatUnderstands1, soapBinding.Transport)); return false; } return true; } protected override bool IsSoapEncodingPresent(string uriList) { int iStart = 0; do { iStart = uriList.IndexOf(Soap12.Encoding, iStart, StringComparison.Ordinal); if (iStart < 0) break; int iEnd = iStart + Soap12.Encoding.Length; if (iStart == 0 || uriList[iStart-1] == ' ') if (iEnd == uriList.Length || uriList[iEnd] == ' ') return true; iStart = iEnd; } while (iStart < uriList.Length); // not soap 1.2 encoding. let's detect the soap 1.1 encoding and give a better error message. // otherwise just default to the normal "encoding style not supported" error. if (base.IsSoapEncodingPresent(uriList)) UnsupportedOperationBindingWarning(Res.GetString(Res.WebSoap11EncodingStyleNotSupported1, Soap12.Encoding)); return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputRadioButton.cs
- SerializationSectionGroup.cs
- DbConnectionPoolGroupProviderInfo.cs
- CompleteWizardStep.cs
- UnsignedPublishLicense.cs
- _LazyAsyncResult.cs
- EmbeddedMailObjectsCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- EndpointAddressMessageFilterTable.cs
- CopyOfAction.cs
- _ListenerAsyncResult.cs
- AccessedThroughPropertyAttribute.cs
- HttpWriter.cs
- HtmlValidationSummaryAdapter.cs
- SafeNativeMemoryHandle.cs
- CodeGotoStatement.cs
- CryptoApi.cs
- MemberRelationshipService.cs
- UInt64.cs
- RoleExceptions.cs
- PtsHost.cs
- MaskInputRejectedEventArgs.cs
- AutoResetEvent.cs
- TextParaLineResult.cs
- KeyedHashAlgorithm.cs
- MessageBox.cs
- InternalDuplexBindingElement.cs
- TreeViewAutomationPeer.cs
- NativeMethodsOther.cs
- AdRotator.cs
- XmlWrappingReader.cs
- Int32.cs
- RowUpdatedEventArgs.cs
- EntityTypeEmitter.cs
- ColorContext.cs
- CodeDelegateCreateExpression.cs
- FileUpload.cs
- NavigationEventArgs.cs
- InstanceCreationEditor.cs
- NoneExcludedImageIndexConverter.cs
- UInt64Storage.cs
- FrameworkTemplate.cs
- Pens.cs
- RegistryExceptionHelper.cs
- PersistenceProviderDirectory.cs
- StructuredTypeInfo.cs
- GridViewSelectEventArgs.cs
- NavigationWindowAutomationPeer.cs
- DispatcherFrame.cs
- AuthenticatingEventArgs.cs
- HtmlElementErrorEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- ExclusiveCanonicalizationTransform.cs
- BindingSourceDesigner.cs
- ToolStripPanelRenderEventArgs.cs
- ListViewInsertEventArgs.cs
- DataServiceExpressionVisitor.cs
- XmlStreamNodeWriter.cs
- XamlSerializerUtil.cs
- Geometry3D.cs
- StandardOleMarshalObject.cs
- XmlnsPrefixAttribute.cs
- XmlObjectSerializerWriteContext.cs
- WorkflowServiceBuildProvider.cs
- RadioButtonAutomationPeer.cs
- WSSecurityJan2004.cs
- WindowsGraphicsCacheManager.cs
- SqlNamer.cs
- AppDomainAttributes.cs
- StreamGeometryContext.cs
- AuthenticationConfig.cs
- Header.cs
- BuilderElements.cs
- BinaryMethodMessage.cs
- Attributes.cs
- WbmpConverter.cs
- ValidationHelper.cs
- PointLight.cs
- RecordConverter.cs
- EventToken.cs
- OleServicesContext.cs
- AvTrace.cs
- DataGridViewToolTip.cs
- StreamGeometry.cs
- ClientSponsor.cs
- Pen.cs
- KeyConverter.cs
- SecurityPolicySection.cs
- TextBlock.cs
- SecureUICommand.cs
- TypeUtil.cs
- IssuanceLicense.cs
- TriState.cs
- EndPoint.cs
- DrawingGroup.cs
- DriveInfo.cs
- SubpageParagraph.cs
- SymbolType.cs
- MaterialCollection.cs
- ConnectionPointCookie.cs