How to change WSS Signature and Encryption order in the WS proxy?
584821Nov 16 2007 — edited Nov 16 2007Hi there,
We want to generate a security enabled WS proxy which performs both encryption and signature of the message body and we need to do it in that order, first encryption and then signature. We generate the proxy using JDev 10.1.3.2 (also 10.1.3.3) and configure the security aspects of it. The proxy are generated fine, except from the fact that it first performs first the signature and then the encryption, which makes our scenario fail.
We try to change the order of these steps in the <WebService-Name>_Stub.xml, like this:
<outbound>
<x509-token/>
<encrypt>
<recipient-key alias="someone"/>
<encryption-method>3DES</encryption-method>
<tbe-elements>
<tbe-element local-part="Body" name-space="http://schemas.xmlsoap.org/soap/envelope/" mode="CONTENT"/>
</tbe-elements>
</encrypt>
<signature>
<signature-method>RSA-SHA1</signature-method>
<tbs-elements>
<tbs-element local-part="Body" name-space="http://schemas.xmlsoap.org/soap/envelope/"/>
</tbs-elements>
</signature>
</outbound>
However it does not do the job.
Is there any way to specify the order in which those two steps are performed by the proxy?
Thanks!
Leonardo