It is required to send the following information:
'<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://www.abc.com/mx">'+
'<Header/>' +
'<Body>' +
'<CreaIDENT>' +
'<MXINCIDENT>' +
'<max:INCIDENT>' +
'<max:CLASS>INCIDENT</max:CLASS>' +
'</max:ITDTHIRDPARTY>' +
'</max:INCIDENT>' +
'</max:MXINCIDENTSet>' +
'</max:CreaIDENT_>' +
'</Body>' +
'</Envelope>'
is being treated as follows:
soap.createClient(url, function (err, client) {
console.log(err);
client.setSecurity(new soap.BasicAuthSecurity('user', 'pass'));
client.CreaIDENT(args, function (err, result, rawRequest, rawResponse) {
console.log('RESULT',result);
})
});
The expected response according to the SoapUI tool is the following:
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">'+ '
<soapenv:Body>'+ '
<CreateMXINCIDENTResponse creationDateTime="2018-08-22T20:47:49-05:00" transLanguage="EN" baseLanguage="EN" messageID="1534988978063874740" xmlns="http://www.abc.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'+ '
<INCIDENTMboKeySet>'+ '
<INCIDENT>'+ '
<CLASS maxvalue="INCIDENT">INCIDENT</CLASS>'+ '
</INCIDENT>'+ '
</INCIDENTMboKeySet>'+ '
</CreaIDENT>'+ '
</soapenv:Body>'+ '
The answer obtained is the following:
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">'+ '
<soapenv:Body>'+ '
<CreaIDENT creationDateTime="2018-08-22T20:47:49-05:00" transLanguage="EN" baseLanguage="EN" messageID="1534988978063874740" xmlns="http://www.abc.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'+ '
</CreaIDENT>'+ '
</soapenv:Body>'+ '