简体   繁体   中英

Accessing C# webservices from PHP

I have several web-services that I need to regularly query for data. These services were written in C#, and error out when I try to connect to them via mono. I am able to connect to them via c# and get whatever data I need. All data is in json, if that matters.

I have a php-based website that needs to be able to query these web-services. I'm looking for the best way to get this data from C# to PHP.

My idea so far is to have c# write to a database, then query the db from PHP. While this is an option, I'd prefer to be able to have php initiate the query, providing actual real-time data.

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