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 / January 2006

Tip: Looking for answers? Try searching our database.

Having trouble with implementing a SOAP header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Friso Wiskerke - 24 Jan 2006 15:16 GMT
Hi all,

I'm trying to use a webservice which is provided to me by a third party.
There are a number of webmethods that I can call but for each method I have
to supply a SOAP header which contains an identification-token. I've managed
to generate a proxy class using the wsdl.exe tool but the wsdl doesn't have
the SOAP header definition in it (quite frustrating).

I'm trying to enhance the generated class so that I can issue the header to
the webservice but I'm not having much luck.It should look like this
according to the documentation:
 <soap:Header>
   <AuthToken>ABCDEFGHIJKLMNOP</AuthToken>
 </soap:Header>

Does anybody know how I can achieve this in my VB app (C# code samples are
also welcome)?

TIA,
Friso Wiskerke
Niels Flensted-Jensen - 25 Jan 2006 10:11 GMT
Frisco,

It sounds like you're not using WSE?  If you use WSE at setup the right
"policy assertions" you should be able to get the needed identity token in
there.

Now, from your sample it seems like you need a custom header, i.e. one not
defined by any of the WS-* specs.  Therefore you will probably need to write
your own policy assertion to stick in the header on the outgoing end of the
proxy.  How to do this is documented in WSE documentation and a recent
article in MSDN Magazine explains the framework:
http://msdn.microsoft.com/msdnmag/issues/06/02/WSE30/default.aspx.

Niels

> Hi all,
>
[quoted text clipped - 16 lines]
> TIA,
> Friso Wiskerke

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.