PKCS7 Signing

Dear All,

I want to sign the response message using pkcs7. My client also has WM and asked me to use detach signature to yes which means signature will be created without data (which is my response message).

At the end my service I am using flow setResponse and assigning signautre (created from security.pkcs7.sign) to response (input of setResponse), in this case only signature will be sent and not data. Now how I can send back the response signature and data to my client?

Regards,
Faisal