ServiceDescriptionImportWarnings Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

<FlagsAttribute>
Public Enumeration ServiceDescriptionImportWarnings

Member nameDescription
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

Specifies that the ServiceDescription schema is invalid.

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.

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)

.NET Framework
Available since 1.1
Return to top
Show: