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

SoapExtension & Http headers

I would like to be able to set an arbitrary http header from a
SoapExtension when said extension is acting on behalf of a client. I
have not seen a means for doing so.

For incoming messages or their responses (i.e. when the soap extension
is intercepting a message as a server function), HttpContext... provides
access to the underlying request/response http messages, so headers can
be obtained or added from there. So that's fine.

However, if a SoapExtension is operating on behalf of a client, either a
"real" client or a web service which is calling out (acting as a client)
to another web service, the SoapMessage available to the SoapExtension
does not appear to contain any means for setting or getting arbitrary
http headers. If it's a SoapClientMessage, it can set/get cookies. If
the message is a SoapServerMessage, even this is unavailable

If running as a web service acting as a client, HttpContext.Current
seems to point to the original request/response that arrived.

Thus, the question: if a SoapExtension is invoked on behalf of a web
service client, how does one set/get http headers. Soap headers are
available, but I haven't found access to arbitrary http requests.
Nov 18 '05 #1
0 1705

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

Similar topics

0
by: fred carter | last post by:
I would like to be able to set an arbitrary http header from a SoapExtension when said extension is acting on behalf of a client. I have not seen a means for doing so. For incoming messages or...
3
by: Trevor Pinkney | last post by:
Hi, Is it possible to reference a custom SoapExtension instance from within a WebMethod? I have a SoapExtension used by several web-services for generic logging. The SoapExtension logs the...
1
by: Dave Buxbaum via .NET 247 | last post by:
Hi, I have a SoapExtension that adds a SoapHeader to all outboundmessages. This works fine, but I don't see a way to control thenamespace of the emitted header. Here is what I'm doing: I have...
2
by: lprisr | last post by:
Hi, I have double byte characters in the content that I am returning using Web Services. However, the encoding in the xml file returned by Web Services is utf-8 and I am unable to read the...
0
by: thatsMaBoy | last post by:
Hi, I have a VB.NET 2003 web service client (EXE) that makes use of a SOAPExtension class. The client calls a web service that returns a SOAP message containing MIME encoded files. The...
10
by: Andy Kendall | last post by:
I have a problem accessing my custom SoapHeader from a SoapExtension. My extension has no compile time reference to the class derived from SoapHeader, so how can cast it into a SoapHeader of the...
3
by: =?Utf-8?B?Q0V2YW5z?= | last post by:
My Environment * Windows XP * .NET 2.0 * Visual Studio 2005 I have written a SoapExtension in c# on a windows XP machine. The purpose of this extension is to monitor progress for data...
4
by: matthias s | last post by:
Hi there, I'm currently building a webservice. One of my webmethods returns a string, which contains html tags and special characters. Now when the soap-message ist generated, I have something...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
marktang
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,...
0
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
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...

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.