473,508 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Serialize all elements with namespace prefix

Don
I am calling a web service that requires all elements to have a namespace (or
alias) prefix before all elements. Here is an example of xml that works
correctly:

<SOAP-ENV:Body>
<m:VINValidationRequest xmlns:m="http://...">
<m:requestHeader>
<m:RequestingApplicationCd>Test</m:requestingApplicationCd>
</m:requestHeader>
</m:VINValidationRequest>
</SOAP-ENV:Body>

The xml stream that gets generated from my .Net call to the web method does
not contain the namespace prefix though (the m: is omitted).

<SOAP-ENV:Body>
<VINValidationRequest xmlns="http://...">
<requestHeader>
<RequestingApplicationCd>Test</requestingApplicationCd>
</requestHeader>
</VINValidationRequest>
</SOAP-ENV:Body>

Can someone tell me how to get this namespace in each element when the .Net
serialization function is invoked?

Thank you

Nov 23 '05 #1
0 1064

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

Similar topics

8
1954
by: Hugh Sparks | last post by:
When processing an xml document that contains elements such as: <element xmlns="goop"/> ... <element xmlns="gleep"/> I want to create two xsl stylesheet templates: one that matches the...
0
1352
by: IMS.Rushikesh | last post by:
Hi All, I want to serialize an object which contain the DataTable. As DataSet is MarshalByRef object and is serializable. I am using it directly. Even my data is also serialize and save it to...
1
1110
by: cmrchs | last post by:
Hi, is there an easy way to provide all elements in an xml-document of a namespace-prefix. Example of source file : <book> <title>Alaska</title> </book> convert to :
7
6526
by: Lars-Erik Aabech | last post by:
Hi! I've got problems with serializing my collections of business objects. The objects themselves serialize fine, but the collections fail. I've got the following structure: Base collection...
4
4184
by: Hone | last post by:
I'm trying to serialize/deserialize the XML for an RSS 1.0 Feed (i.e. RDF) and the root element, as required by the standard, looks like this: <rdf:RDF ...> </rdf:RDF> However, I've tried...
5
6938
by: johanneskrueger | last post by:
Hello, I'm currently using <xsl:copy-of select="document(...)/svg:svg"/to embed an SVG file into an XHTML file. I already defined the SVG namespace and assigned svg as its prefix in my XSLT 1.0...
1
1450
by: luthriaajay | last post by:
I am stuck with a tricky situation. 1)I am reading element values from an XML document mentioned below: InputDocument.xml ----------------- <?xml version="1.0" encoding="UTF-8"?> <FIXML...
1
1917
by: Datawich | last post by:
Hi. By persistence, I've discovered that when several nested elements in a schema are each qualified by a namespace, I can successfully reference them in a select statement by qualifying each...
2
1559
by: Simon Brooke | last post by:
I have a document type which I'm developing and working with, which is currently defined in a DTD, mainly because I still haven't really learned to use schemas. In this document type I need to...
0
7380
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...
1
7039
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...
0
5626
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,...
1
5050
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...
0
4706
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...
0
3192
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...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
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 ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.