D
D
Danil2017-10-11 10:44:19
SOAP
Danil, 2017-10-11 10:44:19

Why is SOAP request returning 401?

There is a service that takes 1 parameter and returns the result. I need to send a request from a node and get a response.
The code:

var soap = require('soap');
var url = 'http://Login:[email protected]/ws/info_card.1cws?wsdl';
var args = '200000012021';

soap.createClient(url, function(err, client) {
client.ИнформацияПоКарте.ИнформацияПоКартеSoap12.ШКвИнфо(args, function(err, result) {
        console.log(err)
        console.log(result);
    });
});

In the err block I get - [Error: Cannot parse response]
In the result block - 401
How to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danil, 2017-10-11
@Veneomin

Added a line after the
line
And everything worked

D
Dmitry Eremin, 2017-10-11
@EreminD

is it not because you expect fields like "MapInfo" or "Soap12MapInfo" in the response?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question