Socket
Socket
Sign inDemoInstall

soap

Package Overview
Dependencies
Maintainers
4
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soap - npm Package Compare versions

Comparing version 0.10.3 to 0.11.0

7

History.md

@@ -0,1 +1,8 @@

0.11.0 / 2015-10-31
=================
* [ENHANCEMENT] Now passing request to services in server.js. (#769)
* [ENHANCEMENT] Adding the ability to add headers in client requests. (#770)
* [MAINTENANCE] Adding gitter badge to README and disabling issues. (#731)
* [FIX] Stop sending Object prototype methods as XML. (#699)
0.10.3 / 2015-10-23

@@ -2,0 +9,0 @@ =================

@@ -46,2 +46,18 @@ /*

Client.prototype.addHttpHeader = function(name, value) {
if (!this.httpHeaders) {
this.httpHeaders = {};
}
this.httpHeaders[name] = value;
};
Client.prototype.getHttpHeaders = function() {
return this.httpHeaders;
};
Client.prototype.clearHttpHeaders = function() {
this.httpHeaders = {};
};
Client.prototype.addBodyAttribute = function(bodyAttribute, name, namespace, xmlns) {

@@ -172,2 +188,3 @@ if (!this.bodyAttributes) {

//Add extra headers
for (var header in this.httpHeaders ) { headers[header] = this.httpHeaders[header]; }
for (var attr in extraHeaders) { headers[attr] = extraHeaders[attr]; }

@@ -174,0 +191,0 @@

14

lib/server.js

@@ -118,3 +118,3 @@ /*

}
self._process(xml, req.url, function(result, statusCode) {
self._process(xml, req, function(result, statusCode) {
if(statusCode) {

@@ -145,5 +145,5 @@ res.statusCode = statusCode;

Server.prototype._process = function(input, URL, callback) {
Server.prototype._process = function(input, req, callback) {
var self = this,
pathname = url.parse(URL).pathname.replace(/\/$/, ''),
pathname = url.parse(req.url).pathname.replace(/\/$/, ''),
obj = this.wsdl.xmlToObject(input),

@@ -220,3 +220,3 @@ body = obj.Body,

style: 'rpc'
}, callback);
}, req, callback);
} else {

@@ -238,3 +238,3 @@ var messageElemName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]);

style: 'document'
}, callback, includeTimestamp);
}, req, callback, includeTimestamp);
}

@@ -251,3 +251,3 @@ }

Server.prototype._executeMethod = function(options, callback, includeTimestamp) {
Server.prototype._executeMethod = function(options, req, callback, includeTimestamp) {
options = options || {};

@@ -298,3 +298,3 @@ var self = this,

var result = method(args, handleResult, options.headers);
var result = method(args, handleResult, options.headers, req);
if (typeof result !== 'undefined') {

@@ -301,0 +301,0 @@ handleResult(result);

@@ -1496,2 +1496,3 @@ /*

for (var key in params) {
if (!params.hasOwnProperty(key)) continue;
if (key !== nsAttrName) {

@@ -1580,2 +1581,3 @@ var value = params[key];

for (name in obj) {
if (!obj.hasOwnProperty(name)) continue;
//don't process attributes as element

@@ -1582,0 +1584,0 @@ if (name === self.options.attributesKey) {

{
"name": "soap",
"version": "0.10.3",
"version": "0.11.0",
"description": "A minimal node SOAP client",

@@ -5,0 +5,0 @@ "engines": {

@@ -1,2 +0,3 @@

# Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url]
# Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Gitter chat][gitter-image]][gitter-url]
> A SOAP client and server for node.js.

@@ -21,2 +22,11 @@

```
## Where can I file an issue?
We've disabled issues in the repository and are now solely reviewing pull requests. The reasons why we disabled issues can be found here [#731](https://github.com/vpulim/node-soap/pull/731).
If you're in need of support we encourage you to join us and other `node-soap` users on gitter:
[![Gitter chat][gitter-image]][gitter-url]
## Module

@@ -73,2 +83,10 @@

}
// You can also inspect the original `req`
reallyDeatailedFunction: function(args, cb, headers, req) {
console.log('SOAP `reallyDeatailedFunction` request from ' + req.connection.remoteAddress)
return {
name: headers.Token
};
}
}

@@ -563,1 +581,4 @@ }

[travis-image]: http://img.shields.io/travis/vpulim/node-soap.svg
[gitter-url]: https://gitter.im/vpulim/node-soap
[gitter-image]: https://badges.gitter.im/vpulim/node-soap.png
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc