Imported Upstream version 4.2.0.179

Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent 183bba2c9a
commit 6992685b86
7507 changed files with 90259 additions and 657307 deletions

View File

@@ -3,8 +3,9 @@ SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Web.Services.dll
MOBILE := $(filter monotouch monodroid xammac mobile mobile_static, $(PROFILE))
MOBILE := $(filter monotouch monotouch_watch monodroid xammac mobile mobile_static, $(PROFILE))
ifdef MOBILE
LIB_REFS = System System.Xml
LIB_MCS_FLAGS = \
-nowarn:649 -nowarn:169 \
-r:$(corlib) \
@@ -14,31 +15,35 @@ LIB_MCS_FLAGS = \
-resource:System.Web.Services.Description/wsdl-1.1-soap.xsd,wsdl-1.1-soap.xsd \
-resource:System.Web.Services.Description/web-reference.xsd,web-reference.xsd
else
LIB_MCS_FLAGS = \
-nowarn:649 -nowarn:169 \
-r:$(corlib) \
-r:System.dll \
-r:System.EnterpriseServices.dll \
-r:System.Xml.dll \
LIB_REFS = System System.EnterpriseServices System.Xml System.Data
LIB_MCS_FLAGS = -nowarn:168,169,219,414,612,649 -d:MONO_BROKEN_CONFIGURATION_DLL
ifndef NO_SYSTEM_WEB_DEPENDENCY
LIB_MCS_FLAGS += -r:System.Web.dll
LIB_REFS += System.Web
plainweb_dir = $(the_libdir_base)plainweb
LOCAL_MCS_FLAGS = -lib:$(plainweb_dir)
plainweb = $(plainweb_dir)/System.Web.dll
system_web_services_deps = $(plainweb)
LOCAL_MCS_FLAGS += -lib:$(plainweb_dir)
endif
ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
ifndef NO_SYSTEM_DESIGN_DEPENDENCY
LIB_REFS += System.Design
plaindesign_dir = $(the_libdir_base)plaindesign
plaindesign = $(plaindesign_dir)/System.Design.dll
system_design_deps = $(plaindesign)
LOCAL_MCS_FLAGS += -lib:$(plaindesign_dir)
endif
ifndef NO_SYSTEM_DIRECTORY_SERVICES_DEPENDENCY
LIB_REFS += System.DirectoryServices
endif
LIB_REFS += System.Configuration
LIB_MCS_FLAGS += \
-r:System.Configuration.dll \
-resource:System.Web.Services.Description/wsdl-1.1.xsd,wsdl-1.1.xsd \
-resource:System.Web.Services.Description/wsdl-1.1-soap.xsd,wsdl-1.1-soap.xsd \
-resource:System.Web.Services.Description/web-reference.xsd,web-reference.xsd
endif
endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
@@ -51,9 +56,12 @@ EXTRA_DISTFILES = \
include ../../build/library.make
$(the_libdir_base)$(LIBRARY): $(system_web_services_deps)
$(the_libdir_base)$(LIBRARY): $(system_web_services_deps) $(system_design_deps)
$(plainweb):
(cd ../System.Web; $(MAKE) $@)
.NOTPARALLEL: $(plainweb)
$(plaindesign):
(cd ../System.Design; $(MAKE) $@)
.NOTPARALLEL: $(plainweb) $(plaindesign)

View File

