简体   繁体   中英

SOAP client with node.js and socket.io

I am trying to create a web app using Node.js. I want to use socket.io to stream data that I pull from a soap service. I am having trouble finding any information about this. what would be the best option for this situation.

right now:

  • I am using PHP to call a soap service and retrieve data.
  • my client side java script makes interval calls using AJAX to the PHP function containing the SOAP call.(this is inefficient which is why I would like to switch to socket.io setup).

What I would like to do:

  • Node.js app with express possibly
  • SOAP call using PHP or Node.js if possible.
  • stream data from SOAP to client side to be viewed using socket.io

I am not sure if this setup is possible and I have not found and good documentation on this. would this be possible ? if so, what would be the best method or is there a tutorial for this?

There is excellent node.js module called 'soap', you may get it via npm install soap . Also see the docs at https://github.com/milewise/node-soap .

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