|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Serilization of custom objectweb 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 <Squi***@gmail.com> wrote in message
news:1143738552.139899.297720@v46g2000cwv.googlegroups.com... First of all, what language are you using. If anything.Net, see below....> 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 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.public.dotnet.general news://news.microsoft.com/microsoft.public.dotnet.languages.vb news://news.microsoft.com/microsoft.public.dotnet.languages.vb.controls news://news.microsoft.com/microsoft.public.dotnet.framework.interop -- Ken Halter - MS-MVP-VB - Please keep all discussions in the groups.. DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm "squiggie" <Squi***@gmail.com> wrote in message Here's the crosspost list.news:1143753089.187606.267110@g10g2000cwb.googlegroups.com... > what are you talking about? This is a dotnet group? 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 "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, butsince 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. Scuigge,
Can you try this first. http://www.vb-tips.com/default.aspx?ID=7ffd296f-9e81-47e6-88dc-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?ID=7ffd296f-9e81-47e6-88dc-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<Squi***@gmail.com> schreef in bericht Show quoteHide quote 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 > |
|||||||||||||||||||||||