javascript 您如何让 Node.js 与 SOAP 服务对话?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3640292/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you make Node.js talk to a SOAP service?
提问by Wayne Bloss
I can't seem to find any examples on this. I see a listing on github for Node that says "Newspaper Club – Uses node.js for wrapping a nasty SOAP interface to InDesign Server.", but I don't see any code.
我似乎找不到任何关于此的示例。我在 github 上看到 Node 的清单,上面写着“报纸俱乐部 – 使用 node.js 将讨厌的 SOAP 接口包装到 InDesign Server。”,但我没有看到任何代码。
Thank you.
谢谢你。
EDIT: I'm guessing that I could just find any javascript/SOAP kit and port it to Node. Any suggestions on a good one?
编辑:我猜我可以找到任何 javascript/SOAP 工具包并将其移植到 Node.js 中。有什么好的推荐吗?
采纳答案by Maks
I've found what looks like a decent SOAP client for Node.js on github
我在 github 上发现了一个像样的 Node.js SOAP 客户端
回答by Wayne Bloss
After spending some time researching this, the consensus seems to be that you don't want to do SOAP with Node.js. What you want to do is make Node.js listen for events and make your non-Node services push data at Node using Http.
在花了一些时间研究这个之后,共识似乎是你不想用 Node.js 做 SOAP。你想要做的是让 Node.js 监听事件,让你的非 Node 服务使用 Http 在 Node 上推送数据。
UPDATE: I was pointing out what the consensus of the Node community at the time. That was not an opinion that I shared, but that was the most common response that I got and there was no stable SOAP client at the time. I have now remarked the answer. Thank You.
更新:我指出了当时 Node 社区的共识。这不是我同意的意见,但这是我得到的最常见的回应,当时没有稳定的 SOAP 客户端。我现在已经评论了答案。谢谢。

