自定义类型 [英] Custom types

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

问题描述

哪种方法是向Web服务/从Web上发送/返回自定义类型的最佳方便方式?
服务?序列化?


网络服务不可公开访问,它是n层

申请的一部分。

TIA

解决方案

Nikolay,


在我看来,这是只需使用它,大多数序列化都是通过

VSNet完成的。如果没有arraylist,你必须决定你做什么,但是

它将始终由VSNet序列化为XML。


只是我的想法,


Cor


" Nikolay Petrov"

哪种方式最便捷/后退自定义类型来自/来自
Web服务?序列化?

Web服务不可公开访问,它是n层
应用程序的一部分。

TIA



Cor Ligthert写道:

Nikolay,

在我看来它只是使用它,大多数序列化由VSNet完成。
当不像arraylist那样你必须决定你做什么,但是它总是被VSNet序列化为XML。

只是我的想法,

Cor


我试过从webservice返回一些自定义类型。一些数据

确实可以通过,但是在*生成的*类中,只有*某些*相似

到原始类型。你知道是否有某种方法可以使用相同类型的呼叫(除了创建手动和复制

所有值)?< br $>

Hans Kesting


" Nikolay Petrov"

这是最方便的方式向/从Web服务发送/返回自定义类型?序列化?

Web服务不可公开访问,它是n层
应用程序的一部分。

TIA



我最需要的是返回不同类型的数据作为字符串,

整数,所以,目前我不需要返回类或类似

的东西。


使用哈希表是否合适?

" Hans Kesting" <是ne *********** @ spamgourmet.com>在消息中写道

新闻:Oj ************** @ TK2MSFTNGP12.phx.gbl ...

Cor Ligthert写道:< blockquote class =post_quotes> Nikolay,

在我看来它只是在使用它,大多数序列化都是由VSNet完成的。当不像arraylist那样你必须决定你做什么,但是它总是被VSNet序列化为XML。

只是我的想法,

Cor



我试过从webservice返回一些自定义类型。有些数据确实可以通过,但是在*生成的*类中,它只与原始类型具有*某些*
相似性。你知道是否有某种方法让调用
方使用相同的类型(除了创建手工和复制
所有值)?

汉斯Kesting

" Nikolay Petrov"

这是发送/返回自定义类型的最佳方便方式
往返Web服务?序列化?

Web服务不可公开访问,它是n层
应用程序的一部分。

TIA




Which is the best and convenient way to send/retrun custom types to/from Web
Service? Serialization?

The web service is not to be public accessible, it''s a part of n-tier
application.

TIA

解决方案

Nikolay,

In my opinion it is just using it, most serialization is done for you by
VSNet. When not as with an arraylist you have to decide what you do, however
it will always be serialized by VSNet to XML.

Just my thought,

Cor

"Nikolay Petrov"

Which is the best and convenient way to send/retrun custom types to/from
Web Service? Serialization?

The web service is not to be public accessible, it''s a part of n-tier
application.

TIA



Cor Ligthert wrote:

Nikolay,

In my opinion it is just using it, most serialization is done for you
by VSNet. When not as with an arraylist you have to decide what you
do, however it will always be serialized by VSNet to XML.

Just my thought,

Cor

I have tried returning some custom type from a webservice. Some data
did get through, but in a *generated* class that only has *some* resemblance
to the original type. Do you know if there is some way to have the calling
side use the same type (apart from creating that "by hand" and copying
all values)?

Hans Kesting

"Nikolay Petrov"

Which is the best and convenient way to send/retrun custom types
to/from Web Service? Serialization?

The web service is not to be public accessible, it''s a part of n-tier
application.

TIA



What I need mostly is to return data with different types as strings,
integers an so, currently I don''t need to return classes or something like
them.

Is it appropriate to use hash tables?
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...

Cor Ligthert wrote:

Nikolay,

In my opinion it is just using it, most serialization is done for you
by VSNet. When not as with an arraylist you have to decide what you
do, however it will always be serialized by VSNet to XML.

Just my thought,

Cor



I have tried returning some custom type from a webservice. Some data
did get through, but in a *generated* class that only has *some*
resemblance
to the original type. Do you know if there is some way to have the calling
side use the same type (apart from creating that "by hand" and copying
all values)?

Hans Kesting

"Nikolay Petrov"

Which is the best and convenient way to send/retrun custom types
to/from Web Service? Serialization?

The web service is not to be public accessible, it''s a part of n-tier
application.

TIA




这篇关于自定义类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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