Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2007

Tip: Looking for answers? Try searching our database.

Accessing Web Service Response Header information on the client side

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sean.j.gage@gmail.com - 12 Mar 2007 22:15 GMT
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#?
John Saunders - 12 Mar 2007 23:18 GMT
> 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
sean.j.gage@gmail.com - 12 Mar 2007 23:25 GMT
On Mar 12, 4:18 pm, "John Saunders" <john.saunders at trizetto.com>
wrote:
> <sean.j.g...@gmail.com> wrote in message
>
[quoted text clipped - 9 lines]
>
> 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?
John Saunders - 13 Mar 2007 00:46 GMT
> On Mar 12, 4:18 pm, "John Saunders" <john.saunders at trizetto.com>
> wrote:
[quoted text clipped - 17 lines]
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.