如何使用Spring Integration jax-wS实现设置DisableCNCheck

时间:2014-05-22 10:59:33

标签: soap cxf spring-integration spring-ws

什么是Spring Integration,相当于cxf中的TLSClientParameters.setDisableCNCheck(true)

我们可以在DisableCNCheck<int-ws:outbound-gateway>中设置org.springframework.ws.soap.SoapHeader吗?

使用TCP监视器捕获Soap请求,使用params.setDisableCNCheck运行示例cxf客户端(true):

POST / HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Accept: */*
SOAPAction: ""
User-Agent: Apache CXF 2.6.2
Cache-Control: no-cache
Pragma: no-cache
Host: 127.0.0.1:8888
Connection: keep-alive
Content-Length: 243

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body>...</soap:Body></soap:Envelope>

DisableCNCheck未设置为SOAP标头。它可能设置为http标头。

0 个答案:

没有答案