Errro создал мыльный клиент - PullRequest
       1

Errro создал мыльный клиент

0 голосов
/ 15 сентября 2018

Пожалуйста, помогите мне

Я пытаюсь съесть мыло.Я использую узел js и мыло

это код

soap.createClientAsync(url,wsdlOptions).then((client)=>{
                                    client.addHttpHeader('Content-Type','text/xml; charset=utf-8');
                                    client.addHttpHeader('SOAPAction','http://tempuri.org/ConvertSignDocument');
                                    client.setSOAPAction("http://tempuri.org/ConvertSignDocument");
                                    //client.on("POS")                          
                                    client.POSTAsync(args).then((result) =>{
                                        console.log(result);
                                        console.log(rawResponse);
                                        console.log(soapHeader);
                                        console.log(rawRequest);
                                    }).catch((err)=>{
                                        console.log(err);
                                    });
                                }).catch((err)=>{
                                    console.log(err);
                                });

и это ошибка

Blockquote TypeError: client.POSTAsync не является функцией вsoap.createClientAsync.then (D: \ Web \ FactElect \ route \ inicial.js: 155: 15) в tryCatcher (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ util.js: 16: 23) вPromise._settlePromiseFromHandler (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ advance.js: 512: 31) в Promise._settlePromise (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ обещание.js: 569: 18) в Promise._settlePromise0 (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ обещание.js: 614: 10) в Promise._settlePromises (D: \ Web \ FactElect \ node_modules \ bluebird \ js\ release \ advance.js: 694: 18) в _drainQueueStep (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 138: 12) в _drainQueue (D: \ Web \ FactElect \ node_modules \ bluebird\ js \ release \ async.js: 131: 9) в Async._drainQueues (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 147: 5) в Immediate.Async.drainQueues (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 17: 14) в runCallback (timers.js: 810: 20) в tryOnImmediate (timers.js: 768: 5) в processImmediate [как _immediateCallback] (timers.js: 745: 5) Envio de factura № 1 a las Sat 15 сентября 2018 07:30:55 GMT-0500 (Hora est. Pacífico, Sudamérica) Ошибка типа: client.POSTAsync не работает в мыло.createClientAsync.then (D: \ Web \ FactElect \ route \ inicial.js: 155: 15) в tryCatcher (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ util.js: 16: 23) в Promise._settlePromiseFromHandler (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ advance.js: 512: 31) в Promise._settlePromise (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ обещание.js:569: 18) в Promise._settlePromise0 (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ обещание.js: 614: 10) в Promise._settlePromises (D: \ Web \ FactElect \ node_modules \ bluebird \ js \release \ обещание: 694: 18) на _drainQueueStep (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 138: 12) на _drainQueue (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 131: 9) в Async._drainQueues (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 147: 5) в Immediate.Async.drainQueues (D: \ Web \ FactElect \ node_modules \ bluebird \ js \ release \ async.js: 17: 14) в runCallback (timers.js: 810: 20) в tryOnImmediate (timers.js): 768: 5) at processImmediate [как _immediateCallback] (timers.js: 745: 5)

Я не понимаю, почему он не работает.

спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...