9.3.2. 구성 사용
9.3.2.1. 개요
컨테이너에 배포할 때와 같이 XML을 사용하여 서비스를 게시하는 경우 엔드포인트 구성 파일에서 끝점의 MTOM 지원을 활성화할 수 있습니다. 엔드 포인트 구성에 대한 자세한 내용은 IV 부. 웹 서비스 엔드 포인트 구성 을 참조하십시오.
9.3.2.2. 절차
MTOM 속성은 엔드포인트의 jaxws:endpoint 요소 내에 설정됩니다. MTOM을 활성화하려면 다음을 수행합니다.
-
jaxws:property하위 요소를 엔드포인트의jaxws:endpoint요소에 추가합니다. -
jaxws:property요소에항목하위 요소를 추가합니다. -
entry요소의key속성을mtom-enabled로 설정합니다. -
entry요소의value속성을true로 설정합니다.
9.3.2.3. 예제
예 9.8. “MTOM 활성화를 위한 구성” MTOM이 활성화된 끝점을 보여줍니다.
예 9.8. MTOM 활성화를 위한 구성
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">
<jaxws:endpoint id="xRayStorage"
implementor="demo.spring.xRayStorImpl"
address="http://localhost/xRayStorage">
<jaxws:properties>
<entry key="mtom-enabled" value="true"/>
</jaxws:properties>
</jaxws:endpoint>
</beans>