This documentation is archived and is not being maintained.

ServiceDescriptionImportWarnings Enumeration

Specifies the type of warnings produced by Import.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

'Declaration
<FlagsAttribute> _
Public Enumeration ServiceDescriptionImportWarnings
'Usage
Dim instance As ServiceDescriptionImportWarnings

Member nameDescription
NoCodeGeneratedSpecifies that no proxy class was generated by the Import method.
OptionalExtensionsIgnoredSpecifies that at least one optional ServiceDescriptionFormatExtension for the ServiceDescription to be imported has been ignored.
RequiredExtensionsIgnoredSpecifies that at least one required ServiceDescriptionFormatExtension for the ServiceDescription to be imported has been ignored.
UnsupportedOperationsIgnoredSpecifies that at least one Operation for the ServiceDescription to be imported is of an unsupported type and has been ignored.
UnsupportedBindingsIgnoredSpecifies that at least one Binding for the ServiceDescription to be imported is of an unsupported type and has been ignored.
NoMethodsGeneratedSpecifies that the proxy class generated by the Import method includes no methods.
SchemaValidationSpecifies that the ServiceDescription schema is invalid.
WsiConformanceSpecifies that the ServiceDescription to be imported does not conform to the WS-I Basic Profile.

Dim myDisplay As [String]
' Read wsdl file. 
Dim myServiceDescription As ServiceDescription = ServiceDescription.Read(myWSDLFileName)

Dim myServiceDescriptionImporter As New ServiceDescriptionImporter()

' Add 'myServiceDescription' to 'myServiceDescriptionImporter'.
myServiceDescriptionImporter.AddServiceDescription(myServiceDescription, "", "")

myServiceDescriptionImporter.ProtocolName = "HttpGet" 
Dim myCodeNamespace As New CodeNamespace()
Dim myCodeCompileUnit As New CodeCompileUnit()

' Invoke 'Import' method. 
Dim myWarning As ServiceDescriptionImportWarnings = myServiceDescriptionImporter.Import(myCodeNamespace, myCodeCompileUnit)

Select Case myWarning
   Case ServiceDescriptionImportWarnings.NoCodeGenerated
      myDisplay = "NoCodeGenerated" 
   Case ServiceDescriptionImportWarnings.NoMethodsGenerated
      myDisplay = "NoMethodsGenerated" 
   Case ServiceDescriptionImportWarnings.UnsupportedOperationsIgnored
      myDisplay = "UnsupportedOperationsIgnored" 
   Case ServiceDescriptionImportWarnings.OptionalExtensionsIgnored
      myDisplay = "OptionalExtensionsIgnored" 
   Case ServiceDescriptionImportWarnings.RequiredExtensionsIgnored
      myDisplay = "RequiredExtensionsIgnored" 
   Case ServiceDescriptionImportWarnings.UnsupportedBindingsIgnored
      myDisplay = "UnsupportedBindingsIgnored" 
   Case Else
      myDisplay = "General Warning" 
End Select
Console.WriteLine("Warning : " + myDisplay)
String* myDisplay;
// Read wsdl file.
ServiceDescription* myServiceDescription = 
   ServiceDescription::Read(myWSDLFileName);

ServiceDescriptionImporter* myServiceDescriptionImporter = 
   new ServiceDescriptionImporter();

// Add 'myServiceDescription' to 'myServiceDescriptionImporter'.
myServiceDescriptionImporter->AddServiceDescription
   (myServiceDescription, S"", S"");

myServiceDescriptionImporter->ProtocolName = S"HttpGet";
CodeNamespace* myCodeNamespace = new CodeNamespace();
CodeCompileUnit* myCodeCompileUnit = new CodeCompileUnit();

// Invoke 'Import' method.
ServiceDescriptionImportWarnings myWarning =
   myServiceDescriptionImporter->Import(myCodeNamespace,
   myCodeCompileUnit);

switch(myWarning) 
{
case ServiceDescriptionImportWarnings::NoCodeGenerated :
   myDisplay=S"NoCodeGenerated";
   break;
case ServiceDescriptionImportWarnings::NoMethodsGenerated :
   myDisplay=S"NoMethodsGenerated";
   break;
case ServiceDescriptionImportWarnings::UnsupportedOperationsIgnored :
   myDisplay=S"UnsupportedOperationsIgnored";
   break;
case ServiceDescriptionImportWarnings::OptionalExtensionsIgnored :
   myDisplay=S"OptionalExtensionsIgnored";
   break;
case ServiceDescriptionImportWarnings::RequiredExtensionsIgnored :
   myDisplay=S"RequiredExtensionsIgnored";
   break;
case ServiceDescriptionImportWarnings::UnsupportedBindingsIgnored :
   myDisplay=S"UnsupportedBindingsIgnored";
   break;
default :
   myDisplay=S"General Warning";
   break;
}
Console::WriteLine (S"Warning : {0}", myDisplay);

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: