325.5. SOAP 및 WS-Addressing 작업 헤더 전송

원격 웹 서비스에 SOAP 작업이 필요하거나 WS-Addressing 표준을 사용하는 경우 경로를 다음과 같이 정의합니다.

from("direct:example")
.to("spring-ws:http://foo.com/bar?soapAction=http://foo.com&wsAddressingAction=http://bar.com")

선택적으로 헤더 값을 사용하여 끝점 옵션을 재정의할 수 있습니다.

template.requestBodyAndHeader("direct:example",
"<foobar xmlns=\"http://foo.com\"><msg>test message</msg></foobar>",
SpringWebserviceConstants.SPRING_WS_SOAP_ACTION, "http://baz.com");