开发者

Is there a proxy server/apache module I can install that will convert an XML SOAP response to JSON?

I'm connecting to a remote web service which I'd prefer to call with ajax and the service (FedEx Services API) doesn't appear to support JSON formatted response开发者_C百科s.

Is there a proxy server/apache that will convert the response from XML/SOAP into JSON so my Javascript can easily use it?


So you are looking to go from XML to JSON?

Well I am not sure what good this would do you if the proxy is not on your server due to the same origin policy.

Anyway, here is an example of xml-to-json from http://jsonproxy.appspot.com/ of W3C's note.xml


Jsonproxy.appspot.com only converts the first node of a collection, so you can loose most of the data in the XML, try http://networkprogramming.wordpress.com/2011/07/19/a-better-xml-to-json-proxy/ as an alternative

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