开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