Decrypting Message with a Spring Web Service Client

前端 未结 2 1978
醉话见心
醉话见心 2021-02-08 11:33

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

相关标签:
2条回答
  • 2021-02-08 11:46

    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?

    0 讨论(0)
  • 2021-02-08 11:53

    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.

    0 讨论(0)
提交回复
热议问题