php .net数据交换[关闭]

php .net数据交换[关闭]

问题描述:

We have 2 web applications, one running in php/apache and the other one is in .net/IIS. How can we possibly exchange data between these two web applications?

Basically the process is we exchange data from/to our php web application and the .net web application using the REST API. How can we do that in php...? I never had any experience handling .net web applications and communicating with them.

Any suggestions and ideas are really appreciated. thanks!

我们有2个Web应用程序,一个在php / apache中运行,另一个在.net / IIS中。 我们怎样才能在这两个Web应用程序之间交换数据? p>

基本上,我们使用REST API从/向我们的php Web应用程序和.net Web应用程序交换数据。 我们怎么能在PHP中做到这一点......? 我从未有过处理.net网络应用程序和与他们沟通的经验。 p>

任何建议和想法都非常感谢。 谢谢! p> div>

Do you need the exchange to happen on the web pages? Or are either one or both web services? Either way, the best way to transfer data like that is using JSON (http://www.w3schools.com/json/) - it does not have the structure or overhead of XML and .NET, PHP and JavaScript can iterate through the data.

I hope this helps.