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
- CodeNamespace.cs
- TemplatePropertyEntry.cs
- DataGridViewTopRowAccessibleObject.cs
- SqlClientWrapperSmiStream.cs
- IntSecurity.cs
- EntityDataSourceStatementEditorForm.cs
- Variable.cs
- RepeatButton.cs
- FillRuleValidation.cs
- PatternMatcher.cs
- InternalBase.cs
- XpsException.cs
- CustomCredentialPolicy.cs
- XmlDocumentFragment.cs
- ContainerParaClient.cs
- TypedServiceOperationListItem.cs
- PermissionToken.cs
- RuleSettingsCollection.cs
- StringBlob.cs
- ReferencedType.cs
- UniqueIdentifierService.cs
- ObjectAnimationUsingKeyFrames.cs
- httpapplicationstate.cs
- XmlReaderDelegator.cs
- AlternateViewCollection.cs
- InstancePersistenceEvent.cs
- RangeContentEnumerator.cs
- HighlightOverlayGlyph.cs
- XPathItem.cs
- Options.cs
- NativeMethods.cs
- TailPinnedEventArgs.cs
- MemoryStream.cs
- DescendantBaseQuery.cs
- SettingsSection.cs
- Encoder.cs
- HttpWebRequestElement.cs
- NonClientArea.cs
- Attributes.cs
- StateMachineWorkflow.cs
- TextElement.cs
- Rectangle.cs
- Int64KeyFrameCollection.cs
- CodeDomLoader.cs
- EncryptedKeyIdentifierClause.cs
- FixedNode.cs
- RootBuilder.cs
- EntityDataSourceState.cs
- PowerEase.cs
- SystemFonts.cs
- XmlDataSourceNodeDescriptor.cs
- IpcChannelHelper.cs
- Itemizer.cs
- StoreAnnotationsMap.cs
- XmlTextWriter.cs
- bindurihelper.cs
- CardSpaceSelector.cs
- PackWebRequest.cs
- GenericTextProperties.cs
- DictionaryTraceRecord.cs
- SpotLight.cs
- MimeBasePart.cs
- LoginCancelEventArgs.cs
- ImageMapEventArgs.cs
- HostedElements.cs
- ActivityInterfaces.cs
- XhtmlBasicTextBoxAdapter.cs
- QueryProcessor.cs
- ScriptMethodAttribute.cs
- RelatedPropertyManager.cs
- RIPEMD160.cs
- InputChannel.cs
- JsonEnumDataContract.cs
- MethodExpr.cs
- SettingsContext.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- IisTraceListener.cs
- ClientCultureInfo.cs
- PtsCache.cs
- GridViewCancelEditEventArgs.cs
- ServiceReference.cs
- OleDbSchemaGuid.cs
- FirstMatchCodeGroup.cs
- DeclaredTypeElementCollection.cs
- AuthenticationException.cs
- XmlSchemas.cs
- CalendarTable.cs
- BookmarkScopeManager.cs
- ToolStripProgressBar.cs
- FrameworkElementFactoryMarkupObject.cs
- DispatchChannelSink.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- WriteLineDesigner.xaml.cs
- DesignTimeVisibleAttribute.cs
- BoundColumn.cs
- CustomError.cs
- CodePageUtils.cs
- WorkflowServiceBuildProvider.cs
- XmlSerializationGeneratedCode.cs
- HtmlTable.cs