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 1146
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.goo glegroups.com.. . what are you talking about? This is a dotnet group?
Here's the crosspost list.
microsoft.publi c.dotnet.langua ges.vb,microsof t.public.vb.gen eral.discussion ,it.comp.lang.v isual-basic
Of those, only one is appropriate for dotNet related questions (afaik). No
group that starts with "microsoft.publ ic.vb" has anything to do with dotNet.
I have no idea what version of VB "it.comp.lang.v isual-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.v isual-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.goo glegroups.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 that the class must
be marked as Serializable.
Can this have something to do with some of the members not beeing of
serializable types? I thought it would be neat to put my custom object in
the viewstate. How do I solve this?
Does anyone have a...
|
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 are marked with the compiler-attribute
(see also code-snippet at the end of the message).
It is no problem to serialize a instance of class C, but I got the following
error-message if I try to serialize a instance of class D:
An unhandled...
|
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 query-string
flag is used to indicate to the page whether it should instantiate
a new instance of the object or access an existing instance from
the calling page.
On the both pages I have a property of the page which is an
instance of this custom...
|
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 good while and I'm getting really
frustrated now!
My problem is this - my custom controls periodically disappear from my
| |
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 objects will
have always have in memory the inherited versions (all properties).
However, when sending messages, the sender may only send a scaled back
version (base object) or the full version (inherited object) to the
remote receiver depending...
|
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 class objects to be used in the program.
EX: Used xsd.exe to turn VendorA_Request.XSD into VendorA_Request.cs
EX: Used xsd.exe to turn VendorA_Response.XSD into VendorA_Response.cs
|
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 techniques are not feasible)
The question is;
Given that I have a Person object with a private set for id.
What is the recommended approac in passing that object to the web service
|
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 set the serilization to Binary and use
it in remoting on Windows XP.
Is there a way around this?
--
Mike
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |