将自定义对象传递给 Web 服务 [英] Passing a custom object to the web service

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

问题描述

我正在使用 C# 并且我有 Windows 窗体和网络服务...

I'm using C# and I have windows form and web service...

我有一个要发送到网络服务的自定义对象..

I have a custom object that I want to send to the web service..

有时,对象可能包含大量数据..

sometime, the object may contain a huge of data..

作为最佳性能,将自定义对象发送到网络服务的最佳方式是什么?

as a best performance, what is the best way to send a custom object to the web service?

推荐答案

Web 服务旨在处理自定义对象,只要它们最终分解为某些标准类型即可.根据发送大量数据,有 MTOM 和更老的 DIME.如果它在 LAN 内并且针对其他 .NET 客户端,您可能需要研究非 Web 服务方式,例如远程处理或普通 http.

Web Services are designed to handle custom objects as long as they eventually breakdown into some standard types. As per sending a huge data, there are MTOM and older DIME. If it's within LAN and against other .NET client, you might want to look into non-Web Services ways like Remoting or plain http.

请参阅 如何:启用 Web 服务以发送和接收大量数据.

这篇关于将自定义对象传递给 Web 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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