@@ -0,0 +1,301 @@
namespace System.Web.Services
{
static class Res
{
public static string GetString (string name)
{
return name;
}
public static string GetString (string name, params object[] args)
{
return name;
}
public const string AsyncDuplicateUserState = "AsyncDuplicateUserState";
public const string BPConformanceHeaderFault = "BPConformanceHeaderFault";
public const string Binding = "Binding";
public const string BindingInvalidAttribute = "BindingInvalidAttribute";
public const string BindingMissingAttribute = "BindingMissingAttribute";
public const string BindingMultipleParts = "BindingMultipleParts";
public const string BothAndUseTheMessageNameUseTheMessageName3 = "BothAndUseTheMessageNameUseTheMessageName3";
public const string CanTCallTheEndMethodOfAnAsyncCallMoreThan = "CanTCallTheEndMethodOfAnAsyncCallMoreThan";
public const string CanTSpecifyElementOnEncodedMessagePartsPart = "CanTSpecifyElementOnEncodedMessagePartsPart";
public const string CannotRunInPartialTrustOutsideAspNet = "CannotRunInPartialTrustOutsideAspNet";
public const string ClientProtocolAllowAutoRedirect = "ClientProtocolAllowAutoRedirect";
public const string ClientProtocolClientCertificates = "ClientProtocolClientCertificates";
public const string ClientProtocolCookieContainer = "ClientProtocolCookieContainer";
public const string ClientProtocolEnableDecompression = "ClientProtocolEnableDecompression";
public const string ClientProtocolEncoding = "ClientProtocolEncoding";
public const string ClientProtocolPreAuthenticate = "ClientProtocolPreAuthenticate";
public const string ClientProtocolSoapVersion = "ClientProtocolSoapVersion";
public const string ClientProtocolTimeout = "ClientProtocolTimeout";
public const string ClientProtocolUrl = "ClientProtocolUrl";
public const string ClientProtocolUserAgent = "ClientProtocolUserAgent";
public const string CodeGenSupportParameterAttributes = "CodeGenSupportParameterAttributes";
public const string CodeGenSupportReferenceParameters = "CodeGenSupportReferenceParameters";
public const string CodeGenSupportReturnTypeAttributes = "CodeGenSupportReturnTypeAttributes";
public const string CodeRemarks = "CodeRemarks";
public const string CodegenWarningDetails = "CodegenWarningDetails";
public const string ConfigKeyNotFoundInElementCollection = "ConfigKeyNotFoundInElementCollection";
public const string ConfigKeysDoNotMatch = "ConfigKeysDoNotMatch";
public const string ContractOverride = "ContractOverride";
public const string Description = "Description";
public const string DiscoveryIsNotPossibleBecauseTypeIsMissing1 = "DiscoveryIsNotPossibleBecauseTypeIsMissing1";
public const string DuplicateInputOutputNames0 = "DuplicateInputOutputNames0";
public const string EachMessagePartInAUseLiteralMessageMustSpecify0 = "EachMessagePartInAUseLiteralMessageMustSpecify0";
public const string EachMessagePartInAnUseEncodedMessageMustSpecify0 = "EachMessagePartInAnUseEncodedMessageMustSpecify0";
public const string EachMessagePartInRpcUseLiteralMessageMustSpecify0 = "EachMessagePartInRpcUseLiteralMessageMustSpecify0";
public const string Element = "Element";
public const string ElementTypeMustBeObjectOrSoapExtensionOrSoapReflectedException = "ElementTypeMustBeObjectOrSoapExtensionOrSoapReflectedException";
public const string ElementTypeMustBeObjectOrSoapReflectedException = "ElementTypeMustBeObjectOrSoapReflectedException";
public const string FailedToHandleRequest0 = "FailedToHandleRequest0";
public const string Fault = "Fault";
public const string FaultBinding = "FaultBinding";
public const string HeaderFault = "HeaderFault";
public const string HelpGeneratorInternalError = "HelpGeneratorInternalError";
public const string IfAppSettingBaseUrlArgumentIsSpecifiedThen0 = "IfAppSettingBaseUrlArgumentIsSpecifiedThen0";
public const string InitFailed = "InitFailed";
public const string InputElement = "InputElement";
public const string Invalid_priority_group_value = "Invalid_priority_group_value";
public const string MessageHasNoParts1 = "MessageHasNoParts1";
public const string Missing2 = "Missing2";
public const string MissingBinding0 = "MissingBinding0";
public const string MissingHttpOperationElement0 = "MissingHttpOperationElement0";
public const string MissingInputBinding0 = "MissingInputBinding0";
public const string MissingMatchElement0 = "MissingMatchElement0";
public const string MissingMessage2 = "MissingMessage2";
public const string MissingMessagePartForMessageFromNamespace3 = "MissingMessagePartForMessageFromNamespace3";
public const string MissingOutputBinding0 = "MissingOutputBinding0";
public const string MissingSoapBodyInputBinding0 = "MissingSoapBodyInputBinding0";
public const string MissingSoapBodyOutputBinding0 = "MissingSoapBodyOutputBinding0";
public const string MissingSoapOperationBinding0 = "MissingSoapOperationBinding0";
public const string MultipleBindingsWithSameName2 = "MultipleBindingsWithSameName2";
public const string NeedConcreteType = "NeedConcreteType";
public const string NoInputHTTPFormatsWereRecognized0 = "NoInputHTTPFormatsWereRecognized0";
public const string NoInputMIMEFormatsWereRecognized0 = "NoInputMIMEFormatsWereRecognized0";
public const string NoMethodsWereFoundInTheWSDLForThisProtocol = "NoMethodsWereFoundInTheWSDLForThisProtocol";
public const string NoOutputMIMEFormatsWereRecognized0 = "NoOutputMIMEFormatsWereRecognized0";
public const string NotificationIsNotSupported0 = "NotificationIsNotSupported0";
public const string OneWayIsNotSupported0 = "OneWayIsNotSupported0";
public const string OnlyOneWebServiceBindingAttributeMayBeSpecified1 = "OnlyOneWebServiceBindingAttributeMayBeSpecified1";
public const string OnlyOperationInputOrOperationOutputTypes = "OnlyOperationInputOrOperationOutputTypes";
public const string OnlyXmlElementsOrTypesDerivingFromServiceDescriptionFormatExtension0 = "OnlyXmlElementsOrTypesDerivingFromServiceDescriptionFormatExtension0";
public const string Operation = "Operation";
public const string OperationBinding = "OperationBinding";
public const string OperationFlowNotification = "OperationFlowNotification";
public const string OperationFlowSolicitResponse = "OperationFlowSolicitResponse";
public const string OperationMissingBinding = "OperationMissingBinding";
public const string OperationOverload = "OperationOverload";
public const string OutputElement = "OutputElement";
public const string Part = "Part";
public const string Port = "Port";
public const string PortTypeOperationMissing = "PortTypeOperationMissing";
public const string ProtocolDoesNotAsyncSerialize = "ProtocolDoesNotAsyncSerialize";
public const string ProtocolWithNameIsNotRecognized1 = "ProtocolWithNameIsNotRecognized1";
public const string RequestResponseIsNotSupported0 = "RequestResponseIsNotSupported0";
public const string RequiredXmlFormatExtensionAttributeIsMissing1 = "RequiredXmlFormatExtensionAttributeIsMissing1";
public const string Rxxxx = "Rxxxx";
public const string SchemaSyntaxErrorDetails = "SchemaSyntaxErrorDetails";
public const string SchemaValidationError = "SchemaValidationError";
public const string SchemaValidationWarning = "SchemaValidationWarning";
public const string ServiceDescriptionWasNotFound0 = "ServiceDescriptionWasNotFound0";
public const string SolicitResponseIsNotSupported0 = "SolicitResponseIsNotSupported0";
public const string SpecifyingATypeForUseLiteralMessagesIs0 = "SpecifyingATypeForUseLiteralMessagesIs0";
public const string SpecifyingATypeForUseLiteralMessagesIsAny = "SpecifyingATypeForUseLiteralMessagesIsAny";
public const string SpecifyingAnElementForUseEncodedMessageParts0 = "SpecifyingAnElementForUseEncodedMessageParts0";
public const string StackTraceEnd = "StackTraceEnd";
public const string StreamDoesNotRead = "StreamDoesNotRead";
public const string StreamDoesNotSeek = "StreamDoesNotSeek";
public const string TheBinding0FromNamespace1WasIgnored2 = "TheBinding0FromNamespace1WasIgnored2";
public const string TheBindingNamedFromNamespaceWasNotFoundIn3 = "TheBindingNamedFromNamespaceWasNotFoundIn3";
public const string TheDocumentWasNotRecognizedAsAKnownDocumentType = "TheDocumentWasNotRecognizedAsAKnownDocumentType";
public const string TheDocumentWasUnderstoodButContainsErrors = "TheDocumentWasUnderstoodButContainsErrors";
public const string TheEncodingIsNotSupported1 = "TheEncodingIsNotSupported1";
public const string TheHTMLDocumentDoesNotContainDiscoveryInformation = "TheHTMLDocumentDoesNotContainDiscoveryInformation";
public const string TheMethodDoesNotHaveARequestElementEither1 = "TheMethodDoesNotHaveARequestElementEither1";
public const string TheMethodsAndUseTheSameRequestElementAndSoapActionXmlns6 = "TheMethodsAndUseTheSameRequestElementAndSoapActionXmlns6";
public const string TheMethodsAndUseTheSameRequestElementXmlns4 = "TheMethodsAndUseTheSameRequestElementXmlns4";
public const string TheMethodsAndUseTheSameSoapActionWhenTheService3 = "TheMethodsAndUseTheSameSoapActionWhenTheService3";
public const string TheOperation0FromNamespace1WasIgnored2 = "TheOperation0FromNamespace1WasIgnored2";
public const string TheOperationBinding0FromNamespace1WasIgnored = "TheOperationBinding0FromNamespace1WasIgnored";
public const string TheOperationBindingFromNamespaceHadInvalid3 = "TheOperationBindingFromNamespaceHadInvalid3";
public const string TheOperationFromNamespaceHadInvalidSyntax3 = "TheOperationFromNamespaceHadInvalidSyntax3";
public const string TheRequestElementXmlnsWasNotRecognized2 = "TheRequestElementXmlnsWasNotRecognized2";
public const string TheRootElementForTheRequestCouldNotBeDetermined0 = "TheRootElementForTheRequestCouldNotBeDetermined0";
public const string TheSchemaDocumentContainsLinksThatCouldNotBeResolved = "TheSchemaDocumentContainsLinksThatCouldNotBeResolved";
public const string TheSyntaxOfTypeMayNotBeExtended1 = "TheSyntaxOfTypeMayNotBeExtended1";
public const string TheWSDLDocumentContainsLinksThatCouldNotBeResolved = "TheWSDLDocumentContainsLinksThatCouldNotBeResolved";
public const string ThereIsNoSoapTransportImporterThatUnderstands1 = "ThereIsNoSoapTransportImporterThatUnderstands1";
public const string ThereWasAnErrorDownloading0 = "ThereWasAnErrorDownloading0";
public const string ThereWasAnErrorDuringAsyncProcessing = "ThereWasAnErrorDuringAsyncProcessing";
public const string TraceCallEnter = "TraceCallEnter";
public const string TraceCallEnterDetails = "TraceCallEnterDetails";
public const string TraceCallExit = "TraceCallExit";
public const string TraceCreateSerializer = "TraceCreateSerializer";
public const string TraceExceptionCought = "TraceExceptionCought";
public const string TraceExceptionDetails = "TraceExceptionDetails";
public const string TraceExceptionIgnored = "TraceExceptionIgnored";
public const string TraceExceptionThrown = "TraceExceptionThrown";
public const string TracePostWorkItemIn = "TracePostWorkItemIn";
public const string TracePostWorkItemOut = "TracePostWorkItemOut";
public const string TraceReadHeaders = "TraceReadHeaders";
public const string TraceReadRequest = "TraceReadRequest";
public const string TraceReadResponse = "TraceReadResponse";
public const string TraceUrl = "TraceUrl";
public const string TraceUrlReferrer = "TraceUrlReferrer";
public const string TraceUserHostAddress = "TraceUserHostAddress";
public const string TraceUserHostName = "TraceUserHostName";
public const string TraceWriteHeaders = "TraceWriteHeaders";
public const string TraceWriteRequest = "TraceWriteRequest";
public const string TraceWriteResponse = "TraceWriteResponse";
public const string TypeIsMissingWebServiceBindingAttributeThat2 = "TypeIsMissingWebServiceBindingAttributeThat2";
public const string UnableToHandleRequest0 = "UnableToHandleRequest0";
public const string UnableToHandleRequestActionNotRecognized1 = "UnableToHandleRequestActionNotRecognized1";
public const string UnableToHandleRequestActionRequired0 = "UnableToHandleRequestActionRequired0";
public const string UnableToImportBindingFromNamespace2 = "UnableToImportBindingFromNamespace2";
public const string UnableToImportOperation1 = "UnableToImportOperation1";
public const string UriValueRelative = "UriValueRelative";
public const string WebAsyncMissingEnd = "WebAsyncMissingEnd";
public const string WebAsyncTransaction = "WebAsyncTransaction";
public const string WebBadOutParameter = "WebBadOutParameter";
public const string WebBadStreamState = "WebBadStreamState";
public const string WebBothMethodAttrs = "WebBothMethodAttrs";
public const string WebBothServiceAttrs = "WebBothServiceAttrs";
public const string WebCannotAccessValue = "WebCannotAccessValue";
public const string WebCannotAccessValueStage = "WebCannotAccessValueStage";
public const string WebCannotUnderstandHeader = "WebCannotUnderstandHeader";
public const string WebChangeTypeFailed = "WebChangeTypeFailed";
public const string WebClientBindingAttributeRequired = "WebClientBindingAttributeRequired";
public const string WebConfigExtensionError = "WebConfigExtensionError";
public const string WebConfigInvalidExtensionPriority = "WebConfigInvalidExtensionPriority";
public const string WebContractReferenceName = "WebContractReferenceName";
public const string WebDescriptionHeaderAndBodyUseMismatch = "WebDescriptionHeaderAndBodyUseMismatch";
public const string WebDescriptionMissing = "WebDescriptionMissing";
public const string WebDescriptionMissingItem = "WebDescriptionMissingItem";
public const string WebDescriptionPartElementRequired = "WebDescriptionPartElementRequired";
public const string WebDescriptionPartElementWarning = "WebDescriptionPartElementWarning";
public const string WebDescriptionPartTypeRequired = "WebDescriptionPartTypeRequired";
public const string WebDescriptionPartTypeWarning = "WebDescriptionPartTypeWarning";
public const string WebDescriptionTooManyMessages = "WebDescriptionTooManyMessages";
public const string WebDiscoRefReport = "WebDiscoRefReport";
public const string WebDiscoveryDocumentReferenceName = "WebDiscoveryDocumentReferenceName";
public const string WebDuplicateBinding = "WebDuplicateBinding";
public const string WebDuplicateFaultBinding = "WebDuplicateFaultBinding";
public const string WebDuplicateFormatExtension = "WebDuplicateFormatExtension";
public const string WebDuplicateImport = "WebDuplicateImport";
public const string WebDuplicateMessage = "WebDuplicateMessage";
public const string WebDuplicateMessagePart = "WebDuplicateMessagePart";
public const string WebDuplicateOperation = "WebDuplicateOperation";
public const string WebDuplicateOperationBinding = "WebDuplicateOperationBinding";
public const string WebDuplicateOperationFault = "WebDuplicateOperationFault";
public const string WebDuplicateOperationMessage = "WebDuplicateOperationMessage";
public const string WebDuplicatePort = "WebDuplicatePort";
public const string WebDuplicatePortType = "WebDuplicatePortType";
public const string WebDuplicateService = "WebDuplicateService";
public const string WebDuplicateUnknownElement = "WebDuplicateUnknownElement";
public const string WebEmptyRef = "WebEmptyRef";
public const string WebExtensionError = "WebExtensionError";
public const string WebHeaderInvalidMustUnderstand = "WebHeaderInvalidMustUnderstand";
public const string WebHeaderInvalidRelay = "WebHeaderInvalidRelay";
public const string WebHeaderMissing = "WebHeaderMissing";
public const string WebHeaderOneWayOut = "WebHeaderOneWayOut";
public const string WebHeaderRead = "WebHeaderRead";
public const string WebHeaderStatic = "WebHeaderStatic";
public const string WebHeaderType = "WebHeaderType";
public const string WebHeaderWrite = "WebHeaderWrite";
public const string WebHttpHeader = "WebHttpHeader";
public const string WebInOutParameter = "WebInOutParameter";
public const string WebInvalidBindingName = "WebInvalidBindingName";
public const string WebInvalidBindingPlacement = "WebInvalidBindingPlacement";
public const string WebInvalidContentType = "WebInvalidContentType";
public const string WebInvalidDocType = "WebInvalidDocType";
public const string WebInvalidEnvelopeNamespace = "WebInvalidEnvelopeNamespace";
public const string WebInvalidFormat = "WebInvalidFormat";
public const string WebInvalidMethodName = "WebInvalidMethodName";
public const string WebInvalidMethodNameCase = "WebInvalidMethodNameCase";
public const string WebInvalidRequestFormat = "WebInvalidRequestFormat";
public const string WebInvalidRequestFormatDetails = "WebInvalidRequestFormatDetails";
public const string WebMethodMissingParams = "WebMethodMissingParams";
public const string WebMethodStatic = "WebMethodStatic";
public const string WebMissingBodyElement = "WebMissingBodyElement";
public const string WebMissingClientProtocol = "WebMissingClientProtocol";
public const string WebMissingCustomAttribute = "WebMissingCustomAttribute";
public const string WebMissingDocument = "WebMissingDocument";
public const string WebMissingEnvelopeElement = "WebMissingEnvelopeElement";
public const string WebMissingHeader = "WebMissingHeader";
public const string WebMissingHelpContext = "WebMissingHelpContext";
public const string WebMissingParameter = "WebMissingParameter";
public const string WebMissingPath = "WebMissingPath";
public const string WebMissingResource = "WebMissingResource";
public const string WebMultiDimArray = "WebMultiDimArray";
public const string WebMultiplyDeclaredHeaderTypes = "WebMultiplyDeclaredHeaderTypes";
public const string WebNegativeValue = "WebNegativeValue";
public const string WebNoReturnValue = "WebNoReturnValue";
public const string WebNullAsyncResultInBegin = "WebNullAsyncResultInBegin";
public const string WebNullAsyncResultInEnd = "WebNullAsyncResultInEnd";
public const string WebNullReaderForMessage = "WebNullReaderForMessage";
public const string WebNullRef = "WebNullRef";
public const string WebNullWriterForMessage = "WebNullWriterForMessage";
public const string WebOneWayOutParameters = "WebOneWayOutParameters";
public const string WebOneWayReturnValue = "WebOneWayReturnValue";
public const string WebPathNotFound = "WebPathNotFound";
public const string WebQNamePrefixUndefined = "WebQNamePrefixUndefined";
public const string WebRefInvalidAttribute = "WebRefInvalidAttribute";
public const string WebRefInvalidAttribute2 = "WebRefInvalidAttribute2";
public const string WebReflectionError = "WebReflectionError";
public const string WebReflectionErrorMethod = "WebReflectionErrorMethod";
public const string WebRequestContent = "WebRequestContent";
public const string WebRequestUnableToProcess = "WebRequestUnableToProcess";
public const string WebRequestUnableToRead = "WebRequestUnableToRead";
public const string WebResolveMissingClientProtocol = "WebResolveMissingClientProtocol";
public const string WebResponseBadXml = "WebResponseBadXml";
public const string WebResponseContent = "WebResponseContent";
public const string WebResponseKnownError = "WebResponseKnownError";
public const string WebResponseUnknownError = "WebResponseUnknownError";
public const string WebResponseUnknownErrorEmptyBody = "WebResponseUnknownErrorEmptyBody";
public const string WebResultNotXml = "WebResultNotXml";
public const string WebSchemaNotFound = "WebSchemaNotFound";
public const string WebServiceContext = "WebServiceContext";
public const string WebServiceDescriptionIgnoredOptional = "WebServiceDescriptionIgnoredOptional";
public const string WebServiceDescriptionIgnoredRequired = "WebServiceDescriptionIgnoredRequired";
public const string WebServiceServer = "WebServiceServer";
public const string WebServiceSession = "WebServiceSession";
public const string WebServiceSoapVersion = "WebServiceSoapVersion";
public const string WebServiceUser = "WebServiceUser";
public const string WebShemaReferenceName = "WebShemaReferenceName";
public const string WebSoap11EncodingStyleNotSupported1 = "WebSoap11EncodingStyleNotSupported1";
public const string WebSuppressedExceptionMessage = "WebSuppressedExceptionMessage";
public const string WebTextMatchBadCaptureIndex = "WebTextMatchBadCaptureIndex";
public const string WebTextMatchBadGroupIndex = "WebTextMatchBadGroupIndex";
public const string WebTextMatchIgnoredTypeWarning = "WebTextMatchIgnoredTypeWarning";
public const string WebTextMatchMissingPattern = "WebTextMatchMissingPattern";
public const string WebTimeout = "WebTimeout";
public const string WebUnknownAttribute = "WebUnknownAttribute";
public const string WebUnknownAttribute2 = "WebUnknownAttribute2";
public const string WebUnknownAttribute3 = "WebUnknownAttribute3";
public const string WebUnknownElement = "WebUnknownElement";
public const string WebUnknownElement1 = "WebUnknownElement1";
public const string WebUnknownElement2 = "WebUnknownElement2";
public const string WebUnknownEncodingStyle = "WebUnknownEncodingStyle";
public const string WebUnrecognizedRequestFormat = "WebUnrecognizedRequestFormat";
public const string WebUnrecognizedRequestFormatUrl = "WebUnrecognizedRequestFormatUrl";
public const string WebVirtualDisoRoot = "WebVirtualDisoRoot";
public const string WebWsiContentTypeEncoding = "WebWsiContentTypeEncoding";
public const string WebWsiViolation = "WebWsiViolation";
public const string WhenUsingAMessageStyleOfParametersAsDocument0 = "WhenUsingAMessageStyleOfParametersAsDocument0";
public const string WireSignature = "WireSignature";
public const string WireSignatureEmpty = "WireSignatureEmpty";
public const string WsdlGenRpcLitAnonimousType = "WsdlGenRpcLitAnonimousType";
public const string WsdlInstanceValidationDetails = "WsdlInstanceValidationDetails";
public const string XmlLang = "XmlLang";
public const string XmlSchema = "XmlSchema";
public const string XmlSchemaAttributeReference = "XmlSchemaAttributeReference";
public const string XmlSchemaContentDef = "XmlSchemaContentDef";
public const string XmlSchemaElementReference = "XmlSchemaElementReference";
public const string XmlSchemaItem = "XmlSchemaItem";
public const string XmlSchemaNamedItem = "XmlSchemaNamedItem";
public const string indexMustBeBetweenAnd0Inclusive = "indexMustBeBetweenAnd0Inclusive";
public const string internalError0 = "internalError0";
}
}

