Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

soap

Package Overview
Dependencies
Maintainers
4
Versions
97
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.7.0 to 0.8.0

.idea/jsLibraryMappings.xml

18

History.md

@@ -0,6 +1,12 @@

0.8.0 / 2015-02-17
=================
* [ENHANCEMENT] `node-soap` is now also compatible (and tested) with `node v0.12.0` and `io.js` too. (#571)
* [FIX] Adds support for attributes in the `SOAP Body` Element (fixes #386). (#574)
0.7.0 / 2015-02-10
=================
* [ENHANCEMENT] (Server) Server emits a `headers` event to globally handle SOAP Headers. (#564 )
* [ENHANCEMENT] Server emits a `headers` event to globally handle SOAP Headers. (#564 )
* [ENHANCEMENT] (Server) A service method can send back a SOAP Fault response to a client by throwing an object that contains a `Fault` property. (#563)
* [ENHANCEMENT] A service method can send back a SOAP Fault response to a client by throwing an object that contains a `Fault` property. (#563)

@@ -11,9 +17,9 @@ * [FIX] Don't throw an Error if an `element` is not defined. (#562)

* [FIX] (Client) Respect empty SOAP actions in operations. (#554)
* [FIX] Respect empty SOAP actions in operations. (#554)
* [ENHANCEMENT] (Client) The client now emits `message`, `request` and `soapError` events. (#547, #559)
* [ENHANCEMENT] The client now emits `message`, `request` and `soapError` events. (#547, #559)
* [ENHANCEMENT] (Server) The server is now aware of the SOAP header(s) from incoming request. (#551)
* [ENHANCEMENT] The server is now aware of the SOAP header(s) from incoming request. (#551)
* [ENHANCEMENT] (Client) Until now, only the SOAP Body was returned from the invoked client method. With this PR also the SOAP Header(s) will be returned. (#539)
* [ENHANCEMENT] Until now, only the SOAP Body was returned from the invoked client method. With this PR also the SOAP Header(s) will be returned. (#539)

@@ -20,0 +26,0 @@ 0.6.1 / 2014-12-20

@@ -48,2 +48,25 @@ /*

Client.prototype.addBodyAttribute = function(bodyAttribute, name, namespace, xmlns) {
if (!this.bodyAttributes) {
this.bodyAttributes = [];
}
if (typeof bodyAttribute === 'object') {
var composition = '';
Object.getOwnPropertyNames(bodyAttribute).forEach(function(prop, idx, array) {
composition += ' ' + prop + '="' + bodyAttribute[prop] + '"';
});
bodyAttribute = composition;
}
if (bodyAttribute.substr(0, 1) !== ' ') bodyAttribute = ' ' + bodyAttribute;
this.bodyAttributes.push(bodyAttribute);
};
Client.prototype.getBodyAttributes = function() {
return this.bodyAttributes;
};
Client.prototype.clearBodyAttributes = function() {
this.bodyAttributes = null;
};
Client.prototype.setEndpoint = function(endpoint) {

@@ -180,3 +203,5 @@ this.endpoint = endpoint;

) +
"<soap:Body>" +
"<soap:Body" +
(self.bodyAttributes ? self.bodyAttributes.join(' ') : '') +
">" +
message +

@@ -183,0 +208,0 @@ "</soap:Body>" +

@@ -178,3 +178,3 @@ /*

// The port path is almost always wrong for genrated WSDLs
// The port path is almost always wrong for generated WSDLs
if (!firstPort) {

@@ -209,3 +209,3 @@ firstPort = port;

} else {
var messageElemName = Object.keys(body)[0];
var messageElemName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]);
var pair = binding.topElements[messageElemName];

@@ -212,0 +212,0 @@

@@ -568,4 +568,8 @@ /*

}
this.parts[part.$name].namespace = nsName.namespace;
this.parts[part.$name].xmlns = ns;
if (typeof this.parts[part.$name] === 'object') {
this.parts[part.$name].namespace = nsName.namespace;
this.parts[part.$name].xmlns = ns;
}
this.children.splice(i--, 1);

@@ -873,4 +877,7 @@ }

}
elem.targetNSAlias = type.namespace;
elem.targetNamespace = ns;
if (typeof elem === 'object') {
elem.targetNSAlias = type.namespace;
elem.targetNamespace = ns;
}

@@ -877,0 +884,0 @@ definitions.descriptions.types[typeName] = elem;

{
"name": "soap",
"version": "0.7.0",
"version": "0.8.0",
"description": "A minimal node SOAP client",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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