Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to invoke a ASP.NET Web API from Java

I need to implement a function using java code to invoke an ASP.NET Web API on remote server. Is there any library that I could use, like axis2 for Web Services? I think the Apache HttpClient could help me to create a requrest, is there any other choice? Thanks in advance.

like image 766
ghostonleft Avatar asked May 21 '26 13:05

ghostonleft


1 Answers

Basically, Asp.net Web API is simply a Restful Service that can be call from many technologies (javascript, C#, java, php, ...) Unlike Soap formatting, it is much more easier to call this kind of service. Try with your browser !

You can find many librairies on google or in SO ( here and here).

like image 136
Cybermaxs Avatar answered May 23 '26 03:05

Cybermaxs