Details
Description
the properties configured with spring for CXF client looks like:
<jaxws:properties>
<entry key="ws-security.signature.crypto" value-ref="xkmsCryptoProvider" />
<entry key="ws-security.signature.username" value="myclientkey" />
<entry key="ws-security.encryption.crypto" value-ref="xkmsCryptoProvider" />
<entry key="ws-security.encryption.username" value="abc"/>
......
</jaxws:properties>
no mattar what value set on the ws-security.encryption.username property, e.g.
1) DN name: CN=www.service.com, OU=IT Department, O=Sample Web Service Provider, L=Buffalo, ST=New York, C=US
2) serviceQName: "
ABCService"
3) any string
4) even remove this property.
No any exception thrown and the invocation to the service will be successful. the expected behavior is the exception will be thrown when this property not set or its value is not correct.