다음을 통해 공유


SoapMethodAttribute.SoapAction 속성

정의

이 메서드와 함께 전송된 HTTP 요청과 함께 사용되는 SOAPAction 헤더 필드를 가져오거나 설정합니다. 이 속성은 현재 구현되지 않습니다.

public:
 property System::String ^ SoapAction { System::String ^ get(); void set(System::String ^ value); };
public string SoapAction { get; set; }
member this.SoapAction : string with get, set
Public Property SoapAction As String

속성 값

이 메서드와 함께 전송된 HTTP 요청과 함께 사용되는 SOAPAction 헤더 필드입니다.

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 SoapAction . 이 코드 예제는 클래스에 제공된 더 큰 예제의 SoapMethodAttribute 일부입니다.

[SoapMethod(
   ResponseXmlElementName="ExampleResponseElement",
   ResponseXmlNamespace=
   "http://example.org/MethodResponseXmlNamespace",
   ReturnXmlElementName="HelloMessage",
   SoapAction="http://example.org/ExampleSoapAction#GetHello",
   XmlNamespace="http://example.org/MethodCallXmlNamespace")]
String^ GetHello( String^ name )
{
   return String::Format( L"Hello, {0}", name );
}
[SoapMethod(
     ResponseXmlElementName="ExampleResponseElement",
     ResponseXmlNamespace=
        "http://example.org/MethodResponseXmlNamespace",
     ReturnXmlElementName="HelloMessage",
     SoapAction="http://example.org/ExampleSoapAction#GetHello",
     XmlNamespace="http://example.org/MethodCallXmlNamespace")]
public string GetHello(string name)
{
    return "Hello, " + name;
}

설명

이 속성은 현재 구현되지 않습니다.

SOAPAction HTTP 요청 헤더 필드는 SOAP HTTP 요청의 의도를 나타냅니다. SOAPAction 필드에 대한 자세한 내용은 W3C 사양의 SOAPAction HTTP 헤더 필드 섹션을 참조하세요.

적용 대상