324.8. 스타일을 사용하여 비누 헤더를 변환하는 방법
헤더 변환 필터(HeaderTransformationMessageFilter.java)를 사용하여 soap 요청에 대해 soap 헤더를 변환할 수 있습니다. 헤더 변환 필터를 사용하려면 다음 예제를 참조하십시오.
<bean id="headerTransformationFilter" class="org.apache.camel.component.spring.ws.filter.impl.HeaderTransformationMessageFilter"> <constructor-arg index="0" value="org/apache/camel/component/spring/ws/soap-header-transform.xslt"/> </bean
<bean id="headerTransformationFilter" class="org.apache.camel.component.spring.ws.filter.impl.HeaderTransformationMessageFilter">
<constructor-arg index="0" value="org/apache/camel/component/spring/ws/soap-header-transform.xslt"/>
</bean
camel 끝점에서 위에서 정의한 bead 사용
<route> <from uri="direct:stockQuoteWebserviceHeaderTransformation"/> <to uri="spring-ws:http://localhost?webServiceTemplate=#webServiceTemplate&soapAction=http://www.stockquotes.edu/GetQuote&messageFilter=#headerTransformationFilter"/> </route>
<route>
<from uri="direct:stockQuoteWebserviceHeaderTransformation"/>
<to uri="spring-ws:http://localhost?webServiceTemplate=#webServiceTemplate&soapAction=http://www.stockquotes.edu/GetQuote&messageFilter=#headerTransformationFilter"/>
</route>