{
  "synLogic": "int $ret \u003d $api($1, $2, $3, $4, $5, $6, $7, $8, $9);",
  "help": "keyFile - is used to provide absolute path for key file \ncertFile - is used to provide absolute path for certificate file \nalgorithm - is used for specifying algorithm. Currently SHA1 is supported. \n\n\nDefault values for the following are:- \nalgorithm ? DIGEST_SHA1 \ntoken ? \"body\" \ndigest_id ? \"id-1\" \ncert_id - \"X509-CertificateId-1\" \nsign_id ? \"SIG-SignatureId-1\" \nkey_info_id ? \"KI-KeyInfoId-1\" \nsec_token_id - \"STR-SecurityTokenId-1\"",
  "notes": "List attributes (mandatory \u0026 optional) \nAll arguments are mandatory to be provided. Key File, Certificate File and Algorithm cannot be set NULL. Rest 6 arguments can be set to NULL and the API then uses default values for these fields.",
  "returns": "",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Keyfile  \u003c/td\u003e \u003ctd\u003e The absolute path of the private key file used for signing the message. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Certificate File  \u003c/td\u003e \u003ctd\u003e The absolute path of the X.509 certificate file associated with the private key. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Algorithm  \u003c/td\u003e \u003ctd\u003e The algorithm used for digesting the message. Currently, only SHA1 is supported. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Token  \u003c/td\u003e \u003ctd\u003e The part of the SOAP message to be secured. By default, it is set to \"body\", indicating the entire SOAP body. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Digest id  \u003c/td\u003e \u003ctd\u003e The identifier for the digest of the secured message. By default, it is set to \"id-1\". \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Certificate id  \u003c/td\u003e \u003ctd\u003e The identifier for the X.509 certificate used for message signing. By default, it is set to \"X509-CertificateId-1\". \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Sign id  \u003c/td\u003e \u003ctd\u003e The identifier for the signature element of the secured message. By default, it is set to \"SIG-SignatureId-1\". \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Key info id  \u003c/td\u003e \u003ctd\u003e The identifier for the key info element of the secured message. By default, it is set to \"KI-KeyInfoId-1\". \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Sec token id  \u003c/td\u003e \u003ctd\u003e The identifier for the security token element of the secured message. By default, it is set to \"STR-SecurityTokenId-1\". \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_soap_ws_security",
  "syntax": "int ns_soap_ws_security(char *keyFile, char *certFile, int algorithm, char *token, char *digest_id, char *cert_id, char *sign_id, char *key_info_id, char* sec_token_id )",
  "javaSyntax": "",
  "cEx": "ns_soap_ws_security(\"/home/netstorm/work/scripts/HTTP2/HTTP2/test/privKey.pem\", \"/home/netstorm/work/scripts/HTTP2/HTTP2/test/publicCert.pem\", 1, NULL, NULL, NULL, NULL, NULL, NULL); \n",
  "javaEx": "",
  "insertStrC": "ns_soap_ws_security(char *keyFile, char *certFile, int algorithm, char *token, char *digest_id, char *cert_id, char *sign_id, char *key_info_id, char* sec_token_id );",
  "insertStrJava": "",
  "description": "The ns_soap_ws_security API is used to add the Web Service (WS) security header in SOAP XML. WS security header contains security certificate, signedInfo token which have digest value of soap body part or full body and signature of signedInfo token. \n",
  "component": [
    {
      "id": "$1",
      "type": "FILE_PATH",
      "label": "Keyfile",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter keyfile path",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
	{
      "id": "$2",
      "type": "FILE_PATH",
      "label": "Certificate File",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter certificate file path",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
	{
      "id": "$3",
      "type": "Dropdown",
      "label": "Algorithm",
      "value": "DIGEST_SHA1",
      "css": "p-grid p-align-center w-100-p",
      "title": "Selecte value type",
      "placeHolder": "DIGEST_SHA1",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "DIGEST_SHA1",
          "value": "1"
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
	{
      "id": "$4",
      "type": "TextField",
      "label": "Token",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter token",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
	{
      "id": "$5",
      "type": "TextField",
      "label": "Digest id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter digest id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
	{
      "id": "$6",
      "type": "TextField",
      "label": "Certificate id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter certificate id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
	{
      "id": "$7",
      "type": "TextField",
      "label": "Sign id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter sign id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
	{
      "id": "$8",
      "type": "TextField",
      "label": "Key info id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter key info id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
	{
      "id": "$9",
      "type": "TextField",
      "label": "Sec token id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter sec token id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter return variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    }
  ]
}
