Question : Calling a secure web servie with WCF client

I have a 2005 asp.net application that uses WSE to call a secure web service (developed in Java) that works and I need to migrate it to WCF and VS2008.  I've read that WSE is not supported in 2008.  I'm having difficulty getting the call to work sucessfully.  I keep getting and error message "Invalid Header".  

Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
Config File ----
 

     
     
      
      
     
    
 
 

 
--End Config File
 
--Code
MemberServicePortTypeClient MemberManager = new MemberServicePortTypeClient("MemberServiceHttpPort");
                MemberManager.ClientCredentials.UserName.UserName = this.UserID;
                MemberManager.ClientCredentials.UserName.Password = this.Pwd;
 
//Call the method
string test = MemberManager.Method();

Answer : Calling a secure web servie with WCF client

Random Solutions  
 
programming4us programming4us