SoapMethodAttribute.SoapAction 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 메서드를 통해 보낸 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 요청 헤더 필드는 HTTP SOAP 요청 의도 나타냅니다. SOAPAction 필드에 대한 자세한 내용은 W3C 사양의 SOAPAction HTTP 헤더 필드 섹션을 참조하세요.