Commit b1b225f6 authored by Marius Wybrands's avatar Marius Wybrands

New methods: MerkmalInformationen and MerkmalAuspraegungKatalog

parent ee1b243b
......@@ -59,7 +59,6 @@ exportService.TabellenExport = function(requestParameter){
});
})
}
exportService.AuspraegungInformation = function(requestParameter){
// force params to be an obj
......@@ -78,6 +77,24 @@ exportService.AuspraegungInformation = function(requestParameter){
});
})
}
exportService.MerkmalInformation = function(requestParameter){
// force params to be an obj
requestParameter = requestParameter || {};
var params = {};
params.method = "MerkmalInformation";
params = addCendentials(params);
params.name = addDefault(requestParameter.name);
params.bereich = addBereich(requestParameter.bereich);
params = addLanguage(params);
return new Promise(function (resolve, reject) {
sendRequest('ExportService_2010', params).then(result => {
resolve(result['soapenv:Envelope']['soapenv:Body'][params.method + 'Response'][params.method + 'Return']);
});
})
}
testService.whoami = function() {
return new Promise(function (resolve, reject) {
......@@ -145,6 +162,31 @@ rechercheService.MerkmalAuspraegungenKatalog = function(requestParameter){
})
}
rechercheService.AuftraegeKatalog = function(requestParameter){
// force params to be an obj
requestParameter = requestParameter || {};
var params = {};
params.method = "MerkmalAuspraegungenKatalog";
params = addCendentials(params);
params.name = addDefault(requestParameter.name);
params.auswahl = addAuswahl(requestParameter.auswahl);
params.kriterium = addKriterium(requestParameter.kriterium);
params.bereich = addBereich(requestParameter.bereich);
params.listenLaenge = addListenLaenge(requestParameter.listenLaenge);
params = addLanguage(params);
return new Promise(function (resolve, reject) {
sendRequest('RechercheService_2010', params).then(result => {
resolve(result['soapenv:Envelope']['soapenv:Body'][params.method + 'Response'][params.method + 'Return']);
});
})
}
var sendRequest = function(service,requestParams){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment