ServiceDescriptionImportWarnings Enumeration
.NET Framework 2.0
Specifies the type of warnings produced by Import.
Assembly: System.Web.Services (in system.web.services.dll)
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Web.Services.DescriptionAssembly: System.Web.Services (in system.web.services.dll)
| Member name | Description | |
|---|---|---|
| NoCodeGenerated | Specifies that no proxy class was generated by the Import method. | |
| NoMethodsGenerated | Specifies that the proxy class generated by the Import method includes no methods. | |
| OptionalExtensionsIgnored | Specifies that at least one optional ServiceDescriptionFormatExtension for the ServiceDescription to be imported has been ignored. | |
| RequiredExtensionsIgnored | Specifies that at least one required ServiceDescriptionFormatExtension for the ServiceDescription to be imported has been ignored. | |
| SchemaValidation | ||
| UnsupportedBindingsIgnored | Specifies that at least one Binding for the ServiceDescription to be imported is of an unsupported type and has been ignored. | |
| UnsupportedOperationsIgnored | Specifies that at least one Operation for the ServiceDescription to be imported is of an unsupported type and has been ignored. | |
| WsiConformance | Specifies that the ServiceDescription to be imported does not conform to the WS-I Basic Profile. |
String^ myDisplay; // Read wsdl file. ServiceDescription^ myServiceDescription = ServiceDescription::Read ( myWSDLFileName ); ServiceDescriptionImporter^ myServiceDescriptionImporter = gcnew ServiceDescriptionImporter; // Add 'myServiceDescription' to 'myServiceDescriptionImporter'. myServiceDescriptionImporter->AddServiceDescription ( myServiceDescription, "", "" ); myServiceDescriptionImporter->ProtocolName = "HttpGet"; CodeNamespace^ myCodeNamespace = gcnew CodeNamespace; CodeCompileUnit^ myCodeCompileUnit = gcnew CodeCompileUnit; // Invoke 'Import' method. ServiceDescriptionImportWarnings myWarning = myServiceDescriptionImporter->Import(myCodeNamespace, myCodeCompileUnit); switch ( myWarning ) { case ServiceDescriptionImportWarnings::NoCodeGenerated: myDisplay = "NoCodeGenerated"; break; case ServiceDescriptionImportWarnings::NoMethodsGenerated: myDisplay = "NoMethodsGenerated"; break; case ServiceDescriptionImportWarnings::UnsupportedOperationsIgnored: myDisplay = "UnsupportedOperationsIgnored"; break; case ServiceDescriptionImportWarnings::OptionalExtensionsIgnored: myDisplay = "OptionalExtensionsIgnored"; break; case ServiceDescriptionImportWarnings::RequiredExtensionsIgnored: myDisplay = "RequiredExtensionsIgnored"; break; case ServiceDescriptionImportWarnings::UnsupportedBindingsIgnored: myDisplay = "UnsupportedBindingsIgnored"; break; default: myDisplay = "General Warning"; break; } Console::WriteLine( "Warning : " + myDisplay );
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: