Home > Archive > Visual Basic > March 2006 > Serilization of custom object
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Serilization of custom object
|
|
| Squigge@gmail.com 2006-03-30, 6:56 pm |
| Hello, I've been trying to serialize a custom object for transfer to a
web services and I'm running into a lot of problems. First of all, I'm
wanting to serialize the entire object, both private and public
properties. It seems as though when I try to accomplish this using the
XmlSerializer object, BinaryFormatter object, or the SoapFormatter
object, it will only do the public properties and methods. Is there
another object that will do what I'm wanting and I'm just missing it?
Also, I'd like to serialize this to memory and then just invoke the
method of the web service. It seems as though when using the
SoapFormatter and BinaryFormatter, I have to use a sttream object and
eventually put the data from memory to a byte array. This is
problematic because to transfer this byte array to my web service, I'd
have to loop through the array assigning the elements of the array to a
string var and then use this string var as the paramater to the web
service and parse it on the other side. This seems convulated and there
has to be another way of doing this. If anyone has any input and would
be willingto work on this with me, please let me know.
Thanks
squiggie
| |
|
|
| squiggie 2006-03-30, 6:56 pm |
| what are you talking about? This is a dotnet group?
| |
| Ken Halter 2006-03-30, 6:56 pm |
| "squiggie" <Squigge@gmail.com> wrote in message
news:1143753089.187606.267110@g10g2000cwb.googlegroups.com...
> what are you talking about? This is a dotnet group?
Here's the crosspost list.
microsoft.public.dotnet.languages.vb,microsoft.public.vb.general.discussion,it.comp.lang.visual-basic
Of those, only one is appropriate for dotNet related questions (afaik). No
group that starts with "microsoft.public.vb" has anything to do with dotNet.
I have no idea what version of VB "it.comp.lang.visual-basic" supports.
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
| |
| squiggie 2006-03-30, 6:56 pm |
| I see, my apologies. Thanks for the heads up.
| |
| Paperino 2006-03-30, 6:56 pm |
| "Ken Halter" ha scritto nel messaggio
> I have no idea what version of VB "it.comp.lang.visual-basic" supports.
This is an IT.alian ;-) VB group. Historically "classic-VB" oriented, but
since there isn't a .NET localized NG, we accept either "style" question;
preferably with the correct tag in the subject or at least in the body.
Alas, italian language only :-).
Bye, G.
| |
| Cor Ligthert [MVP] 2006-03-31, 3:55 am |
| Scuigge,
Can you try this first.
http://www.vb-tips.com/default.aspx...dc-61641f5c8d9d
I am not sure anymore if you can use it in the webservice, but I thought it
would.
For those who wants this in Italian.
http://www.vb-tips.com/default.aspx...dc-61641f5c8d9d
:-))
As well replied in the newsgroups from VB from the previous millennium, to
show how easy the VB from this millennium is.
:-))
I hope this helps,
:-)
Cor
<Squigge@gmail.com> schreef in bericht
news:1143738552.139899.297720@v46g2000cwv.googlegroups.com...
> Hello, I've been trying to serialize a custom object for transfer to a
> web services and I'm running into a lot of problems. First of all, I'm
> wanting to serialize the entire object, both private and public
> properties. It seems as though when I try to accomplish this using the
> XmlSerializer object, BinaryFormatter object, or the SoapFormatter
> object, it will only do the public properties and methods. Is there
> another object that will do what I'm wanting and I'm just missing it?
> Also, I'd like to serialize this to memory and then just invoke the
> method of the web service. It seems as though when using the
> SoapFormatter and BinaryFormatter, I have to use a sttream object and
> eventually put the data from memory to a byte array. This is
> problematic because to transfer this byte array to my web service, I'd
> have to loop through the array assigning the elements of the array to a
> string var and then use this string var as the paramater to the web
> service and parse it on the other side. This seems convulated and there
> has to be another way of doing this. If anyone has any input and would
> be willingto work on this with me, please let me know.
>
> Thanks
> squiggie
>
|
|
|
|
|