303.4. SOAP および WS-Addressing アクションヘッダーの送信
リモート Web サービスが 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");