0

我正在运行一个 Node.js 服务,该服务使用节点肥皂将肥皂响应从另一个服务转换为 JSON,然后返回给调用者。它还可以在其他方面发挥作用,将 JSON 转换为 Soap 并将其交付给服务。

但是在调用几个服务时出现以下错误:

TypeError: Object #<ServerResponse> has no method 'en'
at C:\...\soap.js:47:11
at C:\...\node_modules\soap\lib\client.js:84:13
at C:\...\node_modules\soap\lib\client.js:150:24
at Request._callback (C:\...\node_modules\soap\lib\http.js:48:13)
at Request.self.callback (C:\...\node_modules\soap\node_modules\request\index.js:148:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (C:\...\node_modules\soap\node_modules\request\index.js:876:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (C:\...\node_modules\soap\node_modules\request\index.js:827:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)

我一直找不到任何人发布相同的错误,也找不到这可能是什么。

所有帮助表示赞赏。

4

1 回答 1

0

编辑C:\...\soap.js:47:11并修复调用.en而不是.on. 我认为这只是一个错字。

于 2013-05-28T18:13:52.490 回答