Hi @KeKs0r , no ... currently only these
SoapClient.call({
'method' : 'soapMethod2',
//optional namespace for call
'namespace' : 'soapMethod2Namespace',
//optional headers for call
'headers' : {
'Cookie' : 'test'
},
'params' : {
//default
'test' : 2,
//list of items
'test1' : ['item1', 'item2']
//if attributes needed
'test2' : {
'_attributes' : {
'id' : 1
},
'_value' : 'test1data'
}
}
})
but pull requests are welcome ! ;)
'layerCode':'555',
'layerWhere':'',
'xmin':'',
'ymin':'',
'xmax':'',
'ymax':'',
'projection':'',
}
})
.then(function(data, header) {
console.log(data, header);
}, function(err) {
console.log('Error: '+err);
});
(function() {
"use strict";
var easysoap = require('easysoap');
// define soap params
var params = {
host: 'http://www.thomas-bayer.com',
path: '/axis2/services/',
wsdl: '/axis2/services/BLZService?WSDL'
/headers: [{
'name': 'item_name',
'value': 'item_value',
'namespace': 'item_namespace'
}]/
}
console.log("START SOAP TEST");
/*
/*
console.log(functionArray);
}) throw new Error(err);
});/*
console.log(methodParams.request);
console.log(methodParams.response);
}) throw new Error(err);
});/*
method: 'getBank',
attributes: {
xmlns: 'http://thomas-bayer.com/blz/'
},
params: {
blz: '36010424'
}
}) console.log(callResponse.data); // response data as json
console.log(callResponse.body); // response body
console.log(callResponse.header); //response header
}) throw new Error(err);
});})();
@idoivri hi, yes now is see the question ^^
"Unquoted attribute value" means that there are attributes without quotes in the xml,
maybe your empty params !? (could be a possible Bug in easysoap)
can you look into the requestXml ? ( https://github.com/moszeed/easysoap/blob/master/src/request/request.js#L260 )
Ok, so I receive a response back from the server stating "please supply a valid SOAP action". When I take a look at the request, I see the name space: xmlns:tns="http://my.e2rm.com/webGetService/" However, in the body of the request, the atributes do not have the namespace (tns) before. them: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://my.e2rm.com/webGetService/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>
<SOAP-ENV:Body>
<getNextNewExportFile>
<organizationID>XXXXXX</organizationID>
<userName>XXXXXX</userName>
<password>XXXXXX</password>
<XMLVersin>xml1_8</XMLVersin>
</getNextNewExportFile>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>