soap-knet
a simple change for soap package
Last updated a year ago by mityburner .
MIT · Original npm · Tarball · package.json
$ cnpm install soap-knet 
SYNC missed versions from official npm registry.

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>';

Current Tags

  • 1.0.4                                ...           latest (a year ago)

4 Versions

  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (12)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |