ServiceDescriptionImportWarnings ServiceDescriptionImportWarnings ServiceDescriptionImportWarnings ServiceDescriptionImportWarnings Enum

Definition

Gibt den Typ der von Import(CodeNamespace, CodeCompileUnit) erstellten Warnungen an.Specifies the type of warnings produced by Import(CodeNamespace, CodeCompileUnit).

Diese Enumeration weist ein FlagsAttribute-Attribut auf, die eine bitweise Kombination der Memberwerte zulässt.

public enum class ServiceDescriptionImportWarnings
[System.Flags]
public enum ServiceDescriptionImportWarnings
type ServiceDescriptionImportWarnings = 
Public Enum ServiceDescriptionImportWarnings
Vererbung
ServiceDescriptionImportWarningsServiceDescriptionImportWarningsServiceDescriptionImportWarningsServiceDescriptionImportWarnings
Attribute

Felder

NoCodeGenerated NoCodeGenerated NoCodeGenerated NoCodeGenerated 1

Gibt an, dass von der Import(CodeNamespace, CodeCompileUnit)-Methode keine Proxyklasse generiert wurde.Specifies that no proxy class was generated by the Import(CodeNamespace, CodeCompileUnit) method.

NoMethodsGenerated NoMethodsGenerated NoMethodsGenerated NoMethodsGenerated 32

Gibt an, dass die durch die Import(CodeNamespace, CodeCompileUnit)-Methode generierte Proxyklasse keine Methoden enthält.Specifies that the proxy class generated by the Import(CodeNamespace, CodeCompileUnit) method includes no methods.

OptionalExtensionsIgnored OptionalExtensionsIgnored OptionalExtensionsIgnored OptionalExtensionsIgnored 2

Gibt an, dass mindestens eine optionale ServiceDescriptionFormatExtension für die zu importierende ServiceDescription ignoriert wurde.Specifies that at least one optional ServiceDescriptionFormatExtension for the ServiceDescription to be imported has been ignored.

RequiredExtensionsIgnored RequiredExtensionsIgnored RequiredExtensionsIgnored RequiredExtensionsIgnored 4

Gibt an, dass mindestens eine erforderliche ServiceDescriptionFormatExtension für die zu importierende ServiceDescription ignoriert wurde.Specifies that at least one required ServiceDescriptionFormatExtension for the ServiceDescription to be imported has been ignored.

SchemaValidation SchemaValidation SchemaValidation SchemaValidation 64

Gibt an, dass das ServiceDescription-Schema ungültig ist.Specifies that the ServiceDescription schema is invalid.

UnsupportedBindingsIgnored UnsupportedBindingsIgnored UnsupportedBindingsIgnored UnsupportedBindingsIgnored 16

Gibt an, dass mindestens ein Binding für die zu importierende ServiceDescription einen nicht unterstützten Typ aufweist und ignoriert wurde.Specifies that at least one Binding for the ServiceDescription to be imported is of an unsupported type and has been ignored.

UnsupportedOperationsIgnored UnsupportedOperationsIgnored UnsupportedOperationsIgnored UnsupportedOperationsIgnored 8

Gibt an, dass mindestens ein Operation für die zu importierende ServiceDescription einen nicht unterstützten Typ aufweist und ignoriert wurde.Specifies that at least one Operation for the ServiceDescription to be imported is of an unsupported type and has been ignored.

WsiConformance WsiConformance WsiConformance WsiConformance 128

Gibt an, dass die zu importierende ServiceDescription nicht dem WS-I-Basisprofil entspricht.Specifies that the ServiceDescription to be imported does not conform to the WS-I Basic Profile.

Beispiele

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 );
String myDisplay;
// Read wsdl file.
ServiceDescription myServiceDescription = ServiceDescription.Read
   (myWSDLFileName);

ServiceDescriptionImporter myServiceDescriptionImporter = new
   ServiceDescriptionImporter();

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

myServiceDescriptionImporter.ProtocolName = "HttpGet";
CodeNamespace myCodeNamespace = new CodeNamespace();
CodeCompileUnit myCodeCompileUnit = new 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);
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)

Gilt für: