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