简体   繁体   中英

How to use SOAP in Meteor.js?

I'm the beginner in 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".

Make sure the code that uses Soap eg.

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 . Maybe you could submit a fix to the git repo and get the package updated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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