View File

@@ -1,63 +0,0 @@
//
// System.Web.Services.Configuration.DiagnosticsElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
namespace System.Web.Services.Configuration {
public sealed class DiagnosticsElement : ConfigurationElement
{
static ConfigurationProperty suppressReturningExceptionsProp;
static ConfigurationPropertyCollection properties;
static DiagnosticsElement ()
{
suppressReturningExceptionsProp = new ConfigurationProperty ("suppressReturningExceptions", typeof (bool), false);
properties = new ConfigurationPropertyCollection ();
properties.Add (suppressReturningExceptionsProp);
}
[ConfigurationProperty ("suppressReturningExceptions", DefaultValue = "False")]
public bool SuppressReturningExceptions {
get { return (bool) base [suppressReturningExceptionsProp];}
set { base[suppressReturningExceptionsProp] = value; }
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,38 +0,0 @@
//
// System.Web.Services.Configuration.PriorityGroup
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Web.Services.Configuration {
public enum PriorityGroup {
High = 0,
Low = 1
}
}

View File

@@ -1,75 +0,0 @@
//
// System.Web.Services.Configuration.ProtocolElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
namespace System.Web.Services.Configuration {
public sealed class ProtocolElement : ConfigurationElement
{
static ConfigurationProperty nameProp;
static ConfigurationPropertyCollection properties;
static ProtocolElement ()
{
nameProp = new ConfigurationProperty ("name", typeof (WebServiceProtocols), WebServiceProtocols.Unknown,
new GenericEnumConverter (typeof (WebServiceProtocols)), null, ConfigurationPropertyOptions.IsKey);
properties = new ConfigurationPropertyCollection ();
properties.Add (nameProp);
}
public ProtocolElement ()
{
}
public ProtocolElement (WebServiceProtocols protocol)
{
this.Name = protocol;
}
[ConfigurationProperty ("name", DefaultValue = WebServiceProtocols.Unknown, Options = ConfigurationPropertyOptions.IsKey)]
public WebServiceProtocols Name {
get { return (WebServiceProtocols) base [nameProp];}
set { base[nameProp] = value; }
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,115 +0,0 @@
//
// System.Web.Services.Configuration.ProtocolElementCollection
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Configuration;
namespace System.Web.Services.Configuration {
[ConfigurationCollection (typeof (ProtocolElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
public sealed class ProtocolElementCollection : ConfigurationElementCollection
{
public void Add (ProtocolElement element)
{
BaseAdd (element);
}
public void Clear ()
{
BaseClear ();
}
public bool ContainsKey (object key)
{
return (BaseGet (key) != null);
}
public void CopyTo (ProtocolElement[] array, int index)
{
((ICollection)this).CopyTo (array, index);
}
protected override ConfigurationElement CreateNewElement ()
{
return new ProtocolElement ();
}
protected override object GetElementKey (ConfigurationElement element)
{
return ((ProtocolElement)element).Name;
}
public int IndexOf (ProtocolElement element)
{
return BaseIndexOf (element);
}
public void Remove (ProtocolElement element)
{
BaseRemove (element.Name);
}
public void RemoveAt (int index)
{
BaseRemoveAt (index);
}
[MonoTODO ("is this right?")]
public void RemoveAt (object key)
{
BaseRemove (key);
}
public ProtocolElement this [int index] {
get { return (ProtocolElement)BaseGet (index); }
set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
}
public ProtocolElement this [object key] {
get { return (ProtocolElement)BaseGet (key); }
set {
ProtocolElement el = (ProtocolElement)BaseGet (key);
if (el == null) {
BaseAdd (value);
return;
}
int index = IndexOf (el);
BaseRemoveAt (index);
BaseAdd (index, value);
}
}
}
}

View File

@@ -1,93 +0,0 @@
//
// System.Web.Services.Configuration.SoapEnvelopeProcessingElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.ComponentModel;
namespace System.Web.Services.Configuration {
public sealed class SoapEnvelopeProcessingElement : ConfigurationElement
{
static ConfigurationProperty strictProp;
static ConfigurationProperty readTimeoutProp;
static ConfigurationPropertyCollection properties;
static SoapEnvelopeProcessingElement ()
{
strictProp = new ConfigurationProperty ("strict", typeof (bool), false);
readTimeoutProp = new ConfigurationProperty ("readTimeout", typeof (int), Int32.MaxValue,
new InfiniteIntConverter(), null,
ConfigurationPropertyOptions.None);
properties = new ConfigurationPropertyCollection ();
properties.Add (strictProp);
properties.Add (readTimeoutProp);
}
public SoapEnvelopeProcessingElement (int readTimeout, bool strict)
{
ReadTimeout = readTimeout;
IsStrict = strict;
}
public SoapEnvelopeProcessingElement (int readTimeout)
{
ReadTimeout = readTimeout;
}
public SoapEnvelopeProcessingElement ()
{
}
[ConfigurationProperty ("strict", DefaultValue = false)]
public bool IsStrict {
get { return (bool) base [strictProp];}
set { base[strictProp] = value; }
}
[TypeConverter (typeof (InfiniteIntConverter))]
[ConfigurationProperty ("readTimeout", DefaultValue = int.MaxValue)]
public int ReadTimeout {
get { return (int) base [readTimeoutProp];}
set { base[readTimeoutProp] = value; }
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,114 +0,0 @@
//
// System.Web.Services.Configuration.SoapExtensionTypeElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
// Atsushi Enomoto (atsushi@ximian.com)
//
// (C) 2006-2007 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.ComponentModel;
using System.Globalization;
using System.Security.Permissions;
namespace System.Web.Services.Configuration {
public sealed class SoapExtensionTypeElement : ConfigurationElement
{
static ConfigurationProperty groupProp;
static ConfigurationProperty priorityProp;
static ConfigurationProperty typeProp;
static ConfigurationPropertyCollection properties;
static SoapExtensionTypeElement ()
{
groupProp = new ConfigurationProperty ("group", typeof (PriorityGroup), PriorityGroup.Low, ConfigurationPropertyOptions.IsKey);
priorityProp = new ConfigurationProperty ("priority", typeof (int), 0,
new Int32Converter(), new IntegerValidator (0, Int32.MaxValue),
ConfigurationPropertyOptions.IsKey);
typeProp = new ConfigurationProperty ("type", typeof (Type), null,
new TypeTypeConverter (),
null, ConfigurationPropertyOptions.IsKey);
properties = new ConfigurationPropertyCollection ();
properties.Add (groupProp);
properties.Add (priorityProp);
properties.Add (typeProp);
}
public SoapExtensionTypeElement (Type type, int priority, PriorityGroup group)
{
this.Type = type;
this.Priority = priority;
this.Group = group;
}
[MonoTODO]
public SoapExtensionTypeElement (string type, int priority, PriorityGroup group)
: this (Type.GetType (type), priority, group)
{
}
public SoapExtensionTypeElement ()
{
}
[ConfigurationProperty ("group", DefaultValue = PriorityGroup.Low, Options = ConfigurationPropertyOptions.IsKey)]
public PriorityGroup Group {
get { return (PriorityGroup) base [groupProp];}
set { base[groupProp] = value; }
}
[IntegerValidator (MaxValue = int.MaxValue)]
[ConfigurationProperty ("priority", DefaultValue = 0, Options = ConfigurationPropertyOptions.IsKey)]
public int Priority {
get { return (int) base [priorityProp];}
set { base[priorityProp] = value; }
}
[TypeConverter (typeof (TypeTypeConverter))]
[ConfigurationProperty ("type", Options = ConfigurationPropertyOptions.IsKey)]
public Type Type {
get { return (Type) base [typeProp];}
set { base[typeProp] = value; }
}
internal object GetKey ()
{
return String.Format ("{0}-{0}-{0}", Type, Priority, Group);
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,115 +0,0 @@
//
// System.Web.Services.Configuration.SoapExtensionTypeElementCollection
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Configuration;
namespace System.Web.Services.Configuration {
[ConfigurationCollection (typeof (SoapExtensionTypeElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
public sealed class SoapExtensionTypeElementCollection : ConfigurationElementCollection
{
public void Add (SoapExtensionTypeElement element)
{
BaseAdd (element);
}
public void Clear ()
{
BaseClear ();
}
public bool ContainsKey (object key)
{
return (BaseGet (key) != null);
}
public void CopyTo (SoapExtensionTypeElement[] array, int index)
{
((ICollection)this).CopyTo (array, index);
}
protected override ConfigurationElement CreateNewElement ()
{
return new SoapExtensionTypeElement ();
}
protected override object GetElementKey (ConfigurationElement element)
{
return ((SoapExtensionTypeElement)element).GetKey();
}
public int IndexOf (SoapExtensionTypeElement element)
{
return BaseIndexOf (element);
}
public void Remove (SoapExtensionTypeElement element)
{
BaseRemove (element.GetKey());
}
public void RemoveAt (int index)
{
BaseRemoveAt (index);
}
[MonoTODO ("is this right?")]
public void RemoveAt (object key)
{
BaseRemove (key);
}
public SoapExtensionTypeElement this [int index] {
get { return (SoapExtensionTypeElement)BaseGet (index); }
set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
}
public SoapExtensionTypeElement this [object key] {
get { return (SoapExtensionTypeElement)BaseGet (key); }
set {
SoapExtensionTypeElement el = (SoapExtensionTypeElement)BaseGet (key);
if (el == null) {
BaseAdd (value);
return;
}
int index = IndexOf (el);
BaseRemoveAt (index);
BaseAdd (index, value);
}
}
}
}

View File

@@ -1,83 +0,0 @@
//
// System.Web.Services.Configuration.TypeElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.ComponentModel;
namespace System.Web.Services.Configuration {
public sealed class TypeElement : ConfigurationElement
{
static ConfigurationProperty typeProp;
static ConfigurationPropertyCollection properties;
static TypeElement ()
{
typeProp = new ConfigurationProperty ("type", typeof (Type), null, new TypeTypeConverter(),
null, ConfigurationPropertyOptions.IsKey);
properties = new ConfigurationPropertyCollection ();
properties.Add (typeProp);
}
public TypeElement (Type type)
{
this.Type = type;
}
[MonoTODO]
public TypeElement (string type)
: this (Type.GetType (type))
{
}
public TypeElement ()
{
}
[TypeConverter (typeof (TypeTypeConverter))]
[ConfigurationProperty ("type", Options = ConfigurationPropertyOptions.IsKey)]
public Type Type {
get { return (Type) base [typeProp];}
set { base[typeProp] = value; }
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,115 +0,0 @@
//
// System.Web.Services.Configuration.TypeElementCollection
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Configuration;
namespace System.Web.Services.Configuration {
[ConfigurationCollection (typeof (TypeElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
public sealed class TypeElementCollection : ConfigurationElementCollection
{
public void Add (TypeElement element)
{
BaseAdd (element);
}
public void Clear ()
{
BaseClear ();
}
public bool ContainsKey (object key)
{
return (BaseGet (key) != null);
}
public void CopyTo (TypeElement[] array, int index)
{
((ICollection)this).CopyTo (array, index);
}
protected override ConfigurationElement CreateNewElement ()
{
return new TypeElement ();
}
protected override object GetElementKey (ConfigurationElement element)
{
return ((TypeElement)element).Type;
}
public int IndexOf (TypeElement element)
{
return BaseIndexOf (element);
}
public void Remove (TypeElement element)
{
BaseRemove (element.Type);
}
public void RemoveAt (int index)
{
BaseRemoveAt (index);
}
[MonoTODO ("is this right?")]
public void RemoveAt (object key)
{
BaseRemove (key);
}
public TypeElement this [int index] {
get { return (TypeElement)BaseGet (index); }
set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
}
public TypeElement this [object key] {
get { return (TypeElement)BaseGet (key); }
set {
TypeElement el = (TypeElement)BaseGet (key);
if (el == null) {
BaseAdd (value);
return;
}
int index = IndexOf (el);
BaseRemoveAt (index);
BaseAdd (index, value);
}
}
}
}

View File

@@ -1,80 +0,0 @@
//
// TypeTypeConverter.cs
//
// Author:
// Atsushi Enomoto (atsushi@ximian.com)
//
// (C) 2007 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.ComponentModel;
using System.Globalization;
using System.Security.Permissions;
namespace System.Web.Services.Configuration
{
internal class TypeTypeConverter : TypeConverter
{
public override bool CanConvertFrom (ITypeDescriptorContext context, Type type)
{
return type == typeof (Type) || type == typeof (string);
}
public override bool CanConvertTo (ITypeDescriptorContext context, Type type)
{
return type == typeof (Type) || type == typeof (string);
}
public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
{
if (value == null)
throw new ArgumentNullException ("value");
if (value is Type)
return (Type) value;
else if (value is string)
return Type.GetType ((string) value);
else
throw new ArgumentException (String.Format ("Incompatible input value type: {0}", value.GetType ()));
}
public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value == null)
throw new ArgumentNullException ("value");
if (destinationType == null)
throw new ArgumentNullException ("destinationType");
if (destinationType == typeof (Type))
return (Type) value;
if (destinationType == typeof (string))
return ((Type) value).AssemblyQualifiedName;
else
throw new ArgumentException (String.Format ("Incompatible input destination type: {0}", destinationType));
}
}
}

View File

@@ -1,46 +0,0 @@
//
// System.Web.Services.Configuration.WebServiceProtocols
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Web.Services.Configuration {
[Flags]
public enum WebServiceProtocols {
Unknown = 0,
HttpSoap = 1,
HttpGet = 1 << 1,
HttpPost = 1 << 2,
Documentation = 1 << 3,
HttpPostLocalhost = 1 << 4,
HttpSoap12 = 1 << 5,
AnyHttpSoap = HttpSoap | HttpSoap12
}
}

View File

@@ -1,497 +0,0 @@
//
// System.Web.Services.Configuration.WebServicesConfigurationSectionHandler
//
// Authors:
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// (C) 2003 Ximian, Inc (http://www.ximian.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Configuration;
using System.Xml;
namespace System.Web.Services.Configuration
{
[Flags]
enum WSProtocol
{
HttpSoap = 1,
HttpPost = 1 << 1,
HttpGet = 1 << 2,
Documentation = 1 << 3,
HttpSoap12 = 1 << 4,
HttpPostLocalhost = 1 << 5,
AnyHttpSoap = HttpSoap | HttpSoap12,
All = 0xFF
}
class WSConfig
{
volatile static WSConfig instance;
WSProtocol protocols;
string wsdlHelpPage;
string filePath;
ArrayList extensionTypes = new ArrayList();
ArrayList extensionImporterTypes = new ArrayList();
ArrayList extensionReflectorTypes = new ArrayList();
ArrayList formatExtensionTypes = new ArrayList();
static readonly object lockobj = new object ();
public WSConfig (WSConfig parent, object context)
{
if (parent == null)
return;
protocols = parent.protocols;
wsdlHelpPage = parent.wsdlHelpPage;
if (wsdlHelpPage != null)
filePath = parent.filePath;
else
filePath = context as string;
}
static WSProtocol ParseProtocol (string protoName, out string error)
{
WSProtocol proto;
error = null;
try {
proto = (WSProtocol) Enum.Parse (typeof (WSProtocol), protoName);
} catch {
error = "Invalid protocol name";
return 0;
}
return proto;
}
// Methods to modify configuration values
public bool AddProtocol (string protoName, out string error)
{
if (protoName == "All") {
error = "Invalid protocol name";
return false;
}
WSProtocol proto = ParseProtocol (protoName, out error);
if (error != null)
return false;
protocols |= proto;
return true;
}
public bool RemoveProtocol (string protoName, out string error)
{
if (protoName == "All") {
error = "Invalid protocol name";
return false;
}
WSProtocol proto = ParseProtocol (protoName, out error);
if (error != null)
return false;
protocols &= ~proto;
return true;
}
public void ClearProtocol ()
{
protocols = 0;
}
// Methods to query/get configuration
public static bool IsSupported (WSProtocol proto)
{
return ((Instance.protocols & proto) == proto && (proto != 0) && (proto != WSProtocol.All));
}
// Properties
public string WsdlHelpPage {
get { return wsdlHelpPage; }
set { wsdlHelpPage = value; }
}
public string ConfigFilePath {
get { return filePath; }
set { filePath = value; }
}
static public WSConfig Instance {
get {
//TODO: use HttpContext to get the configuration
if (instance != null)
return instance;
lock (lockobj) {
if (instance != null)
return instance;
instance = (WSConfig) ConfigurationSettings.GetConfig ("system.web/webServices");
}
return instance;
}
}
public ArrayList ExtensionTypes {
get { return extensionTypes; }
}
public ArrayList ExtensionImporterTypes {
get { return extensionImporterTypes; }
}
public ArrayList ExtensionReflectorTypes {
get { return extensionReflectorTypes; }
}
public ArrayList FormatExtensionTypes {
get { return formatExtensionTypes; }
}
}
enum WSExtensionGroup
{
High,
Low
}
class WSExtensionConfig
{
Type type;
int priority;
WSExtensionGroup group;
public Exception SetType (string typeName)
{
Exception exc = null;
try {
type = Type.GetType (typeName, true);
} catch (Exception e) {
exc = e;
}
return exc;
}
public Exception SetPriority (string prio)
{
if (prio == null || prio == "")
return null;
Exception exc = null;
try {
priority = Int32.Parse (prio);
} catch (Exception e) {
exc = e;
}
return exc;
}
public Exception SetGroup (string grp)
{
if (grp == null || grp == "")
return null;
Exception exc = null;
try {
group = (WSExtensionGroup) Int32.Parse (grp);
if (group < WSExtensionGroup.High || group > WSExtensionGroup.Low)
throw new ArgumentOutOfRangeException ("group", "Must be 0 or 1");
} catch (Exception e) {
exc = e;
}
return exc;
}
// Getters
public Type Type {
get { return type; }
}
public int Priority {
get { return priority; }
}
public WSExtensionGroup Group {
get { return group; }
}
}
class WebServicesConfigurationSectionHandler : IConfigurationSectionHandler
{
public object Create (object parent, object context, XmlNode section)
{
WSConfig config = new WSConfig (parent as WSConfig, context);
if (section.Attributes != null && section.Attributes.Count != 0)
ThrowException ("Unrecognized attribute", section);
XmlNodeList nodes = section.ChildNodes;
foreach (XmlNode child in nodes) {
XmlNodeType ntype = child.NodeType;
if (ntype == XmlNodeType.Whitespace || ntype == XmlNodeType.Comment)
continue;
if (ntype != XmlNodeType.Element)
ThrowException ("Only elements allowed", child);
string name = child.Name;
if (name == "protocols") {
ConfigProtocols (child, config);
continue;
}
if (name == "soapExtensionTypes") {
ConfigSoapExtensionTypes (child, config.ExtensionTypes);
continue;
}
if (name == "soapExtensionReflectorTypes") {
ConfigSoapExtensionTypes (child, config.ExtensionReflectorTypes);
continue;
}
if (name == "soapExtensionImporterTypes") {
ConfigSoapExtensionTypes (child, config.ExtensionImporterTypes);
continue;
}
if (name == "serviceDescriptionFormatExtensionTypes") {
ConfigFormatExtensionTypes (child, config);
continue;
}
if (name == "wsdlHelpGenerator") {
string href = AttValue ("href", child, false);
if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
config.ConfigFilePath = context as string;
config.WsdlHelpPage = href;
continue;
}
ThrowException ("Unexpected element", child);
}
return config;
}
static void ConfigProtocols (XmlNode section, WSConfig config)
{
if (section.Attributes != null && section.Attributes.Count != 0)
ThrowException ("Unrecognized attribute", section);
XmlNodeList nodes = section.ChildNodes;
foreach (XmlNode child in nodes) {
XmlNodeType ntype = child.NodeType;
if (ntype == XmlNodeType.Whitespace || ntype == XmlNodeType.Comment)
continue;
if (ntype != XmlNodeType.Element)
ThrowException ("Only elements allowed", child);
string name = child.Name;
string error;
if (name == "add") {
string protoName = AttValue ("name", child, false);
if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
if (!config.AddProtocol (protoName, out error))
ThrowException (error, child);
continue;
}
if (name == "remove") {
string protoName = AttValue ("name", child, false);
if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
if (!config.RemoveProtocol (protoName, out error))
ThrowException (error, child);
continue;
}
if (name == "clear") {
if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
config.ClearProtocol ();
continue;
}
ThrowException ("Unexpected element", child);
}
}
static void ConfigSoapExtensionTypes (XmlNode section, ArrayList extensions)
{
if (section.Attributes != null && section.Attributes.Count != 0)
ThrowException ("Unrecognized attribute", section);
XmlNodeList nodes = section.ChildNodes;
foreach (XmlNode child in nodes) {
XmlNodeType ntype = child.NodeType;
if (ntype == XmlNodeType.Whitespace || ntype == XmlNodeType.Comment)
continue;
if (ntype != XmlNodeType.Element)
ThrowException ("Only elements allowed", child);
string name = child.Name;
if (name == "add") {
string seType = AttValue ("type", child, false);
string priority = AttValue ("priority", child);
string group = AttValue ("group", child);
if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
WSExtensionConfig wse = new WSExtensionConfig ();
Exception e = wse.SetType (seType);
if (e != null)
ThrowException (e.Message, child);
e = wse.SetPriority (priority);
if (e != null)
ThrowException (e.Message, child);
e = wse.SetGroup (group);
if (e != null)
ThrowException (e.Message, child);
extensions.Add (wse);
continue;
}
ThrowException ("Unexpected element", child);
}
}
static void ConfigFormatExtensionTypes (XmlNode section, WSConfig config)
{
if (section.Attributes != null && section.Attributes.Count != 0)
ThrowException ("Unrecognized attribute", section);
XmlNodeList nodes = section.ChildNodes;
foreach (XmlNode child in nodes) {
XmlNodeType ntype = child.NodeType;
if (ntype == XmlNodeType.Whitespace || ntype == XmlNodeType.Comment)
continue;
if (ntype != XmlNodeType.Element)
ThrowException ("Only elements allowed", child);
string name = child.Name;
if (name == "add") {
string typeName = AttValue ("name", child, false);
if (child.Attributes != null && child.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", child);
try {
config.FormatExtensionTypes.Add (Type.GetType (typeName, true));
} catch (Exception e) {
ThrowException (e.Message, child);
}
continue;
}
ThrowException ("Unexpected element", child);
}
}
// To save some typing...
static string AttValue (string name, XmlNode node, bool optional)
{
return HandlersUtil.ExtractAttributeValue (name, node, optional);
}
static string AttValue (string name, XmlNode node)
{
return HandlersUtil.ExtractAttributeValue (name, node, true);
}
static void ThrowException (string message, XmlNode node)
{
HandlersUtil.ThrowException (message, node);
}
//
}
class HandlersUtil
{
private HandlersUtil ()
{
}
static internal string ExtractAttributeValue (string attKey, XmlNode node)
{
return ExtractAttributeValue (attKey, node, false);
}
static internal string ExtractAttributeValue (string attKey, XmlNode node, bool optional)
{
if (node.Attributes == null) {
if (optional)
return null;
ThrowException ("Required attribute not found: " + attKey, node);
}
XmlNode att = node.Attributes.RemoveNamedItem (attKey);
if (att == null) {
if (optional)
return null;
ThrowException ("Required attribute not found: " + attKey, node);
}
string value = att.Value;
if (value == String.Empty) {
string opt = optional ? "Optional" : "Required";
ThrowException (opt + " attribute is empty: " + attKey, node);
}
return value;
}
static internal void ThrowException (string msg, XmlNode node)
{
if (node != null && node.Name != String.Empty)
msg = msg + " (node name: " + node.Name + ") ";
throw new ConfigurationException (msg, node);
}
}
}

View File

@@ -1,191 +0,0 @@
//
// System.Web.Services.Configuration.WebServicesSection
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2005 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.Web.Configuration;
namespace System.Web.Services.Configuration
{
public sealed class WebServicesSection : ConfigurationSection
{
static ConfigurationProperty conformanceWarningsProp;
static ConfigurationProperty diagnosticsProp;
static ConfigurationProperty protocolsProp;
static ConfigurationProperty serviceDescriptionFormatExtensionTypesProp;
static ConfigurationProperty soapEnvelopeProcessingProp;
static ConfigurationProperty soapExtensionImporterTypesProp;
static ConfigurationProperty soapExtensionReflectorTypesProp;
static ConfigurationProperty soapExtensionTypesProp;
static ConfigurationProperty soapServerProtocolFactoryProp;
static ConfigurationProperty soapTransportImporterTypesProp;
static ConfigurationProperty wsdlHelpGeneratorProp;
static ConfigurationPropertyCollection properties;
static WebServicesSection ()
{
conformanceWarningsProp = new ConfigurationProperty ("conformanceWarnings", typeof (WsiProfilesElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
diagnosticsProp = new ConfigurationProperty ("diagnostics", typeof (DiagnosticsElement), null,
null, null, ConfigurationPropertyOptions.None);
protocolsProp = new ConfigurationProperty ("protocols", typeof (ProtocolElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
serviceDescriptionFormatExtensionTypesProp = new ConfigurationProperty ("serviceDescriptionFormatExtensionTypes", typeof (TypeElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
soapEnvelopeProcessingProp = new ConfigurationProperty ("soapEnvelopeProcessing", typeof (SoapEnvelopeProcessingElement), null,
null, null, ConfigurationPropertyOptions.None);
soapExtensionImporterTypesProp = new ConfigurationProperty ("soapExtensionImporterTypes", typeof (TypeElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
soapExtensionReflectorTypesProp = new ConfigurationProperty ("soapExtensionReflectorTypes", typeof (TypeElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
soapExtensionTypesProp = new ConfigurationProperty ("soapExtensionTypes", typeof (SoapExtensionTypeElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
soapServerProtocolFactoryProp = new ConfigurationProperty ("soapServerProtocolFactory", typeof (TypeElement), null,
null, null, ConfigurationPropertyOptions.None);
soapTransportImporterTypesProp = new ConfigurationProperty ("soapTransportImporterTypes", typeof (TypeElementCollection), null,
null, null, ConfigurationPropertyOptions.None);
wsdlHelpGeneratorProp = new ConfigurationProperty ("wsdlHelpGenerator", typeof (WsdlHelpGeneratorElement), null,
null, null, ConfigurationPropertyOptions.None);
properties = new ConfigurationPropertyCollection ();
properties.Add (conformanceWarningsProp);
properties.Add (diagnosticsProp);
properties.Add (protocolsProp);
properties.Add (serviceDescriptionFormatExtensionTypesProp);
properties.Add (soapEnvelopeProcessingProp);
properties.Add (soapExtensionImporterTypesProp);
properties.Add (soapExtensionReflectorTypesProp);
properties.Add (soapExtensionTypesProp);
properties.Add (soapServerProtocolFactoryProp);
properties.Add (soapTransportImporterTypesProp);
properties.Add (wsdlHelpGeneratorProp);
}
public static WebServicesSection GetSection (System.Configuration.Configuration config)
{
return (WebServicesSection) config.GetSection ("webServices");
}
protected override void InitializeDefault ()
{
}
protected override void Reset (ConfigurationElement parentElement)
{
base.Reset (parentElement);
}
[ConfigurationProperty ("conformanceWarnings")]
public WsiProfilesElementCollection ConformanceWarnings {
get { return (WsiProfilesElementCollection) base [conformanceWarningsProp];}
}
public DiagnosticsElement Diagnostics {
get { return (DiagnosticsElement) base [diagnosticsProp]; }
set { base[diagnosticsProp] = value; }
}
[MonoTODO]
WebServiceProtocols enabledProtocols = WebServiceProtocols.Unknown;
public WebServiceProtocols EnabledProtocols {
get {
if (enabledProtocols == WebServiceProtocols.Unknown) {
foreach (ProtocolElement el in Protocols)
enabledProtocols |= el.Name;
}
return enabledProtocols;
}
}
[ConfigurationProperty ("protocols")]
public ProtocolElementCollection Protocols {
get { return (ProtocolElementCollection) base [protocolsProp];}
}
[ConfigurationProperty ("serviceDescriptionFormatExtensionTypes")]
public TypeElementCollection ServiceDescriptionFormatExtensionTypes {
get { return (TypeElementCollection) base [serviceDescriptionFormatExtensionTypesProp];}
}
[ConfigurationProperty ("soapEnvelopeProcessing")]
public SoapEnvelopeProcessingElement SoapEnvelopeProcessing {
get { return (SoapEnvelopeProcessingElement) base [soapEnvelopeProcessingProp];}
set { base[soapEnvelopeProcessingProp] = value; }
}
[ConfigurationProperty ("soapExtensionImporterTypes")]
public TypeElementCollection SoapExtensionImporterTypes {
get { return (TypeElementCollection) base [soapExtensionImporterTypesProp];}
}
[ConfigurationProperty ("soapExtensionReflectorTypes")]
public TypeElementCollection SoapExtensionReflectorTypes {
get { return (TypeElementCollection) base [soapExtensionReflectorTypesProp];}
}
[ConfigurationProperty ("soapExtensionTypes")]
public SoapExtensionTypeElementCollection SoapExtensionTypes {
get { return (SoapExtensionTypeElementCollection) base [soapExtensionTypesProp];}
}
[ConfigurationProperty ("soapServerProtocolFactory")]
public TypeElement SoapServerProtocolFactoryType {
get { return (TypeElement) base [soapServerProtocolFactoryProp];}
}
[ConfigurationProperty("soapTransportImporterTypes")]
public TypeElementCollection SoapTransportImporterTypes {
get { return (TypeElementCollection) base [soapTransportImporterTypesProp];}
}
[ConfigurationProperty ("wsdlHelpGenerator")]
public WsdlHelpGeneratorElement WsdlHelpGenerator {
get { return (WsdlHelpGeneratorElement) base [wsdlHelpGeneratorProp];}
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
public static WebServicesSection Current {
get { return (WebServicesSection) ConfigurationManager.GetSection ("system.web/webServices"); }
}
internal static bool IsSupported (WebServiceProtocols proto)
{
return ((Current.EnabledProtocols & proto) == proto && (proto != WebServiceProtocols.Unknown));
}
}
}

View File

@@ -1,82 +0,0 @@
//
// System.Web.Services.Configuration.WsdlHelpGeneratorElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.Xml;
namespace System.Web.Services.Configuration {
public sealed class WsdlHelpGeneratorElement : ConfigurationElement
{
static ConfigurationProperty hrefProp;
static ConfigurationPropertyCollection properties;
static WsdlHelpGeneratorElement ()
{
hrefProp = new ConfigurationProperty ("href", typeof (string), null, ConfigurationPropertyOptions.IsRequired);
properties = new ConfigurationPropertyCollection ();
properties.Add (hrefProp);
}
public WsdlHelpGeneratorElement ()
{
}
[MonoTODO ("probably verifies the Href property here, after deserializing?")]
protected override void DeserializeElement (XmlReader reader, bool serializeCollectionKey)
{
base.DeserializeElement (reader, serializeCollectionKey);
}
[MonoTODO]
protected override void Reset (ConfigurationElement parentElement)
{
base.Reset (parentElement);
}
[ConfigurationProperty ("href", Options = ConfigurationPropertyOptions.IsRequired)]
public string Href {
get { return (string) base [hrefProp];}
set { base[hrefProp] = value; }
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,78 +0,0 @@
//
// System.Web.Services.Configuration.WsiProfilesElement
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Configuration;
using System.Web.Services;
namespace System.Web.Services.Configuration {
public sealed class WsiProfilesElement : ConfigurationElement
{
static ConfigurationProperty nameProp;
static ConfigurationPropertyCollection properties;
static WsiProfilesElement ()
{
nameProp = new ConfigurationProperty ("name", typeof (WsiProfiles), WsiProfiles.None,
new GenericEnumConverter (typeof (WsiProfiles)),
null,
ConfigurationPropertyOptions.IsKey);
properties = new ConfigurationPropertyCollection ();
properties.Add (nameProp);
}
public WsiProfilesElement (WsiProfiles name)
{
this.Name = name;
}
public WsiProfilesElement ()
{
}
[ConfigurationProperty ("name", DefaultValue = "None", Options = ConfigurationPropertyOptions.IsKey)]
public WsiProfiles Name {
get { return (WsiProfiles) base [nameProp];}
set { base[nameProp] = value; }
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
}
}

View File

@@ -1,117 +0,0 @@
//
// System.Web.Services.Configuration.WsiProfilesElementCollection
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
// (C) 2006 Novell, Inc (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Configuration;
namespace System.Web.Services.Configuration {
[ConfigurationCollection (typeof (WsiProfilesElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
public sealed class WsiProfilesElementCollection : ConfigurationElementCollection
{
public void Add (WsiProfilesElement element)
{
BaseAdd (element);
}
public void Clear ()
{
BaseClear ();
}
public bool ContainsKey (object key)
{
return (BaseGet (key) != null);
}
public void CopyTo (WsiProfilesElement[] array, int index)
{
((ICollection)this).CopyTo (array, index);
}
protected override ConfigurationElement CreateNewElement ()
{
return new WsiProfilesElement ();
}
protected override object GetElementKey (ConfigurationElement element)
{
return ((WsiProfilesElement)element).Name;
}
public int IndexOf (WsiProfilesElement element)
{
return BaseIndexOf (element);
}
public void Remove (WsiProfilesElement element)
{
BaseRemove (element.Name);
}
public void RemoveAt (int index)
{
BaseRemoveAt (index);
}
[MonoTODO ("is this right?")]
public void RemoveAt (object key)
{
BaseRemove (key);
}
[MonoTODO]
public WsiProfilesElement this [int index] {
get { return (WsiProfilesElement)BaseGet (index); }
set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
}
[MonoTODO]
public WsiProfilesElement this [object key] {
get { return (WsiProfilesElement)BaseGet (key); }
set {
WsiProfilesElement el = (WsiProfilesElement)BaseGet (key);
if (el == null) {
BaseAdd (value);
return;
}
int index = IndexOf (el);
BaseRemoveAt (index);
BaseAdd (index, value);
}
}
}
}

View File

@@ -1,79 +0,0 @@
//
// System.Web.Services.Description.BasicProfileViolation.cs
//
// Author:
// Lluis Sanchez (lluis@novell.com)
//
// Copyright (C) Novell, Inc., 2004
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Collections.Specialized;
using System.Web.Services;
namespace System.Web.Services.Description
{
public class BasicProfileViolation
{
WsiProfiles _claims;
StringCollection _elements;
ConformanceRule _rule;
internal BasicProfileViolation (WsiProfiles claims, ConformanceRule rule)
{
_claims = claims;
_rule = rule;
_elements = new StringCollection ();
}
public WsiProfiles Claims {
get { return _claims; }
}
public string Details {
get { return _rule.Details; }
}
public StringCollection Elements {
get { return _elements; }
}
public string NormativeStatement {
get { return _rule.NormativeStatement ; }
}
public string Recommendation {
get { return _rule.Recommendation; }
}
public override string ToString ()
{
string res = NormativeStatement + ": " + Details;
foreach (string s in Elements)
res += "\n - " + s;
return res;
}
}
}

Some files were not shown because too many files have changed in this diff Show More