By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,833 Members | 2,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,833 IT Pros & Developers. It's quick & easy.

Serilization of custom object

P: n/a
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

Mar 30 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
<Sq*****@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.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


First of all, what language are you using. If anything.Net, see below....

You'll want to post that question in a .Net group.
They all contain "dotnet" or "vsnet" in their names.
This and all other groups on the MS server that start with
"microsoft.public.vb"
are for VB Classic (mostly VB5/6) and were in existance long before any .Net
products were released. While some of the code looks the same, they are very
different products and require a different set of groups.

Try one of these:
news://news.microsoft.com/microsoft....dotnet.general
news://news.microsoft.com/microsoft....t.languages.vb
news://news.microsoft.com/microsoft....es.vb.controls
news://news.microsoft.com/microsoft....mework.interop
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Mar 30 '06 #2

P: n/a
what are you talking about? This is a dotnet group?

Mar 30 '06 #3

P: n/a
On 2006-03-30, squiggie <Sq*****@gmail.com> wrote:
what are you talking about? This is a dotnet group?


best of all, such a crossposting should be avoided.

--
ciao, hal
Mar 30 '06 #4

P: n/a
"squiggie" <Sq*****@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
what are you talking about? This is a dotnet group?


Here's the crosspost list.

microsoft.public.dotnet.languages.vb,microsoft.pub lic.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
Mar 30 '06 #5

P: n/a
I see, my apologies. Thanks for the heads up.

Mar 30 '06 #6

P: n/a
"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.
Mar 30 '06 #7

P: n/a
Scuigge,

Can you try this first.

http://www.vb-tips.com/default.aspx?...c-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?...c-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

<Sq*****@gmail.com> schreef in bericht
news:11**********************@v46g2000cwv.googlegr oups.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

Mar 31 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.