Integration testing 安全SpringWeb服务的集成测试

Integration testing 安全SpringWeb服务的集成测试,integration-testing,spring-ws,ws-security,Integration Testing,Spring Ws,Ws Security,我正在尝试使用 -Spring WS-Security 2.1.2.1发布和 -WSS4j 1.6.9。 我正在尝试遵循Spring文档。根据目前为止的设置,我可以发送一个请求负载 <myns:MyRequest xmlns:myns="..."> ... </myns:MyRequest> 集成测试将其正确映射到测试上下文中的端点,我得到了预期的“无法验证请求:未找到WS-Security标头”错误 问题:现在的问题是,如果我在SOAP信封中发送带有安

我正在尝试使用 -Spring WS-Security 2.1.2.1发布和 -WSS4j 1.6.9。 我正在尝试遵循Spring文档。根据目前为止的设置,我可以发送一个请求负载

<myns:MyRequest xmlns:myns="...">
        ...
</myns:MyRequest>
集成测试将其正确映射到测试上下文中的端点,我得到了预期的“无法验证请求:未找到WS-Security标头”错误

问题:现在的问题是,如果我在SOAP信封中发送带有安全头和正文的请求,我将得到一个端点未找到异常

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

...
...
因为它将尝试在“{}信封”周围找到端点


有办法解决这个问题吗?

较新版本的Spring WS-Test(2.1)在RequestCreaters中添加了两种方法:RequestCreators。WissOApenDevelope(源soapEnvelope)和RequestCreators。WissOApenDevelope(源soapEnvelope)允许发送SOAP信封进行集成测试

较新版本的Spring WS-Test(2.1)在RequestCreaters中添加了两种方法:RequestCreators.WissOApenDevelope(源soapEnvelope)和RequestCreators.WissOApenDevelope(源soapEnvelope),允许发送SOAP信封进行集成测试

SpringWS-Test的更新版本是2.1,在RequestCreater中添加了两种方法:RequestCreator和soapEnvelope(源soapEnvelope)以及RequestCreator和soapEnvelope(资源soapEnvelope),我可以使用它们发送SOAP信封进行集成测试。SpringWS-Test的更新版本是2.1,在RequestCreater中添加了两种方法:RequestCreator和soapEnvelope(源soapEnvelope)以及RequestCreator和soapEnvelope(资源soapEnvelope),我可以使用它们发送SOAP信封进行集成测试。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:myns="...">
   <soapenv:Header>
       ...
   </soapenv:Header>
   <soapenv:Body>
      <myns:MyRequest>
        ...
      </myns:MyRequest>
   </soapenv:Body>
</soapenv:Envelope>