473,383 Members | 1,885 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,383 software developers and data experts.

Xml Serialization the same class may have multiple namespaces

Hi,

Not 100% sure if this is the correct group to post in but.

I have a class that I want to serialize/deserialize to match the MM7
specifications, which I have done but now that we are starting to
connect to a few different people we have realised that there are
multiple versions of the specification and each one has been defined
in a different namespace, now the actual xml is the same between the
versions

example :

Release 6 version 1. 4

<?xml version="1.0"?>
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
schemas.xmlsoap.org/soap/envelope/">
<Header>
<TransactionID d3p1:mustUnderstand="1" xmlns:d3p1="http://
schemas.xmlsoap.org/soap/envelope/" xmlns="http://www.3gpp.org/ftp/
Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4">test</
TransactionID>
</Header>
<Body>
<SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/
23.140/schema/REL-6-MM7-1-4">
<MM7Version>6.8.0</MM7Version>
<SenderIdentification>
<VASPID>GENE</VASPID>
<VASID>GENE</VASID>
</SenderIdentification>
<Recipients>
<To>
<Number>61405192054</Number>
</To>
</Recipients>
<Subject>Subject</Subject>
<Content href="cid:content_part" />
</SubmitReq>
</Body>
</Envelope>

Release 5 versiojn 1.3

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/
23_series/23.140/schema/REL-5-M M7-1-3" env:mustUnderstand="1">
vas00001-sub
</mm7:TransactionID>
</env:Header>
<env:Body>
<SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/
23.140/schema/REL-5-MM7-1 -3">
<MM7Version>5.6.0</MM7Version>
<SenderIdentification>
<VASPID>GENE_TEST</VASPID>
<VASID>GENE</VASID>
</SenderIdentification>
<Recipients>
<To>
<Number>61414760983</Number>
</To>
</Recipients>
<Subject>Testing</Subject>
<Content href="cid:content_part"/>
</SubmitReq>
</env:Body>
</env:Envelope>

The only difference is the namespaces, is there anyway in .NET to
control the serialization and map different namespaces onto one so
that we can just have one set of classes defined ?

Thanks for any help here

Sep 26 '07 #1
0 2440

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

Similar topics

1
by: Sacha | last post by:
I'm having trouble serializing some of my classes when using late binding. When I don't use late binding, it works fine. MyClass inherit from an abstract class called AbsMyClass. If I do the...
7
by: Dave | last post by:
Hi all, I know there is a lot of information on here about Serialization, but I can't find what I need so I thought i would ask. I am trying to serialize and deserialize a set of data. ...
1
by: Dave | last post by:
I'm having trouble dynamically deserializing information. The following code is what I have. It serialises fine, the Dave element is serialized as the Name of the element, not its value. On...
0
by: Chris McDonough | last post by:
ElementTree's XML serialization routine implied by tree._write(file, node, encoding, namespaces looks like this (elided): def _write(self, file, node, encoding, namespaces): # write XML to file...
0
by: nobin01 | last post by:
Dear sir; I want ur Help in serialization.I know serialization.I Know binary,soap and xmlserialization also.But i want ur help in following topics.pls help me as soon as possible.I have search in...
4
by: mijalko | last post by:
Hi, I have inherited my class from System.Drawing.Printing.PrintDocument and I wish to serialize this object using XmlSerializer. And I get exception "There was an error reflecting type ...". If I...
3
by: Marc | last post by:
Hi, I am trying to serialize a data structure -- a list (of custom class) -- in one application, then read it in with another application. My serialize and deserialize subs are in a module that...
12
by: =?Utf-8?B?enRSb24=?= | last post by:
Hi all, I recently came across something really strange and after a couple of days of debugging, I finally nailed the cause of it. However, I have absolutely no idea what I am doing wrong or is...
0
by: =?Utf-8?B?Y211cmFsaQ==?= | last post by:
I am serializing/deserializing a class (Class1) using the XmlSerializer object in the System.Xml.Serialization namespace in .Net 2.0. Class1 has some strings and ints and two lists of other simple...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.