I am trying to implement WS-Security for a WSD created for a flow service in webMethods 7.1. I am trying to use the policies provided by webMethods. I am able to implement the WS-Security with UserName by usinf the policy file provided by webMethods. But when I am trying to use the signature I am getting the following error.
com.webmethods.ws.security.SecurityException: Request does not contain required Security header: [{http://www.w3.org/2000/09/xmldsig#}Signature]
Following is the SOAP response that I got.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:Security xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1"></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>[ISS.0088.9251] JAX-RPC Handler failed to process the message</faultstring>
<faultactor>https://jade:58555/ws/Default.Test1:Test1</faultactor><SOAP-ENV:detail><webM:detailEntry xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<webM:message xml:lang="">com.webmethods.ws.security.SecurityException: Security Engine error while processing WS Security headers org.apache.ws.security.WSSecurityException: The signature verification failed</webM:message>
</webM:detailEntry>
<webM:detailEntry xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<webM:message xml:lang="">com.webmethods.ws.security.SecurityException: Request does not contain required Security header: [{http://www.w3.org/2000/09/xmldsig#}Signature]</webM:message>
</webM:detailEntry>
</SOAP-ENV:detail></SOAP-ENV:Fault></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I am using 2 IS for Provider and Consumer services and I configured the public and private keys in the websevice alias profiles of the respective IS. Appreciate your help.