다음을 통해 공유


ServiceDescriptionImportWarnings 열거형

정의

Import(CodeNamespace, CodeCompileUnit)에서 생성하는 경고 형식을 지정합니다.

이 열거형은 멤버 값의 비트 조합을 지원합니다.

public enum class ServiceDescriptionImportWarnings
public enum ServiceDescriptionImportWarnings
[System.Flags]
public enum ServiceDescriptionImportWarnings
type ServiceDescriptionImportWarnings = 
[<System.Flags>]
type ServiceDescriptionImportWarnings = 
Public Enum ServiceDescriptionImportWarnings
상속
ServiceDescriptionImportWarnings
특성

필드

NoCodeGenerated 1

Import(CodeNamespace, CodeCompileUnit) 메서드에서 생성한 프록시 클래스에 메서드가 포함되지 않도록 지정합니다.

NoMethodsGenerated 32

Import(CodeNamespace, CodeCompileUnit) 메서드에서 생성한 프록시 클래스에 메서드가 없음을 지정합니다.

OptionalExtensionsIgnored 2

가져올 ServiceDescriptionFormatExtension에 대한 선택적 ServiceDescription이 하나 이상 무시되었음을 지정합니다.

RequiredExtensionsIgnored 4

가져올 ServiceDescriptionFormatExtension에 대한 필수 ServiceDescription이 하나 이상 무시되었음을 지정합니다.

SchemaValidation 64

ServiceDescription 스키마가 잘못되어 있음을 나타냅니다.

UnsupportedBindingsIgnored 16

가져올 Binding에 대한 ServiceDescription 중 하나 이상이 지원되지 않는 형식이며 무시되었음을 지정합니다.

UnsupportedOperationsIgnored 8

가져올 Operation에 대한 ServiceDescription 중 하나 이상이 지원되지 않는 형식이며 무시되었음을 지정합니다.

WsiConformance 128

가져올 ServiceDescription이 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 );
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)

적용 대상