简体   繁体   English

使用Spring MVC创建用于处理大量请求和响应的Spring Rest Web Services

[英]Creation of Spring Rest Web Services using Spring MVC for handling large request and responses

I have worked with SOAP type web-services with Axis 2 implementation where we could define contract in the form of WSDL, and that was coupled with XSD with web-services for handling the request parameters. 我使用Axis 2实现来处理SOAP类型的Web服务,在这里我们可以以WSDL的形式定义协定,并且通过Web服务将XSD与Web服务一起处理请求参数。

Where as in my current project I am going to use Spring MVC for implementation, as I am new with Spring MVC, i am unable to figure out how can I handle large requests and responses where as i have done a lot of googling and from that i got following results. 就像在我当前的项目中一样,我将使用Spring MVC来实现,因为我是Spring MVC的新手,我无法弄清楚在做了大量的搜索工作之后,如何处理大型请求和响应。我得到了以下结果。

Can create WADL from Spring MVC by using some java coding and a plugin. 可以使用一些Java编码和插件从Spring MVC创建WADL。

But i didn't get any link for a contract. 但是我没有任何合同链接。

Please help me for this. 请帮我。

You can go through http://www.ibm.com/developerworks/webservices/library/wa-spring3webserv/ How big is your request/response? 您可以浏览http://www.ibm.com/developerworks/webservices/library/wa-spring3webserv/您的请求/响应有多大? It shouldn't matter anyway. 无论如何都没关系。

If it is file that you want to send as a request, you can use MultipartFile. 如果它是您要作为请求发送的文件,则可以使用MultipartFile。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM