Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Install with [npm](http://github.com/isaacs/npm):
, Http = ws.Http
, Security = ws.Security
, UsernameToken = ws.UsernameToken


var authToken = new Buffer(user + ':' + pass).toString('base64');

var request = '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">' +
'<Header />' +
'<Body>' +
Expand All @@ -37,6 +39,7 @@ Install with [npm](http://github.com/isaacs/npm):
, url: "http://service/security"
, action: "http://tempuri.org/EchoString"
, contentType: "text/xml"
, authorization: "Basic: "+authToken
}


Expand Down Expand Up @@ -337,7 +340,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
### More details
* [http://webservices20.blogspot.com/](http://webservices20.blogspot.com/)
* Or drop me an [email](mailto:[email protected])


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/yaronn/ws.js/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/yaronn/ws.js/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
3 changes: 2 additions & 1 deletion lib/handlers/client/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ HttpClientHandler.prototype.send = function(ctx, callback) {
, headers: { "SOAPAction": ctx.action
, "Content-Type": ctx.contentType
, "MIME-Version": "1.0"
, "Authorization": ctx.authorization
}
, encoding: null
, rejectUnauthorized: false
Expand All @@ -28,4 +29,4 @@ HttpClientHandler.prototype.send = function(ctx, callback) {
else ctx.statusCode = response.statusCode
callback(ctx)
})
}
}