Click here to Skip to main content
15,125,972 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
kindly told me is web API c# plate form independent, i want a web service that is use in php and dotnet mvc both.
i use web api or WCF services

i want to send data in sql server and also received data from sql server

Kindly help me thanks
Kindly help me thanks

Kindly help me thanks

jhghgjhgjgjhgjhgjhgjhgjhgjhgjg

What I have tried:

kindly told me is web API c# plate form independent, i want a web service that is use in php and dotnet mvc both.
i use web api or WCF services

i want to send data in sql server and also received data from sql server

Kindly help me thanks
Kindly help me thanks
Kindly help me thanks
Posted
Updated 22-Jul-18 23:53pm
Comments
Richard MacCutchan 19-Jul-18 3:51am
   
Yes, or no. What API are you talking about? your question is far from clear.
Richard Deeming 19-Jul-18 9:54am
   
I assume you mean "platform", not "plate form".

And there's no need for the junk and repeated text in your question.
Mike V Baker 19-Jul-18 13:22pm
   
A Web API service written in C# will return data in a specific format (typically XML or JSON) in response to HTTP requests. You can access the service from either a .NET MVC app or an app written in PHP. The language used to write the clients consuming the service is irrelevant to the language used in the service. There are libraries in both .NET and in PHP to retrieve and parse the results into something you can use in your app.

1 solution

You can choose either, if you choose WCF then you will have to go through configurations to run it on HTTP protocol, However the WEB API are solely developed to work on HTTP protocol. if you have any future plans to use this API to run on other protocols then go for WCF else green lights to WEB API.
   
Comments
mtufail 23-Jul-18 5:53am
   
What other protocols means?
I want to develop web API in C# mvc , and use this api for integration to other website with my database that website may be in php, asp.net mvc, .aspx or any other language
sachin.vishwa90 23-Aug-18 10:44am
   
The other protocol means, SOAP protocol. But as you said your site will be in PHP then go for webapi. its lightweight and fast.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900