开发者

Can we call RESTful webservices created using Spring REST support from .NETapplication?

开发者 https://www.devze.com 2023-03-05 17:03 出处:网络
We have created RESTful web services using Spring\'s REST support. We need to call those web services from .NET aplication.

We have created RESTful web services using Spring's REST support.

We need to call those web services from .NET aplication.

Is it possible to do this i.e. c开发者_Go百科alling web services written in java from .NET?


As long as you can deserialize objects serialized by the remote REST service, you wont have any difficulty using it in .NET. RESTful services are meant to be shared access multiple domains.

Especially if you plan on using WCF as a client the REST services, there is a brand new API emerging which is absolutely fantastic: http://wcf.codeplex.com/wikipage?title=WCF%20HTTP


Just use Spring.NET REST Client Framework using the RestTemplate : http://springframework.net/index.html#spring-rest-1.0.0-released

I think you will not get lost!

  • Bruno


REST is HTTP, so any client that can send an HTTP request to your service and unmarshal an HTTP response can interact with it.

0

精彩评论

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