Skip to content

Commit 5ef9894

Browse files
committed
Merge pull request vpulim#475 from shelbys/master
Avoid creating soap:Header container when there are no children
2 parents 5fc0508 + 1207757 commit 5ef9894

File tree

52 files changed

+234
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+234
-41
lines changed

lib/client.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,16 @@ Client.prototype._invoke = function(method, args, location, callback, options, e
152152
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " +
153153
encoding +
154154
this.wsdl.xmlnsInEnvelope + '>' +
155-
"<soap:Header>" +
156-
(self.soapHeaders ? self.soapHeaders.join("\n") : "") +
157-
(self.security ? self.security.toXML() : "") +
158-
"</soap:Header>" +
155+
((self.soapHeaders || self.security) ?
156+
(
157+
"<soap:Header>" +
158+
(self.soapHeaders ? self.soapHeaders.join("\n") : "") +
159+
(self.security ? self.security.toXML() : "") +
160+
"</soap:Header>"
161+
)
162+
:
163+
''
164+
) +
159165
"<soap:Body>" +
160166
message +
161167
"</soap:Body>" +

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"mocha": "~1.17.0",
3838
"jshint": "2.3.0",
3939
"glob": "~3.2.8",
40-
"should": "~3.3.0"
40+
"should": "~3.3.0",
41+
"timekeeper": "~0.0.4"
4142
}
4243
}

test/request-response-samples-test.js

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ var fs = require('fs');
55
var glob = require('glob');
66
var http = require('http');
77
var path = require('path');
8+
var timekeeper = require('timekeeper');
89
var soap = require('../');
10+
var WSSecurity = require('../lib/security/WSSecurity');
911
var server;
1012
var port;
1113
var endpoint;
@@ -35,8 +37,11 @@ var requestContext = {
3537
}
3638
};
3739

