1.0.4 • Published 5 years ago

soap-knet v1.0.4

Weekly downloads
4
License
MIT
Repository
-
Last release
5 years ago

Soap-knet

A SOAP client and server for node.js.

This module lets you connect to web services using SOAP. It also provides a server that allows you to run your own SOAP services.

Install

Install with npm:

npm install soap-knet

Usage

see soap for usage

Why

edit soap@0.27.1, just change the WSSecurity.js

resource code
return '<wsse:Security ' + (this._actor ? 'soap:actor="' + this._actor + '" ' : '') +
       (this._mustUnderstand ? 'soap:mustUnderstand="1" ' : '') +
       'xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">' +
       timeStampXml +
       '<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-' + created + '">' +
       '<wsse:Username>' + this._username + '</wsse:Username>' +
       password +
       (this._hasTokenCreated ? '<wsu:Created>' + created + '</wsu:Created>' : '') +
       '</wsse:UsernameToken>' +
       '</wsse:Security>';
modified code
return '<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" >' +
       '<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd    ">' +
       '<wsse:Username>'+this._username+'</wsse:Username>' +
       password +
       '</wsse:UsernameToken>' +
       '</wsse:Security>';