473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Serializing Complex Objects in Web Services

JEB
I have an object that wrote the serialization for to use with Remoting and
now I would like to use it with Web Services. The object consist of a short
and a string value (lets call it Item). This object is then contained in an
array that constains at string (lets call it Column). Then this object is
stored in an array as well (lets call it Row). So, I have the following
setup:

(The Hierarchy)
Row
--> Column
-----> Item

When I do the WSDL on the Web Service to generate the proxy. I get [][]Item
and it ignores the Row and Column object. How can I explicitly serialize the
hierarchy? Any help or links to understanding Xml Serialization or SOAP
serialization is appreciated.
Nov 23 '05 #1
2 5443
DC
Sorry, I don't get it. Can you show us some code?

what does the type look like?
what is the method signature?

-Dino
"JEB" <JE*@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
I have an object that wrote the serialization for to use with Remoting and
now I would like to use it with Web Services. The object consist of a
short
and a string value (lets call it Item). This object is then contained in
an
array that constains at string (lets call it Column). Then this object is
stored in an array as well (lets call it Row). So, I have the following
setup:

(The Hierarchy)
Row
--> Column
-----> Item

When I do the WSDL on the Web Service to generate the proxy. I get
[][]Item
and it ignores the Row and Column object. How can I explicitly serialize
the
hierarchy? Any help or links to understanding Xml Serialization or SOAP
serialization is appreciated.

Nov 23 '05 #2
JEB
FYI - I found the answer here:
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

What I had to do is make the top-most array serialize itself and ALL of its
contents and it works. I also had to define an XSD schema after implementing
the IXmlSerializable interface.

Thanks,
JEB

"JEB" wrote:
I have an object that wrote the serialization for to use with Remoting and
now I would like to use it with Web Services. The object consist of a short
and a string value (lets call it Item). This object is then contained in an
array that constains at string (lets call it Column). Then this object is
stored in an array as well (lets call it Row). So, I have the following
setup:

(The Hierarchy)
Row
--> Column
-----> Item

When I do the WSDL on the Web Service to generate the proxy. I get [][]Item
and it ignores the Row and Column object. How can I explicitly serialize the
hierarchy? Any help or links to understanding Xml Serialization or SOAP
serialization is appreciated.

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martin. D. Waller | last post by:
Hello, Does anyone kow of any good examples or documents that talk about serializing complex objects and object graphs to XML. Basically I would like to have a class that references other...
1
by: Ivo Bronsveld | last post by:
All, I have quite a challenging task ahead of me. I need to write an object model (for code access) based on a schema, which cannot be made into a dataset because of it's complexity. So I...
2
by: Tobias Zimmergren | last post by:
Hi, just wondering what serializing really is, and howto use it? Thanks. Tobias __________________________________________________________________ Tobias ICQ#: 55986339 Current ICQ status: +...
1
by: Chris Dunaway | last post by:
Consider the following simple class: <Serializable()> _ Public Class SimpleClass Private m_AString As String Private m_AByteArray As Byte() Public Property AString() As String . . . End...
2
by: PeteZ | last post by:
Can someone help me here. I'm having trouble finding details on how complex objects (eg. an object created in a code behind page that has imbedded object references, collections etc imbedded in...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
0
by: Leonid Levin | last post by:
Hi, I am builidng an ASP.Net web application consuming a .Net web service. The web service requires me to log in and keeps my login status in its own session state. I don't want to log in every...
5
by: | last post by:
I've got a basic "chat" infrastructure that can send objects across the wire, but I'm running into a few issues with trying to send multiple messages and things behaving differently in debug and...
4
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have been experimenting with how to properly store objects into persistent application settings in user.config. I have read everything I could on MSDN (and elsewhere) and I have successfully...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.