WSP0075: Policy assertion “TransportBinding” was evaluated as “UNKNOWN”. Why?

后端 未结 4 1779
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 00:27

I am a client to a SOAP service I do not control (implemented in .NET). The service provides a WSDL. I use Apache CXF to generate the java client from the WSDL (specifically, I

4条回答
  •  春和景丽
    2021-02-19 01:09

    Finally found the correct solution:

    You're missing a dependency that provides an implementation of PolicyAssertionValidator to validate a policy of the name {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}TransportBinding.

    The correct dependency to use is org.glassfish.metro:wssx-impl. This library provides a class called SecurityPolicyValidator that can validate said policy. The library will work automatically just by putting it on your classpath.

    This solution should work with both the JAX-WS stack and Apache CXF.

提交回复
热议问题