Web服务参数设计 [英] Web service parameter designing

查看:77
本文介绍了Web服务参数设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用C#开发ASP.NET Web服务。某些Web方法接受6个以上的参数。因此,我决定通过创建自定义类作为参数来使用复杂参数。但我想知道,设计
的最佳做法是接受大量参数的web方法。是每个值传递的参数,复杂参数还是任何其他方式?

I am developing an ASP.NET Web service by using C#. Some web method accepts more than 6 parameters. Therefore, I have decided to use a complex parameter by creating a custom class as a parameter. But I am wondering, what is the best practice to designing a web method which accepts a large number of parameters. Is it parameter for each value passing, complex parameter or any other way?

/ R

推荐答案

相同常规方法中的约定适用 - 所以你应该使用一个单独的类。
same convention as in regular method applies - so you should use a separate class.


这篇关于Web服务参数设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