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 7 1133
what are you talking about? This is a dotnet group?
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
"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
I see, my apologies. Thanks for the heads up.
"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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: amethyste |
last post by:
hello,
This is my sample (simplified):
public class Binom
{
public string _Value;
|
by: mortb |
last post by:
I have a class that I want to serialize to into the viewstate of an aspx
form.
I've specified the attribute on top of the class definition,
compiled but when I browse the page I get an excepiton...
|
by: Stephan Schlicker |
last post by:
Hi everyone
I have a serious problem with the serilization of an user-defined object in
C#. I would like to serialize an object of class D which inherits from class
C. Class C as well as class D...
|
by: Scott Zabolotzky |
last post by:
I'm trying to pass a custom object back and forth between forms.
This custom object is pulled into the app using an external reference
to an assembly DLL that was given to me by a co-worker. A...
|
by: Suzanne |
last post by:
Hi all,
I'm reposting this message as I'm experiencing this problem more and
more frequently :
I really hope someone out there can help me as I've been tearing my
hair out on this one for a...
| |
by: porter_wss |
last post by:
I am a bit confused on serializing objects and inherited objects. What
I am trying to accomplish is creating a base object and an inherited
object with additional properties. The sender of these...
|
by: RJA |
last post by:
Hiyas,
Using VS .net 2003.
Setting up a Webservice that accepts 3rd party vendor designed XML requests
and returns a filled XMLDocument with response data.
Vendor XSDs were serialize into...
|
by: Greger |
last post by:
Hi,
I am building an architecture that passes my custom objects to and from
webservices. (Our internal architecture requires me to use webservices to any
suggestion to use other remoting...
|
by: Mike9900 |
last post by:
If you do .NET Remoting and Binary Serilization with DataSet it does not work.
If you set the Serialization type to Binary on DataSet, it does not seralize
it correctly on windows xp. To do this...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |