0 Replies Latest reply: Sep 5, 2012 2:45 AM by 959832 RSS

    Testing secured  BPEL  process through SOAP UI

    959832
      Hi,

      I need to test a secured simple BPEL process using soap ui.

      Scenario: I have attached "oracle/wss11_saml_or_username_token_with_message_protection_service_policy" to my bpel process.I have created keystore and have configured the same as well. I am able to test the service using test page in console. Now I need to test the same using soapui v4.5. I have configured SOAPUI as per below URL:-

      http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html

      After making all configuration changes during testing of the service through soapui I am getting error. Please refer below error log:-

      Wed Sep 05 12:04:51 IST 2012:ERROR:org.apache.ws.security.WSSecurityException: Signature creation failed
      org.apache.ws.security.WSSecurityException: Signature creation failed
           at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:533)
           at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:453)
           at org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:359)
           at com.eviware.soapui.impl.wsdl.support.wss.entries.SignatureEntry.process(SignatureEntry.java:194)
           at com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss.processOutgoing(OutgoingWss.java:192)
           at com.eviware.soapui.impl.wsdl.submit.filters.WssRequestFilter.filterWsdlRequest(WssRequestFilter.java:58)
           at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:37)
           at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:31)
           at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:184)
           at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
           at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
           at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
           at java.util.concurrent.FutureTask.run(Unknown Source)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)
      Caused by: org.apache.ws.security.WSSecurityException: The keystore is null
           at org.apache.ws.security.components.crypto.Merlin.getPrivateKey(Merlin.java:683)
           at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:476)
           ... 15 more

      Further debugging I realized that this error is because of "message_protection_service_policy" and Encryption and signature option configured in soapui is not able to access the keystore configured.
      Can someone please help on the same.
      Please let me know if more information is required on this.