【发布时间】:2011-08-30 23:51:25
【问题描述】:
我已经实现了一个 spring-ws (2.0.2) 服务,它需要在 soap 标头中添加一些自定义元素。我正在尝试使用 Spring 的 MockWebServiceClient 生成一个有效的请求来测试调度程序、编组器等。
我遇到的问题是 MockWebSerivce 似乎只支持 Soap Body(有效负载)。
如何访问正在生成的soap 请求以将正确的标头放入其中?
如果除了 Spring 的 MockWebServiceClient 之外还有更好的库来执行此操作,那也很好。
相关链接:
http://forum.springsource.org/showthread.php?101708-MockWebServiceClient-amp-WS-Security
Add SoapHeader to org.springframework.ws.WebServiceMessage
【问题讨论】:
标签: java integration-testing spring-ws