SOAP 헤더 요소
옵션 SOAP 헤더 요소는 헤더 정보가 포함되어 있습니다.
SOAP 헤더 요소
옵션 SOAP 헤더 요소 (예 : 인증, 지불 등) SOAP 메시지에 대한 응용 프로그램 특정 정보가 포함되어 있습니다.
헤더 요소가 존재하는 경우, 봉투 요소의 첫 번째 자식 엘리먼트이어야한다.
참고 : 헤더 요소의 모든 직계 자식 요소가 네임 스페이스 자격이 있어야합니다.
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Header>
<m:Trans xmlns:m="http://www.w3schools.com/transaction/"
soap:mustUnderstand="1">234
</m:Trans>
</soap:Header>
...
...
</soap:Envelope>
위의 예는, 그 값이 234이고, 값이 "mustUnderstand에"이 요소의 속성이 "1"이다는 "트랜스"요소와 헤더를 포함
기본 네임 스페이스 ( "http://www.w3.org/2001/12/soap-envelope")에서 SOAP는 세 가지 속성을 정의합니다.
세 가지 특성은 다음과 같습니다 배우, mustUnderstand에 및 인코딩 스타일. 이들은 SOAP 헤더 속성에 정의 된 것은받는 사람이 SOAP 메시지를 처리하는 방법을 정의합니다.
mustUnderstand에 속성
수신자는 필수적이거나 선택적 처리하기위한 비누 mustUnderstand에 속성은 호를 식별하기 위해 사용될 수있다.
추가시가 "mustUnderstand에가 ="1 ", 상기 헤더를 처리하는 수신기는 요소를 인식해야한다는 것을 나타낸다. 수신기 헤더 요소의 하위 요소로 프로세스의 헤더이 요소를 인식하지 못하면 그것은 실패합니다.
문법
예
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Header>
<m:Trans xmlns:m="http://www.w3schools.com/transaction/"
soap:mustUnderstand="1">234
</m:Trans>
</soap:Header>
...
...
</soap:Envelope>
배우 속성
다른 엔드 포인트를 통해 메시지를 경로를 따라 전달 SOAP 메시지는 전송자로부터 수신자로 전송 될 수있다. SOAP 메시지의 궁극적 인 엔드 포인트에 대한 의도 된 SOAP 메시지의 모든 부분은, 그러나, 다른 양상은 아마도 하나 이상의 엔드 포인트의 경로에 메시지를 전달하는 것은 아니다.
비누 액터 속성은 특정 엔드 포인트에 헤더 요소를 해결하기 위해 사용될 수있다.
문법
예
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Header>
<m:Trans xmlns:m="http://www.w3schools.com/transaction/"
soap:actor="http://www.w3schools.com/appml/">234
</m:Trans>
</soap:Header>
...
...
</soap:Envelope>
인코딩 스타일 속성
이 문서에서 사용되는 데이터 타입에 대한 정의의 SOAP 인코딩 스타일 속성. 이 속성은 SOAP 요소에 나타날 수 있으며 이는 요소의 모든 하위 요소와 요소 콘텐츠에 적용됩니다.
SOAP 메시지가 더 기본 인코딩입니다.