40+
var origRandom = Math.random;
3841
module.exports = {
3942
before:function(done){
43+
timekeeper.freeze(Date.parse('2014-10-12T01:02:03Z'));
44+
Math.random = function() { return 1; };
4045
server = http.createServer(requestContext.requestHandler);
4146
server.listen(0, function(e){
4247
if(e)return done(e);
@@ -50,6 +55,8 @@ module.exports = {
5055
requestContext.doneHandler = null;
5156
},
5257
after:function(){
58+
timekeeper.reset();
59+
Math.random = origRandom;
5360
server.close();
5461
},
5562
'Request Response Sampling':suite
@@ -60,6 +67,8 @@ tests.forEach(function(test){
6067
var name = nameParts[1].replace(/_/g, ' ');
6168
var methodName = nameParts[0];
6269
var wsdl = path.resolve(test, 'soap.wsdl');
70+
var headerJSON = path.resolve(test, 'header.json');
71+
var securityJSON = path.resolve(test, 'security.json');
6372
var requestJSON = path.resolve(test, 'request.json');
6473
var requestXML = path.resolve(test, 'request.xml');
6574
var responseJSON = path.resolve(test, 'response.json');
@@ -69,7 +78,15 @@ tests.forEach(function(test){
6978
var wsdlOptionsFile = path.resolve(test, 'wsdl_options.json');
7079
var wsdlOptions = {};
7180

72-
//response JSON is optional
81+
//headerJSON is optional
82+
if(fs.existsSync(headerJSON))headerJSON = require(headerJSON);
83+
else headerJSON = {};
84+
85+
//securityJSON is optional
86+
if(fs.existsSync(securityJSON))securityJSON = require(securityJSON);
87+
else securityJSON = {};
88+
89+
//responseJSON is optional
7390
if (fs.existsSync(responseJSON))responseJSON = require(responseJSON);
7491
else if(fs.existsSync(responseJSONError))responseJSON = require(responseJSONError);
7592
else responseJSON = null;
@@ -82,7 +99,7 @@ tests.forEach(function(test){
8299
if(fs.existsSync(responseXML))responseXML = ""+fs.readFileSync(responseXML);
83100
else responseXML = null;
84101

85-
//responseJSON is required as node-soap will expect a request object anyway
102+
//requestJSON is required as node-soap will expect a request object anyway
86103
requestJSON = require(requestJSON);
87104

88105
//options is optional
@@ -93,15 +110,23 @@ tests.forEach(function(test){
93110
if(fs.existsSync(wsdlOptionsFile)) wsdlOptions = require(wsdlOptionsFile);
94111
else wsdlOptions = {};
95112

96-
generateTest(name, methodName, wsdl, requestXML, requestJSON, responseXML, responseJSON, wsdlOptions, options);
113+
generateTest(name, methodName, wsdl, headerJSON, securityJSON, requestXML, requestJSON, responseXML, responseJSON, wsdlOptions, options);
97114
});
98115

99-
function generateTest(name, methodName, wsdlPath, requestXML, requestJSON, responseXML, responseJSON, wsdlOptions, options){
116+
function generateTest(name, methodName, wsdlPath, headerJSON, securityJSON, requestXML, requestJSON, responseXML, responseJSON, wsdlOptions, options){
100117
suite[name] = function(done){
101118
if(requestXML)requestContext.expectedRequest = requestXML;
102119
if(responseXML)requestContext.responseToSend = responseXML;
103120
requestContext.doneHandler = done;
104121
soap.createClient(wsdlPath, wsdlOptions, function(err, client){
122+
if (headerJSON) {
123+
for (var headerKey in headerJSON) {
124+
client.addSoapHeader(headerJSON[headerKey], headerKey);
125+
}
126+
}
127+
if (securityJSON && securityJSON.type === 'ws') {
128+
client.setSecurity(new WSSecurity(securityJSON.username, securityJSON.password));
129+
}
105130
client[methodName](requestJSON, function(err, json, body){
106131
if(requestJSON){
107132
if (err) {
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><soap:Header></soap:Header><soap:Body><Request xmlns="http://www.example.com/v1"></Request></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><soap:Body><Request xmlns="http://www.example.com/v1"></Request></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types"><DummyField1 language="en-US">Humpty</DummyField1><DummyFilter><DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</DummyFilterString></DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types"><DummyField1 language="en-US">Humpty</DummyField1><DummyFilter><DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</DummyFilterString></DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1 language="en-US">Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1 language="en-US">Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter><n:DummyAccount><n:DummyName>Dummy</n:DummyName><n:DummyPassword>1234</n:DummyPassword></n:DummyAccount></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter><n:DummyAccount><n:DummyName>Dummy</n:DummyName><n:DummyPassword>1234</n:DummyPassword></n:DummyAccount></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter><n:DummyAccount><n:DummyName>Dummy</n:DummyName><n:DummyPassword>1234</n:DummyPassword></n:DummyAccount></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter><n:DummyAccount><n:DummyName>Dummy</n:DummyName><n:DummyPassword>1234</n:DummyPassword></n:DummyAccount></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter><n:DummyAccount><n:DummyName>Dummy</n:DummyName><n:DummyPassword>1234</n:DummyPassword></n:DummyAccount></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter><n:DummyAccount><n:DummyName>Dummy</n:DummyName><n:DummyPassword>1234</n:DummyPassword></n:DummyAccount></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Header></soap:Header><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types"><soap:Body><n:DummyRequest xmlns:n="http://www.Dummy.com/Name/Types" xmlns="http://www.Dummy.com/Name/Types"><n:DummyField1>Humpty</n:DummyField1><n:DummyFilter><c:DummyFilterString xmlns:c="http://www.Dummy.com/Common/Types">Dumpty</c:DummyFilterString></n:DummyFilter></n:DummyRequest></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Foo" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"><soap:Header></soap:Header><soap:Body><tns:GetAccountXml xmlns:tns="#Foo" xmlns="#Foo"><tns:ResourceID>234</tns:ResourceID><tns:ResourceType>foo</tns:ResourceType><tns:IDType>more foo</tns:IDType><tns:TreeID>43</tns:TreeID><tns:PrivateLabelID>34</tns:PrivateLabelID></tns:GetAccountXml></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Foo" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"><soap:Body><tns:GetAccountXml xmlns:tns="#Foo" xmlns="#Foo"><tns:ResourceID>234</tns:ResourceID><tns:ResourceType>foo</tns:ResourceType><tns:IDType>more foo</tns:IDType><tns:TreeID>43</tns:TreeID><tns:PrivateLabelID>34</tns:PrivateLabelID></tns:GetAccountXml></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/"><soap:Header></soap:Header><soap:Body><tns:GetNodes xmlns:tns="http://tempuri.org/" xmlns="http://tempuri.org/"></tns:GetNodes></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/"><soap:Body><tns:GetNodes xmlns:tns="http://tempuri.org/" xmlns="http://tempuri.org/"></tns:GetNodes></soap:Body></soap:Envelope>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:webservice-electrasoft-ru" xmlns:ns1="http://www.borland.com/namespaces/Types" xmlns:ns2="urn:webservice-electrasoft-ru:types-ewsServerIntf"><soap:Header></soap:Header><soap:Body><tns:Login><UserAlias>test</UserAlias><Password>testik</Password></tns:Login></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="urn:webservice-electrasoft-ru" xmlns:ns1="http://www.borland.com/namespaces/Types" xmlns:ns2="urn:webservice-electrasoft-ru:types-ewsServerIntf"><soap:Body><tns:Login><UserAlias>test</UserAlias><Password>testik</Password></tns:Login></soap:Body></soap:Envelope>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s0="urn:MessageService" xmlns:atls="http://tempuri.org/vc/atl/server/"><soap:Header></soap:Header><soap:Body><s0:Message><bstrResourceId>034b7ea5-8a04-11e3-9710-0050569575d8</bstrResourceId></s0:Message></soap:Body></soap:Envelope>
1+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s0="urn:MessageService" xmlns:atls="http://tempuri.org/vc/atl/server/"><soap:Body><s0:Message><bstrResourceId>034b7ea5-8a04-11e3-9710-0050569575d8</bstrResourceId></s0:Message></soap:Body></soap:Envelope>

0 commit comments

Comments
 (0)