简体   繁体   English

如何在Meteor.js中使用SOAP?

[英]How to use SOAP in Meteor.js?

I'm the beginner in MeteorJS. 我是MeteorJS的初学者。 Now I have a problem, I need to parse it http://www.nbrb.by/Services/ExRates.asmx?WSDL For meteor.js I found this package https://atmospherejs.com/zardak/soap But I don't know how to work with it, because when I try to use it: "Soap is not defined". 现在我有一个问题,我需要解析它http://www.nbrb.by/Services/ExRates.asmx?WSDL对于meteor.js,我发现了这个包https://atmospherejs.com/zardak/soap但是我不知道不知道如何使用它,因为当我尝试使用它时:“未定义肥皂”。

Make sure the code that uses Soap eg. 确保使用Soap的代码。

var client = Soap.createClient(url);

is on the server. 在服务器上。 Since from the Atmosphere page: "node-soap isn't packaged for browser usage and thus, meteor-soap is avalible only server-side." 从“大气”页面开始:“未打包节点肥皂以供浏览器使用,因此,流星肥皂仅在服务器端可用。”

Moving it to my server folder fixed that problem for me. 将其移至我的服务器文件夹后,为我解决了该问题。

I think this package is broken... i don't see an api.export of the Soap object for you to use in package.js . 我认为这个程序包坏了...我没有在package.js中看到Soap对象的api.export Maybe you could submit a fix to the git repo and get the package updated. 也许您可以向git repo提交修复,并更新软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM