473,809 Members | 2,780 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Serializing unknown objects

I bet this question has been asked quite a bit, but if someone can point me
in the right direction, I would be very grateful.

I would like to write a assembly (dll) that one of the functions will act as
a task router. This router will take different objects of many types, and
pass that object to the correct webservice for handling. Seems that doing
this creates quite a bit of serialization issues, especially when the
webservice returns a modified object to the task router for forwarding to
the client.

Example:

Client App -> Task Router -> Web Service (Altered object)
Web Service -> Task Router -> Client App

How can I make the task router not care about class types. I really don't
want to code every possible class type into the router as new apps will also
use this. Is there a method for doing what I am trying, seems there should
be a way to avoid the constant updating and maintenance.

Thanks,

Chris
Nov 12 '05 #1
2 1624
AA
My opinion..

Use reflection for dynamic load of classes and serialization/deserialization
AA
"Chris Smith" <us**@email.com > wrote in message
news:e9******** *****@TK2MSFTNG P11.phx.gbl...
I bet this question has been asked quite a bit, but if someone can point me in the right direction, I would be very grateful.

I would like to write a assembly (dll) that one of the functions will act as a task router. This router will take different objects of many types, and
pass that object to the correct webservice for handling. Seems that doing
this creates quite a bit of serialization issues, especially when the
webservice returns a modified object to the task router for forwarding to
the client.

Example:

Client App -> Task Router -> Web Service (Altered object)
Web Service -> Task Router -> Client App

How can I make the task router not care about class types. I really don't
want to code every possible class type into the router as new apps will also use this. Is there a method for doing what I am trying, seems there should
be a way to avoid the constant updating and maintenance.

Thanks,

Chris

Nov 12 '05 #2
My opinion:

Establish a baseline message type (defined in XSD) that includes an
extension of xsd:any. The router accepts the baseline and routes based on
what is typed in XSD. The senders and receivers can use any specialized
version of that baseline.

check out these references
http://www.xfront.com/ExtensibleContentModels.html
http://www.w3schools.com/schema/schema_complex_any.asp
and
http://msdn.microsoft.com/library/en...ce04162003.asp

-Dino
"AA" <aa@personal.ne t.py> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
My opinion..

Use reflection for dynamic load of classes and serialization/deserialization

AA
"Chris Smith" <us**@email.com > wrote in message
news:e9******** *****@TK2MSFTNG P11.phx.gbl...
I bet this question has been asked quite a bit, but if someone can point me
in the right direction, I would be very grateful.

I would like to write a assembly (dll) that one of the functions will act as
a task router. This router will take different objects of many types,

and pass that object to the correct webservice for handling. Seems that doing this creates quite a bit of serialization issues, especially when the
webservice returns a modified object to the task router for forwarding to the client.

Example:

Client App -> Task Router -> Web Service (Altered object)
Web Service -> Task Router -> Client App

How can I make the task router not care about class types. I really don't want to code every possible class type into the router as new apps will

also
use this. Is there a method for doing what I am trying, seems there should be a way to avoid the constant updating and maintenance.

Thanks,

Chris


Nov 12 '05 #3

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

Similar topics

0
1455
by: MicFra | last post by:
hi, i got a little problem with pdf-serializing after updating from cocoon 2.1.2 to 2.1.4. following scenario: - using serializer org.apache.cocoon.serialization.FOPSerializer, with name fo2pdf and mime-type application/pdf - using it in
1
12642
by: Christopher Pragash | last post by:
Hello all, I'm trying to persist an object of type Arraylist into XML using the following the XMLSerializer and it returns an "Unknown" Error. I'm able to serialize and deserialize the arraylist object using Binary format but unable to do so using XML formatter. Is it possible to serialize an ArrayList object into XML? If somebody could pass on some sample code that would be really great. Thanks,
4
5424
by: John Vottero | last post by:
When a class contains a TimeSpan property, XmlSerializer doesn't work. A TimeSpan property is serialized like: <MySpan /> I've read a number of posts that talk about why this happens and how to work around it. My question is from a slightly different angle. What can I do to my value type structures so that XmlSerializer can serialize them properly?
1
2089
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 created a couple of objects and serializing it into XML based upon the schema works perfectly. The XML / Schema looks something like this:
2
3526
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: + More ways to contact me __________________________________________________________________
4
3621
by: Dave Veeneman | last post by:
When does serializing objects make more sense than persisting them to a database? I'm new to object serialization, and I'm trying to get a feel for when to use it. Here is an example: I'm writing an accounting application. I have a chart of accounts in the form of a containment hierarchy. A GeneralLedger contains a number of Accounts, and each of these Accounts can contain a Aubledger, which contains its own Accounts, and so on. The...
0
1241
by: rein.petersen | last post by:
Hi All, I've been working on a means to create dynamic asemblies (modules actually) from parsing XSD schemas which creates a perfect .net representation of the schema at hand (dynamically). My next hurdle is to deserialize xml documents (that conform to the schemas from which dynamic modules were derived) to the types from the dynamic module.
47
3122
by: Max | last post by:
Due to the behaviour of a particular COM object, I need to ensure that a request for a particular ASP page is finalized before another request for the page is processed. Does IIS have a way to ensure that subsequent requests will be queued until the current request is completed? If not, can IIS be configured to use seperate processes to satisfy requests for a nominated ASP page? Thanks in advance.
3
2133
by: Jeremy | last post by:
I've created a serializable class and put attributes around all the properties that should be serialized. I return the class from a web service, but my problem is that the wsdl for the web service is only including the Values poperty, and nothing else. Also, when the object gets serialized out, only the Values property gets serialized. I can't figure out why. I've included the serialized output from the webservice and the class code...
0
9721
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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,...
0
10640
Oralloy
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...
0
10120
tracyyun
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...
0
9200
agi2029
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...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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

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.