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 / February 2005

Tip: Looking for answers? Try searching our database.

SoapHttpTransport, HttpWebRequest, custom Http headers and I am sad.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kapil Sachdeva - 25 Feb 2005 17:02 GMT
Hi guys,

SoapHttpTransport imports the various settings (except custom headers) from
the user specified HttpWebRequest using SoapHttpChannelOptions.

I know I am asking for something which goes against in the spirit of making
web services independent of underlying transport. For eg WS-Addressing wants
to get rid of SOAPAction http header as information conveyed in SOAP header
is best but truth is there are (will be) web services (you can call them bad
design/approach) which expect some custom http headers and as a client app
to these web services I am in trouble when I want to use WSE.

Again, I do support frameworks not letting developers try to use some
functionality which break the spirit of technology but some times you do not
have choices. So, if SoapHttpChannelOptions has possibility to specify the
custom http headers it would solve some of the issues that webservices and
their clients would face (due to design decisions and legacy).

Right now I do not have an option but to redo http channels in WSE just to
add the support of user specified custom http headers.

If any of you gurus of WSE and webservices can comment it would be great.
John ?

Regards & thanks
Kapil
Signature

Kapil Sachdeva
http://www.dotnetcard.com/blogs/ksachdeva

John Bristowe - 25 Feb 2005 18:09 GMT
Kapil,

I'm guessing here...

You could override the
Microsoft.Web.Services2.WebServicesClientProtocol.GetWebRequest method to
add custom HTTP headers. Conversely, you could override the
Microsoft.Web.Services2.WebServicesClientProtocol.GetWebResponse to process
custom HTTP headers.

John

> Hi guys,
>
[quoted text clipped - 23 lines]
> Regards & thanks
> Kapil
Kapil Sachdeva - 25 Feb 2005 23:37 GMT
I am using SoapClient !!. But using WebServiceClientProtcol may be the
better approach
than redoing http channel.

I just need to see if I can have some generic client working with any
endpoint and SoapAction using WebServiceClientProtocol class. [I do not
compile the stubs/proxy for webservices I need to invoke, I just invoke them
by passing SoapAction and endpoint to sub class of
SoapClient class of WSE]

[not played with asmx and their clients much, love WSE messaging framework
as can run stuff using TCP].

sincerely appreciate your answer and help.

Regards & thanks
Kapil

Signature

Kapil Sachdeva
http://www.dotnetcard.com/blogs/ksachdeva

> Kapil,
>
[quoted text clipped - 36 lines]
>> Regards & thanks
>> Kapil

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.