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 2 1600
My opinion..
Use reflection for dynamic load of classes and serialization/deserialization
AA
"Chris Smith" <us**@email.com> wrote in message
news:e9*************@TK2MSFTNGP11.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
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.net.py> wrote in message
news:%2****************@tk2msftngp13.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*************@TK2MSFTNGP11.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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: +...
|
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...
|
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).
...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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: 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: 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...
| |