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

Tip: Looking for answers? Try searching our database.

Sending uname/pword in soapHeader

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
neelbh@gmail.com - 18 May 2005 17:18 GMT
HI all:
I have consumed a wsdl file, it has 2 elements username and password.

I am not able to set it in a header.

I am able to create a new instance of the class, then see username and
password element, but if i pass the values, it is not going in header.

Peoplesoft on other end requires the uname and password to be sent in
header

Help me out
Neal
Chad Z. Hower aka Kudzu - 18 May 2005 18:52 GMT
neelbh@gmail.com wrote in news:1116433128.493419.67150
@g44g2000cwa.googlegroups.com:
> Peoplesoft on other end requires the uname and password to be sent in
> header

Adding items to a header is easy.

            Vendor = new xxx.Vendor();
            Vendor.AuthHeaderValue = new xxx.AuthHeader();
            Vendor.AuthHeaderValue.Username = aUsername;
            Vendor.AuthHeaderValue.Password = aPassword;
            Vendor.AuthHeaderValue.Version = 1;

AuthHeader was defined in the WSDL and .NET of course created the proxy class
for it too. Tkae a look around your CS file that was generated from teh WSDL.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
     "Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu

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.