ServiceDescription 클래스

정의

적절한 네임스페이스, 요소 및 특성을 완성하여 XML Web services를 설명하기 위한 올바른 WSDL(웹 서비스 설명 언어) 문서 파일을 만들고 형식 지정하는 방법을 제공합니다. 이 클래스는 상속될 수 없습니다.

public ref class ServiceDescription sealed : System::Web::Services::Description::DocumentableItem
public ref class ServiceDescription sealed : System::Web::Services::Description::NamedItem
[System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")]
public sealed class ServiceDescription : System.Web.Services.Description.DocumentableItem
[System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")]
public sealed class ServiceDescription : System.Web.Services.Description.NamedItem
[<System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")>]
type ServiceDescription = class
    inherit DocumentableItem
[<System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")>]
type ServiceDescription = class
    inherit NamedItem
Public NotInheritable Class ServiceDescription
Inherits DocumentableItem
Public NotInheritable Class ServiceDescription
Inherits NamedItem
상속
ServiceDescription
상속
ServiceDescription
특성

예제

다음 예제에서는 ServiceDescription 클래스의 인스턴스를 만드는 방법을 보여 줍니다.

// Obtain the ServiceDescription of existing Wsdl.
ServiceDescription^ myDescription = ServiceDescription::Read( "MyWsdl_CS.wsdl" );

// Remove the Binding from the Binding Collection of ServiceDescription.
BindingCollection^ myBindingCollection = myDescription->Bindings;
myBindingCollection->Remove( myBindingCollection[ 0 ] );

// Form a new Binding.
Binding^ myBinding = gcnew Binding;
myBinding->Name = "Service1Soap";
XmlQualifiedName^ myXmlQualifiedName = gcnew XmlQualifiedName( "s0:Service1Soap" );
myBinding->Type = myXmlQualifiedName;
SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
OperationBinding^ addOperationBinding = CreateOperationBinding( "Add", myDescription->TargetNamespace );
myBinding->Operations->Add( addOperationBinding );
myBinding->Extensions->Add( mySoapBinding );

// Add the Binding to the ServiceDescription.
myDescription->Bindings->Add( myBinding );
myDescription->Write( "MyOutWsdl.wsdl" );
// Obtain the ServiceDescription of existing Wsdl.
ServiceDescription myDescription = ServiceDescription.Read("MyWsdl_CS.wsdl");
// Remove the Binding from the Binding Collection of ServiceDescription.
BindingCollection myBindingCollection = myDescription.Bindings;
myBindingCollection.Remove(myBindingCollection[0]);

// Form a new Binding.
Binding myBinding = new Binding();
myBinding.Name = "Service1Soap";
XmlQualifiedName myXmlQualifiedName =
                     new XmlQualifiedName("s0:Service1Soap");
myBinding.Type = myXmlQualifiedName;

SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;

OperationBinding addOperationBinding =
       CreateOperationBinding("Add",myDescription.TargetNamespace);
myBinding.Operations.Add(addOperationBinding);
myBinding.Extensions.Add(mySoapBinding);

// Add the Binding to the ServiceDescription.
myDescription.Bindings.Add(myBinding);
myDescription.Write("MyOutWsdl.wsdl");
' Obtain the ServiceDescription of existing Wsdl.
Dim myDescription As ServiceDescription = ServiceDescription.Read("MyWsdl_VB.wsdl")
' Remove the Binding from the Binding Collection of ServiceDescription.
Dim myBindingCollection As BindingCollection = myDescription.Bindings
myBindingCollection.Remove(myBindingCollection(0))

' Form a new Binding.
Dim myBinding As New Binding()
myBinding.Name = "Service1Soap"
Dim myXmlQualifiedName As New XmlQualifiedName("s0:Service1Soap")
myBinding.Type = myXmlQualifiedName

Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document

Dim addOperationBinding As OperationBinding = CreateOperationBinding("Add", _
                                             myDescription.TargetNamespace)
myBinding.Operations.Add(addOperationBinding)
myBinding.Extensions.Add(mySoapBinding)

' Add the Binding to the ServiceDescription.
myDescription.Bindings.Add(myBinding)
myDescription.Write("MyOutWsdl.wsdl")

설명

이 클래스의 인스턴스는 WSDL 파일을 구문 분석하고 해당 값을 클래스의 적절한 멤버에 할당하는 키워드 또는 정적 Read 메서드를 사용하여 만들 new 수 있습니다.

WSDL은 XML 웹 서비스를 설명하는 XML 기반 언어입니다. 클래스는 ServiceDescription WSDL 파일의 루트 요소 definitions에 해당합니다. WSDL에 대한 자세한 내용은 WSDL 사양을 참조하세요.

생성자

ServiceDescription()

ServiceDescription 클래스의 새 인스턴스를 초기화합니다.

필드

Namespace

ServiceDescription 클래스가 정의된 XML 네임스페이스입니다(“http://schemas.xmlsoap.org/wsdl/”). 이 필드는 상수입니다.

속성

Bindings

Binding에 포함된 ServiceDescription 요소의 컬렉션을 가져옵니다.

Documentation

DocumentableItem 인스턴스에 대한 텍스트 설명서를 가져오거나 설정합니다.

(다음에서 상속됨 DocumentableItem)
DocumentationElement

DocumentableItem에 대한 설명서 요소를 가져오거나 설정합니다.

(다음에서 상속됨 DocumentableItem)
ExtensibleAttributes

WS-I(Web Services Interoperability) Basic Profile 1.1을 따르는 WSDL의 특성 확장을 나타내는 XmlAttribute 형식의 배열을 가져오거나 설정합니다.

(다음에서 상속됨 DocumentableItem)
Extensions

ServiceDescription에 포함된 확장성 요소의 컬렉션을 가져옵니다.

Imports

Import에 포함된 ServiceDescription 요소의 컬렉션을 가져옵니다.

Messages

Message에 포함된 ServiceDescription 요소의 컬렉션을 가져옵니다.

Name

WSDL(웹 서비스 기술 언어) 파일을 묶는 descriptions 태그의 XML 이름 특성을 가져오거나 설정합니다.

Name

항목의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 NamedItem)
Namespaces

ServiceDescription 개체가 생성될 때 네임스페이스 접두사와 네임스페이스를 유지하는 데 사용되는 네임스페이스 접두사와 네임스페이스의 사전을 가져오거나 설정합니다.

(다음에서 상속됨 DocumentableItem)
PortTypes

PortType에 포함된 ServiceDescription 요소의 컬렉션을 가져옵니다.

RetrievalUrl

ServiceDescription 인스턴스를 적용할 XML Web services의 URL을 가져오거나 설정합니다.

Schema

ServiceDescription과 연결된 스키마를 가져옵니다.

Serializer

ServiceDescription 개체와 WSDL(웹 서비스 설명 언어) 문서를 직렬화 및 역직렬화하는 데 사용되는 XML 직렬 변환기를 가져옵니다.

ServiceDescriptions

ServiceDescriptionCollection이 멤버인 ServiceDescription 인스턴스를 가져옵니다.

Services

Service에 포함된 ServiceDescription 인스턴스의 컬렉션을 가져옵니다.

TargetNamespace

WSDL(웹 서비스 설명 언어) 파일을 묶는 targetNamespace 태그의 XML descriptions 특성을 가져오거나 설정합니다.

Types

Types에 포함된 ServiceDescription를 가져오거나 설정합니다.

ValidationWarnings

validate 매개 변수가 true로 설정된 StringCollection, Read(Stream, Boolean), Read(TextReader, Boolean) 또는 Read(String, Boolean)를 호출할 때 생성된 유효성 검사 경고가 들어 있는 Read(XmlReader, Boolean)을 가져옵니다.

메서드

CanRead(XmlReader)

XmlReader가 구문 분석할 수 있는 올바른 WSDL(웹 서비스 설명 언어) 파일을 나타내는지 여부를 표시하는 값을 가져옵니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
Read(Stream)

ServiceDescription 인스턴스에서 XML을 직접 로드하여 Stream 클래스의 인스턴스를 초기화합니다.

Read(Stream, Boolean)

ServiceDescription 인스턴스에서 XML을 직접 로드하여 Stream 클래스의 인스턴스를 초기화합니다.

Read(String)

지정된 파일에서 XML을 직접 로드하여 ServiceDescription 개체의 인스턴스를 초기화합니다.

Read(String, Boolean)

지정된 파일에서 XML을 직접 로드하여 ServiceDescription 개체의 인스턴스를 초기화합니다.

Read(TextReader)

ServiceDescription에서 XML을 직접 로드하여 TextReader 클래스의 인스턴스를 초기화합니다.

Read(TextReader, Boolean)

ServiceDescription에서 XML을 직접 로드하여 TextReader 클래스의 인스턴스를 초기화합니다.

Read(XmlReader)

ServiceDescription에서 XML을 직접 로드하여 XmlReader 클래스의 인스턴스를 초기화합니다.

Read(XmlReader, Boolean)

ServiceDescription에서 XML을 직접 로드하여 XmlReader 클래스의 인스턴스를 초기화합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
Write(Stream)

ServiceDescription을 지정된 Stream에 씁니다.

Write(String)

ServiceDescription을 지정된 경로의 WSDL(웹 서비스 설명 언어) 파일로 씁니다.

Write(TextWriter)

ServiceDescriptionTextWriter에 WSDL(웹 서비스 설명 언어) 파일로 씁니다.

Write(XmlWriter)

ServiceDescriptionXmlWriter에 WSDL(웹 서비스 설명 언어) 파일로 씁니다.

적용 대상