How to handle XML services in AngularJS?

后端 未结 5 1180
误落风尘
误落风尘 2020-11-27 04:37

My company has thousands of existing xml web services and is starting to adopt AngularJs for new projects.

The tutorial over at http://angularjs.org/ uses json servi

5条回答
  •  北海茫月
    2020-11-27 05:02

    I'm finding x2js is working quite well: https://code.google.com/p/x2js/

    The client takes in the XML, no need to mess with the angular services. A simple quick conversion and, voila, you have a JSON API that mimcs the XML document. Seems to take care of all the use cases I've run into.

提交回复
热议问题