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

WCF how to change NameSpace in response

1,047 Expert 1GB
Currently i have reponse like this:
Expand|Select|Wrap|Line Numbers
  1. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  2.   <s:Header />
  3.   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  4.     <FindByBarcodeResponse xmlns="http://www.pharmapartners.nl/services/locker/v1">
  5.       <ResponseCode>DELIVERY_NOT_FOUND</ResponseCode>
  6.       <Gender xsi:nil="true" />
  7. .....
I need a response like:
Expand|Select|Wrap|Line Numbers
  1. <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
  2.   <soap-env:Header />
  3.   <soap-env:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  4.     <v1:FindByBarcodeResponse xmlns:v1="http://www.pharmapartners.nl/services/locker/v1">
  5.       <v1:ResponseCode>DELIVERY_NOT_FOUND</v1:ResponseCode>
  6.       <v1:Gender xsi:nil="true" />
  7. ........
Are there any good pointers where to find how to do this?

(and if there are, where can they be found?)
Dec 4 '15 #1
1 3018
Luuk
1,047 Expert 1GB
Basically i need a way to rewrite the serialized output.

I found that somehow i have to do SerializeReply
I was not able to find a good example how to implement this.
Dec 5 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: neurologic | last post by:
Hi there, I'm wondering if it's possible to change the content type of a HttpResponse after the call to getWriter has been made? What I'm trying to do is upload a file, and then once it has bee...
0
by: Copa | last post by:
Hello, I am testing buffering an asp page and Flushing information out to the browser, hence i wrote the code in an asp page that follows this Message Post. The loops are suppose to simulate...
1
by: Izvra | last post by:
How can i specify default XML namespace when it does not declared in the xml document I need it for validation against xml schema @@@I have a procedure Sub ValidateXMLDocument(ByRef XMLDocument...
2
by: Frank Wilson | last post by:
Is there a way to change the namespace prefix of a document? I am sending a document to an application that requires that every element be prefixed with "sm". My inbound document has every...
2
by: Rick | last post by:
I have an XML document that is generated from Infopath, I need to change the value of a namespace that is defined in a node in the form: <xsf:xDocumentClass "xmlns:my=valuehere">. when i navigate...
10
by: Tamir Khason | last post by:
I have a couple of class libraries wich I built about a year ago. I want to add it no other project, but I want to change their namespaces without recompliation ('cos I'm not sure that I have all...
1
by: Bruce W.1 | last post by:
I whipped up a web service based on this example: http://www.codeproject.com/aspnet/RSSviaXmlTextWriter.asp?print=true But my asmx file will not compile. I get this error: The type or namespace...
1
by: Pablo Ulman | last post by:
I have Windows XP-SP2 with Visual Studio Proffesional Edition 2005. Y create a new Web Site, but i dont see the location to change the default namespace! Where is it? In Visual Studio 2003, i...
3
by: guillermojco | last post by:
Hi, I've got an ASP.NET page that returns XLS, DOC, PDF and other files from binary fields in a database. The problem is that MS-Excel 2007 shows a security warning when trying to open the...
2
by: gomzi | last post by:
hi, I am redirecting my users to the main page on log out. but i see that the url in the address bar doesn't change. i am using response.redirect for this purpose. so am completely clueless as to...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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...
0
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 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.