Answer the question
In order to leave comments, you need to log in
Why returns 500 error in SOAP?
My code:
var soap = require('soap');
var url = 'http://Login:[email protected]/ws/info_card.1cws?wsdl';
var args = {
test: 20000001202},
}
soap.createClient(url, function(err, client) {
client.setSecurity(new soap.BasicAuthSecurity('Login', 'Password'))
client.ИнформацияПоКарте.ИнформацияПоКартеSoap.ШКвИнфо(args, function(err, result) {
console.log(err)
console.log(result);
});
});
[Error: Cannot parse response]
....
{ html:
{ head:
{ meta: [Object],
title: '500 - Internal Server Error
style: [Object] },
body: { div: [Object] } } }
Answer the question
In order to leave comments, you need to log in
500 error indicates an exception on the server side 1s. Here you need to get the text of this error, for example by expanding the full result. If the link with ?wsdl works in the browser, then you need to look at this same wsdl and the names / types of parameters that are passed to the method. Well, "my code" is clearly crooked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question