다음을 통해 공유


WSTrustServiceContract.FixMessageElement 메서드

During WSDL generation, the method fixes a given operation message element to refer to the RST and RSTR elements of the appropriate WS-Trust version.

네임스페이스: Microsoft.IdentityModel.Protocols.WSTrust
어셈블리: Microsoft.IdentityModel(microsoft.identitymodel.dll에 있음)

사용법

    Dim serviceDescription As ServiceDescription
Dim portType As PortType
Dim context As WsdlEndpointConversionContext
Dim operationName As String
Dim inputMessageElement As XmlQualifiedName
Dim outputMessageElement As XmlQualifiedName

Me.FixMessageElement(serviceDescription, portType, context, operationName, inputMessageElement, outputMessageElement)

구문

‘선언
Protected Overridable Sub FixMessageElement ( _
    serviceDescription As ServiceDescription, _
    portType As PortType, _
    context As WsdlEndpointConversionContext, _
    operationName As String, _
    inputMessageElement As XmlQualifiedName, _
    outputMessageElement As XmlQualifiedName _
)
protected virtual void FixMessageElement (
    ServiceDescription serviceDescription,
    PortType portType,
    WsdlEndpointConversionContext context,
    string operationName,
    XmlQualifiedName inputMessageElement,
    XmlQualifiedName outputMessageElement
)
protected:
virtual void FixMessageElement (
    ServiceDescription^ serviceDescription, 
    PortType^ portType, 
    WsdlEndpointConversionContext^ context, 
    String^ operationName, 
    XmlQualifiedName^ inputMessageElement, 
    XmlQualifiedName^ outputMessageElement
)
protected void FixMessageElement (
    ServiceDescription serviceDescription, 
    PortType portType, 
    WsdlEndpointConversionContext context, 
    String operationName, 
    XmlQualifiedName inputMessageElement, 
    XmlQualifiedName outputMessageElement
)
protected function FixMessageElement (
    serviceDescription : ServiceDescription, 
    portType : PortType, 
    context : WsdlEndpointConversionContext, 
    operationName : String, 
    inputMessageElement : XmlQualifiedName, 
    outputMessageElement : XmlQualifiedName
)

매개 변수

  • serviceDescription
    The ServiceDescription that has the current state of the exported WSDL.
  • portType
    The WSDL PortType whose messages are to be fixed.
  • context
    Provides mappings from exported WSDL elements to the endpoint description.
  • operationName
    The operation name inside the PortType.
  • inputMessageElement
    The XmlQualifiedName of the input message element.
  • outputMessageElement
    The XmlQualifiedName of the output message element.

예외

예외 유형 조건
ArgumentNullException

The parameter 'serviceDescription', 'portType', 'inputMessageType' or 'outputMessageType' is null.

ArgumentException

The parameter 'operationName' is null or Empty.

설명

Trust Contract exposed by the Framework takes a System.ServiceModel.Channels.Message in and returns a System.ServiceModel.Channels.Message out. But Trust messages expects and RST and returns an RSTR/RSTRC. This method fixes the message elements with the appropriate WS-Trust messages specified by the XmlQualified names 'inputMessageElement' and 'outputMessageElement'.

스레드 안전성

이 유형의 공용 정적(Visual Basic에서는 Shared) 멤버는 모두 스레드로부터 안전합니다.인스턴스 멤버는 스레드로부터 안전하지 않을 수 있습니다.

플랫폼

개발 플랫폼

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

참고 항목

참조

WSTrustServiceContract 클래스
WSTrustServiceContract 멤버
Microsoft.IdentityModel.Protocols.WSTrust 네임스페이스