473,498 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple XML Namespace prefixes (in a webservice)

Dear all,

This is probably very much rtfm, but i think i'm just searching in the
wrong places or with the wrong keywords. Can anybody tell me how to
achieve the following:

I have:
public class SearchRetrieveRequest {
public string query;
public int startRecord;
etc. etc.
}
public class SearchRetrieveResponse {
public int numberOfRecords;
public List<RecordRecords;
etc. etc.
}
I have a WebMethod like:
public SearchRetrieveResponse SearchRetrieve(string query, int
startRecord, etc.)
that i would want to output something like:
<soap:envelope ...>
<soap:body>
<SRW:searchRetrieveResponse xmlns:SRW="http://www.loc.gov/zing/
srw/" xmlns:DIAG="http://www.loc.gov/zing/srw/diagnostics/">
<SRW:version>1.1</SRW:version>
(...)
</SRW:records>
<SRW:diagnostics>
<DIAG:diagnostic>
(...)

In other words: I want to output a prefix and be able to use different
prefixes. However, I just cannot get my visual studio (2k5) to do this
[apparently, my jedi mind trick power is diminishing ;)]
So, euhmm, help? please?

Chris

Jan 29 '07 #1
0 1037

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

Similar topics

9
10059
by: Chris Spencer | last post by:
Does anyone know how to make ElementTree preserve namespace prefixes in parsed xml files? The default behavior is to strip a document of all prefixes and then replace them autogenerated prefixes...
0
1231
by: S ML | last post by:
Hello, I use the Xerces XS* classes to parse and get the definition of an XML schema. I don't seem to find a way to get the namespace prefixes using this framework and I read somewhere that the...
2
1161
by: Anirudh | last post by:
Hi, i have a SOAP XML which is similar to this: <request xmlns="http://www.someurl.com"> <abc> <xyz></xyz> <xyz></xyz> </abc> I need the same namespace for 'request' and 'abc' but i want to
0
942
by: BTSPete | last post by:
I'm using XSDObjectGen to generate classes from my xsd's.After serilization i would like to see the namespace prefixes for each tag included in the resulting xml file.I think this can be done by...
2
3646
by: Corne Rabe | last post by:
Hi all I've got a webservices that will be called by a delphi product. They have defined a soap message that they will use to call my webservice. A header snippet is found below: <soap:Header>...
4
1830
by: PaulF | last post by:
How do I identify all of the namespace / prefix pairs associated with an XML document I am reading? Thanks for any help. Paul
1
1316
by: Hubidubi | last post by:
Hi, I would like to generate XML (struts code) from XML with XSL transformation. I run into problem when I wanted to use tags with prefixes, like <html:text />. I included namespace...
3
8106
by: bhu | last post by:
Hi i am trying some things in XML for webservices but got stuck with the xml Creation. This is the First Sample C# Code XmlDocument oInvDocument = new XmlDocument(); oNode=...
3
2918
by: George | last post by:
I am currently developing an xbrl validation software that takes an xml instance file and a lot of schemas(xsd files) and validates it against the xsd files. I am using Visual basic in visual...
0
7002
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
7165
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,...
0
7205
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
6887
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
5462
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
4910
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
4590
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
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.