SOAP Envelope 요소

강제사용의 SOAP의 Envelope 요소는 SOAP 메시지의 기본 요소입니다.

SOAP Envelope 요소

必需의 SOAP의 Envelope 요소는 SOAP 메시지의 기본 요소입니다. 그것은 XML 문서를 SOAP 메시지로 정의할 수 있습니다.

xmlns:soap 이름 공간의 사용을 주의하세요. 그 값은 항상 다음과 같아야 합니다:

http://www.w3.org/2001/12/soap-envelope

그리고 그것은 SOAP 래핑을 정의할 수 있습니다:

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
  ...
  메시지 정보가 여기에 갑니다
  ...
</soap:Envelope>

xmlns:soap 이름 공간

SOAP 메시지는 "http://www.w3.org/2001/12/soap-envelope" 이름 공간과 관련된 하나의 Envelope 요소를 가져야 합니다.

다른 이름 공간을 사용하면 애플리케이션이 오류가 발생하고 메시지를 버릴 수 있습니다.

encodingStyle 속성

SOAP의 encodingStyle 속성은 문서에서 사용할 데이터 유형을 정의합니다. 이 속성은 어떤 SOAP 요소에도 나타날 수 있으며, 요소의 내용과 요소의 모든 자식 요소에 적용됩니다. SOAP 메시지에는 기본적인 인코딩 방식이 없습니다.

문법

soap:encodingStyle="URI"

예제

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
...
메시지 정보가 여기에 갑니다
...
</soap:Envelope>