0.11.1 • Published 6 years ago

soap-cookie2 v0.11.1

Weekly downloads
60
License
BSD-2-Clause
Repository
github
Last release
6 years ago

Build Status

SOAP Cookie Authentication

Use cookies as a security method for node-soap

Install

npm install soap-cookie2

Usage

var soap = require('soap'),
    Cookie = require('soap-cookie2');

soap.createClient(WSDL, function(err, client) {
  client.login(USERNAME, PASSWORD, function(err, response) {

    // if login is successful
    client.setSecurity(new Cookie(client.lastResponseHeaders));

  });
});

Now subsequent SOAP calls will set the Cookie header and you'll be a happy chipmunk (except for the fact you have to deal with SOAP in the first place).

0.11.1

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago