Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-06-03T04:50:07Z by IdanAdar
SystemAdmin
SystemAdmin
570 Posts
ACCEPTED ANSWER

Pinned topic How to sign a soap request using a .jks file

‏2012-05-31T16:58:58Z |
Hi
We are working with the demo version of worklight.
We have a sign SOAP request which we want to use through worklight HTTP adapter. To achieve this these are the steps which we follow
We put our key file in the certificate folder.
We make entry in the worklight.properties file mentioned below
ws-security.keystore.path=\${worklight.home}/conf/certificates/name.jks
ws-security.keystore.type=JKS
ws-security. eystore.password=provide password
Then we make entry in the adapter js file below the envelop like WL.Server.signSoapMessage(Envelop,'', "");
The syntax of above request is like as below
WL.Server.signSoapMessage (envelope, wsId, keystoreAlias)
Here envelop is our request variable
WSID is id in our request but we don't have any id so we left it blank
Keystrokealias wewrite keystroke alias.

we are getting some error like Class Cast: org.mozilla.javascript.Undefined cannot be cast to org.mozilla.javascript.Scriptable.
Please also suggest how can i confirm that value i enter is correct
  • IdanAdar
    IdanAdar
    288 Posts
    ACCEPTED ANSWER

    Re: How to sign a soap request using a .jks file

    ‏2012-06-03T04:50:07Z  in response to SystemAdmin
    As you have opened a ticket, this will be handled over there.