{"library":"soap-x509-http","title":"soap-x509-http","type":"library","description":"An HTTP client for node-soap that supports X.509 certificate authentication and signing, based on ws.js. Version 1.0.2 is the latest stable release, last updated in 2016. It extends the default HTTP client of node-soap to use TLS client certificates and XML signing. This package is for Node.js only and requires both 'soap' and 'ws' as peer dependencies. Alternatives include custom HTTP clients for node-soap using native TLS, but this package provides integrated signing and certificate support.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install soap-x509-http"],"cli":null},"imports":["const X509HttpClient = require('soap-x509-http');","const { X509HttpClient } = require('soap-x509-http');","const X509HttpClient = require('soap-x509-http');"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/front/soap-x509-http","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/soap-x509-http","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"const fs = require('fs');\nconst soap = require('soap');\nconst X509HttpClient = require('soap-x509-http');\n\nconst myX509Client = new X509HttpClient(\n  {\n    pfx: fs.readFileSync('./client.pfx'),\n    passphrase: 'password',\n    rejectUnauthorized: false,\n  },\n  {\n    key: fs.readFileSync('./client-key.pem'),\n  }\n);\n\nsoap.createClient('./service.wsdl', { httpClient: myX509Client }, (err, client) => {\n  if (err) return console.error(err);\n  client.MyFunction({ name: 'test' }, (err, result) => {\n    console.log(result);\n  });\n});","lang":"javascript","description":"Creates an X.509 HTTP client with PFX and signing key for node-soap.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}