350 Bounty and waffles to the person who can help me!
I have been struggling with Spring Web Service encryption for days and I can\'t figure out how to
Are you certain
<property name="xsd" value="classpath:src/java/hr.xsd"/>
is being resolved properly?
The error you're getting indicates it can't find how to handle that element. You wouldn't be seeing the element name and prefix if the response wasn't getting decrypted.
Are you able to validate and run the web service without encryption?
Take a look at CastorMarshaller properties, and attempt setting some of the "ignoring" ones to true (in your <bean id="castorMarshaller"
). For example set:
<property name="validating" value="false" />
<property name="suppressNamespaces" value="true" />
<property name="ignoreExtraElements" value="true" />
One of those might do it.