467,134 Members | 1,038 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

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
  • viewed: 2065
Share:
3 Replies
<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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Marty McDonald | last post: by
dmjpro
3 posts views Thread by dmjpro | last post: by
5 posts views Thread by Dave | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.