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

Accessing Web Service Response Header information on the client side

We are building a web service for a client application that will need
to send information in the Header of the web service responses. What's
the best way to access this header information from the client
application which is written in C#?

Mar 12 '07 #1
3 2319
<se*********@gmail.comwrote in message
news:11**********************@q40g2000cwq.googlegr oups.com...
We are building a web service for a client application that will need
to send information in the Header of the web service responses. What's
the best way to access this header information from the client
application which is written in C#?
Do you mean the HTTP header, or using SOAP Headers? SOAP Headers are
preferred, as they will work with transports other than HTTP.

John
Mar 12 '07 #2
On Mar 12, 4:18 pm, "John Saunders" <john.saunders at trizetto.com>
wrote:
<sean.j.g...@gmail.comwrote in message

news:11**********************@q40g2000cwq.googlegr oups.com...
We are building a web service for a client application that will need
to send information in the Header of the web service responses. What's
the best way to access this header information from the client
application which is written in C#?

Do you mean the HTTP header, or using SOAP Headers? SOAP Headers are
preferred, as they will work with transports other than HTTP.

John
Yes the Soap Headers. I have run a little test that implements the
SoapHeader with a direction of Out. However I am concerned that the
HeaderValue property data on the client side could get corrupted
during many asynchronous calls if the header data for each call was
different. Any thoughts?

Mar 12 '07 #3
<se*********@gmail.comwrote in message
news:11**********************@30g2000cwc.googlegro ups.com...
On Mar 12, 4:18 pm, "John Saunders" <john.saunders at trizetto.com>
wrote:
><sean.j.g...@gmail.comwrote in message

news:11**********************@q40g2000cwq.googleg roups.com...
We are building a web service for a client application that will need
to send information in the Header of the web service responses. What's
the best way to access this header information from the client
application which is written in C#?

Do you mean the HTTP header, or using SOAP Headers? SOAP Headers are
preferred, as they will work with transports other than HTTP.

John

Yes the Soap Headers. I have run a little test that implements the
SoapHeader with a direction of Out. However I am concerned that the
HeaderValue property data on the client side could get corrupted
during many asynchronous calls if the header data for each call was
different. Any thoughts?
If you're going to use the web services asynchronously, you'll need to use
one instance of the proxy class per asynchronous call. That will give you
one copy of the headers per asynchronous call.

John
Mar 13 '07 #4

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

Similar topics

9
by: Marty McDonald | last post by:
If I invoke a web service, and it throws an exception, I can see the exception if the client app is a .Net app. However, if the client app is not a .Net app, I only receive the HTTP 500 error. I...
8
by: david | last post by:
I have made a test: copy a text file to clinet side. But fails. What I did is that create a web method in web services that read a text in server side and return the text file as string. On the...
1
by: William | last post by:
I have a few questions. First, I have a java webservice, which was developed using the Java Webserices Developer Pack 1.3. Here is the wsdl for the service. (Note: That this service is not exposed...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
5
by: Dave | last post by:
I'm developing a piece of Hardware that I wish to have utilize a web service on a Windows 2003 server. I send an XML file to the server over port 80 but, it doesn't work. Whatis required to make...
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
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
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...
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
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
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...
0
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...

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.